<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Docker on Murat Useinov</title>
    <link>https://useinov.com/tags/docker/</link>
    <description>Recent content in Docker on Murat Useinov</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 07 Jul 2017 18:35:00 +0300</lastBuildDate>
    <atom:link href="https://useinov.com/tags/docker/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Multi-stage builds for PHP images</title>
      <link>https://useinov.com/posts/2017/docker-multi-stage/</link>
      <pubDate>Fri, 07 Jul 2017 18:35:00 +0300</pubDate>
      <guid>https://useinov.com/posts/2017/docker-multi-stage/</guid>
      <description>&lt;p&gt;720 MB. That was our production PHP image, and most of it was composer, git, unzip, build headers and a pile of apt cache. None of it runs in production. It was there because &lt;code&gt;composer install&lt;/code&gt; needs it, and a Dockerfile was one linear script. People worked around this with two Dockerfiles and a shell script gluing them. Ugly, and everyone&amp;rsquo;s glue was different.&lt;/p&gt;
&lt;p&gt;Docker 17.05 brought multi-stage builds. The first Docker feature in a while that fixes a problem I actually had. Now it is one file:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Docker instead of a setup README</title>
      <link>https://useinov.com/posts/2016/docker-for-php/</link>
      <pubDate>Wed, 13 Apr 2016 21:50:00 +0300</pubDate>
      <guid>https://useinov.com/posts/2016/docker-for-php/</guid>
      <description>&lt;p&gt;Two days. That is how long the new colleague spent last month getting one project to run on his laptop. The README is two pages: PHP with a specific set of extensions, Nginx, MySQL, Redis, and a paragraph that starts with &amp;ldquo;on OS X it is a bit different&amp;rdquo;. Every laptop in the team is a slightly different snowflake.&lt;/p&gt;
&lt;p&gt;So I finally tried Docker for local development. The compose file:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
