<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tim Salva</title>
    <description>The latest articles on DEV Community by Tim Salva (@jtsalva).</description>
    <link>https://dev.to/jtsalva</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F202494%2F5c073236-94d2-441b-9eb8-83dd5c5bece1.jpg</url>
      <title>DEV Community: Tim Salva</title>
      <link>https://dev.to/jtsalva</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jtsalva"/>
    <language>en</language>
    <item>
      <title>How to remove all docker containers in a network</title>
      <dc:creator>Tim Salva</dc:creator>
      <pubDate>Thu, 08 Apr 2021 06:19:23 +0000</pubDate>
      <link>https://dev.to/jtsalva/how-to-remove-all-docker-containers-in-a-network-1531</link>
      <guid>https://dev.to/jtsalva/how-to-remove-all-docker-containers-in-a-network-1531</guid>
      <description>&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;br&gt;
Thanks &lt;a class="mentioned-user" href="https://dev.to/hasnayeen"&gt;@hasnayeen&lt;/a&gt;
 for making me aware of the following better approach&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker &amp;lt;stop|rm&amp;gt; $(docker ps -qf "network=&amp;lt;NAME&amp;gt;")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Steps
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;How to list docker containers in a network&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.docker.com/engine/reference/commandline/network_inspect/"&gt;Inspecting a docker network&lt;/a&gt;  will list containers along with other information, we can use the &lt;code&gt;--format&lt;/code&gt; flag to get a newline separated list.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker network inspect &amp;lt;NAME&amp;gt; --format='{{range $id, $_ := .Containers}}{{println $id}}{{end}}

// Example output
197123ceff4c60ad99518e948047d842eab52ab7eac38476dabe22ac5f6cc209
2ec40124c66a394d6f29e1448bff3182902a94e74f923c7cab4f10c3d7f99d1d
aeb2b9d5686efcf186adf13ce6b8471782f332385aa8b2c4314932a1416f8376
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Stopping and removing containers in a docker network&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker &amp;lt;stop|rm&amp;gt; $(docker network inspect &amp;lt;NAME&amp;gt; \
    --format='{{range $id, $_ := .Containers}}{{println $id}}{{end}}')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After much Googling I couldn't find how to do this anywhere, if there's a better way please let me know.&lt;/p&gt;

</description>
      <category>docker</category>
      <category>network</category>
      <category>bash</category>
      <category>script</category>
    </item>
    <item>
      <title>Makers Apprenticeship Boot Camp @ComparetheMarket 🐒 | My Experience 🤔</title>
      <dc:creator>Tim Salva</dc:creator>
      <pubDate>Fri, 27 Dec 2019 11:24:02 +0000</pubDate>
      <link>https://dev.to/jtsalva/makers-apprenticeship-boot-camp-comparethemarket-my-experience-1fej</link>
      <guid>https://dev.to/jtsalva/makers-apprenticeship-boot-camp-comparethemarket-my-experience-1fej</guid>
      <description>&lt;h1&gt;
  
  
  Brief Context
&lt;/h1&gt;

&lt;h3&gt;
  
  
  About Me
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1577211007361%2FciduQYagq.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1577211007361%2FciduQYagq.jpeg" alt="matese-fields-pvHma684eEI-unsplash.jpg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I was in the last few months of Year 13, the final year of sixth-form, about to undergo my A-Level exams. Holding offers from a few universities, feeling pressured to uphold them. However, I eventually did decide to apply for a Software Engineering apprenticeship. Seven months later, I've now completed boot camp and thought I would write about my experiences so far.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Makers?
&lt;/h3&gt;

&lt;p&gt;Taken straight from their website, &lt;a href="https://makers.tech" rel="noopener noreferrer"&gt;makers.tech&lt;/a&gt;, they provide a &lt;strong&gt;'12 week, full-time, onsite course'&lt;/strong&gt; to help you &lt;strong&gt;'launch your software engineering career.'&lt;/strong&gt; Most people will probably recognise them as &lt;em&gt;Makers Academy&lt;/em&gt;, but they also have &lt;em&gt;Makers Apprenticeships&lt;/em&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is Compare the Market?
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://comparethemarket.com" rel="noopener noreferrer"&gt;comparethemarket.com&lt;/a&gt; is a UK comparison website for car insurance, home insurance, energy, and more. I'm sure you've heard of Aleksandr Orlov, the meerkat.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1577231232459%2FPVxTfBGm8.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1577231232459%2FPVxTfBGm8.jpeg" alt="14657489_1064985560281781_4100571348972069337_n.jpg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Application Process
&lt;/h1&gt;

&lt;p&gt;Overview of what I went through, from early-May when I first applied, up to mid-July when I received an offer. A process, lasting short of three months.&lt;/p&gt;

&lt;p&gt;I applied online through CtM's parent company &lt;a href="https://bglgroup.co.uk" rel="noopener noreferrer"&gt;BGL Group&lt;/a&gt;; where I filled in a standard application form, alongside it sending my CV and other relevant details.&lt;/p&gt;

&lt;p&gt;Once BGL approved my initial application, they scheduled me in for a telephone interview. Here I encountered a small hurdle, nobody called. It took me just over two weeks of trying to reach someone at BGL recruitment until someone emailed me back. Interview re-scheduled, first and the last hurdle overcome. The interview was non-technical, just asking about my reasons which led me to apply plus a series of questions acquiring a summary of who I am and my story.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1577211369545%2FcpnsbNiw-.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1577211369545%2FcpnsbNiw-.jpeg" alt="safar-safarov-MSN8TFhJ0is-unsplash.jpg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, I had two weeks to complete a course on Ruby, the programming language, on &lt;a href="https://www.codecademy.com" rel="noopener noreferrer"&gt;Codecademy&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The second telephone interview was with Makers, still non-technical, similar to the first interview, but asking more questions about my coding background, if any.&lt;/p&gt;

&lt;p&gt;Upon passing the second interview, I had to complete around eight small Ruby coding challenges on &lt;a href="https://repl.it" rel="noopener noreferrer"&gt;repl.it&lt;/a&gt;, having completed the Ruby course, I was equipped with the skills to succeed.&lt;/p&gt;

&lt;p&gt;At last! I reached the final interview with BGL. It was a STAR based behavioural interview, where they were trying to gauge how I would act under specific situations.&lt;/p&gt;

&lt;p&gt;After some overthinking and a one-week wait, I was relieved to find out I had gotten an offer. 😌&lt;/p&gt;

&lt;h1&gt;
  
  
  Boot Camp
&lt;/h1&gt;

&lt;p&gt;The apprenticeship is twelve months long; the first three months you spend doing off the job training (boot camp). Usually, you have to travel to Makers headquarters in London; however, BGL Group and Makers have partnered up to bring the Makers experience up to Peterborough, where the company is situated. Throughout the opening twelve weeks, coaches from Makers were on rotation spending time with the eighteen of us.&lt;/p&gt;

&lt;p&gt;Typically, each day broke up into two halves. The first, being your own time, working on what you desired and needed the most. The second, pair-programming with a randomly selected partner aiming to complete a set challenge spanning the day or more. On the last day of each week, we had a solo-challenge, a chance to put into action and test ourselves on new skills. Additionally, every day, there was optional meditation, a time to take a step back and relax for a few moments, an activity I frequently opted to benefit from early on. Once a week, there was also after-hours yoga, guided by an instructor that came into the office.&lt;/p&gt;

&lt;p&gt;Following this agenda, we focused on a given topic for a set number of weeks. At a higher-level it went like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Week 1 - Git and command-line skills&lt;/li&gt;
&lt;li&gt;Weeks 2 &amp;amp; 3 - Test-driven development&lt;/li&gt;
&lt;li&gt;Weeks 4 &amp;amp; 5 - Object-oriented design&lt;/li&gt;
&lt;li&gt;Week 6 - Web apps (databases, web app architectures...)&lt;/li&gt;
&lt;li&gt;Week 7 - JavaScript&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Occasional workshops supplemented self-learning. Coaches were also really good at making you feel like you could ask them for help if you ever got super stuck, and were always reachable on &lt;a href="https://slack.com" rel="noopener noreferrer"&gt;Slack&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now that we knew the basics, it was time to practice working on a project in a team of four to five. The next set of weeks went like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Week 8 - Build a Clone of &lt;a href="https://www.airbnb.co.uk/" rel="noopener noreferrer"&gt;Airbnb&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Weeks 9 &amp;amp; 10 - Build a Clone of &lt;a href="https://facebook.com" rel="noopener noreferrer"&gt;Facebook&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Weeks 11 &amp;amp; 12 - Final project (we decided what we wanted to make)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1577211277772%2FGqd1WUYO1.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1577211277772%2FGqd1WUYO1.jpeg" alt="john-schnobrich-2FPjlAyMQTA-unsplash.jpg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;During team projects, coaches recommended ways of working. Ultimately, we, as a team, tailored the advice given to us and decided how we would function. We worked as mini agile teams, incorporating stand-ups, retros, sprints, and tickets with correlating user stories — a simulation of how we would be working for real.&lt;/p&gt;

&lt;p&gt;On the last day, we got to present our final project to people from our company. It was a big day; there was pizza. 🍕&lt;/p&gt;

&lt;h1&gt;
  
  
  Takeaways
&lt;/h1&gt;

&lt;p&gt;A few skills I'm proud of improving due to the boot camp are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Git and the command line&lt;/strong&gt; - every single day we had to use these skills, now it's almost second nature when it comes to basic manipulation and navigation via command line and everyday git operations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pair programming&lt;/strong&gt; - specifically the driver &amp;amp; navigator style, I got to see the thought processes of many other people as they went about solving a problem and I got to improve expressing technical ideas to another person&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test-driven development&lt;/strong&gt; - TDD-ing required you to have a picture of how your code is going to be structured and how it would behave before writing the implementation. Often I recognised this improved the quality of what I wrote.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Taking action on initiative&lt;/strong&gt; - Makers don't teach in a traditional school format, you're mostly just guided towards specific skills. Picking up a skill is primarily up to you, you have to put the work in yourself, googling the same thing like a hundred times, until finally, it clicks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Working in a team&lt;/strong&gt; - when you are working on a solo project, it's easy to make decisions, you have an idea, and you execute on it. Inside a team, there are many different ideas on how to accomplish many different things, working through the many approaches as a team and filtering them down to one is hard. When someone writes code in a different way than how you may have envisioned, you must let go of complete control, trust your team and move forward.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Next Steps
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1577211470545%2FDIaS6fd4Q.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1577211470545%2FDIaS6fd4Q.jpeg" alt="jake-hills-bt-Sc22W-BE-unsplash.jpg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I've had such a great time so far, meeting tons of friendly and supportive people from both Makers and BGL. First three months are done, now I get to work for real at Compare the Market, striving towards bettering myself and finishing my apprenticeship. I honestly can't wait. 😁😃😆&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This post is from &lt;a href="https://blog.jtsalva.dev" rel="noopener noreferrer"&gt;blog.jtsalva.dev&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Credit to &lt;a href="https://unsplash.com" rel="noopener noreferrer"&gt;Unspalsh.com&lt;/a&gt; ❤️ for images&lt;/em&gt;&lt;/p&gt;

</description>
      <category>makers</category>
      <category>apprenticeship</category>
      <category>career</category>
    </item>
  </channel>
</rss>
