<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Matthew Manning on Medium]]></title>
        <description><![CDATA[Stories by Matthew Manning on Medium]]></description>
        <link>https://medium.com/@mattmanning?source=rss-2c63c1992ae0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*I7mvQXUlWXBGi9Za.jpeg</url>
            <title>Stories by Matthew Manning on Medium</title>
            <link>https://medium.com/@mattmanning?source=rss-2c63c1992ae0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:43:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mattmanning/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[True Containerized Development with Convox Code Sync]]></title>
            <link>https://medium.com/@mattmanning/true-containerized-development-with-convox-code-sync-8e38635894d5?source=rss-2c63c1992ae0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e38635894d5</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Matthew Manning]]></dc:creator>
            <pubDate>Thu, 16 Jun 2016 13:26:39 GMT</pubDate>
            <atom:updated>2016-06-16T13:26:39.849Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Crossposted from the </em><a href="https://convox.com/blog/bidirectional-sync/"><em>Convox blog</em></a></p><p>About a year ago I published a blog post called “<a href="https://convox.com/blog/a-tale-of-two-onboardings/">A Tale of Two Onboardings</a>” that was widely shared. I think people responded to it, because it painted a picture of an easier world where a development machine with Docker installed can boot anything you need for your development workflow with a single command.</p><p>This kind of workflow — where you develop inside a running container — has been a promise of Docker for as long as I’ve known about it, but a great developer experience has never been fully realized, until now.</p><p>The Convox CLI now has the ability to enhance Docker usage with 2-way code sync. In the latest release, `convox start` will instantly sync file changes from your Docker host to your container and from your container to your host. This enables you to:</p><ul><li>Edit files on your host using your favorite text editor and see file changes reflected in the container immediately.</li><li>Run commands that generate code changes on the container and have that code appear on your host where you can commit it to version control.</li></ul><h4>How does it work?</h4><p>When you run <strong>convox start</strong> the CLI watches the files on your host and copies any changes to your built container(s).</p><p>It also copies a small Linux binary onto your built containers to watch for changes there. This binary logs changes to STDOUT where the CLI is listening, and the CLI process copies changed files back to the host.</p><p>Files are only synced with containers that are built from a Dockerfile in your project, and only files and directories that appear in COPY or ADD statements in the Dockerfile are synced.</p><h4>Why not Docker volumes?</h4><p>But wait a minute. Isn’t this what Docker volume mounts are for? Well, yes and no. Docker volumes are a good way to share files between the host and container in some cases, but sharing your whole code directory comes with a couple of known, gnarly problems.</p><ol><li><strong>Performance.</strong> When running apps written for high-level scripting languages, it’s common for a large number of files to be touched on each request. Volume performance isn’t an issue on Linux, but it’s unusably slow on OS X with Docker Machine or Docker for Mac. We’ve regularly seen single Rails requests in excess of 60 seconds using Docker volumes.</li><li><strong>File masking.</strong> Docker volumes use overlay mounts. That means the host directory is mounted over the corresponding container directory, making any files that previously existed exclusively on the container unavailable. This is problematic if you want to build <a href="https://github.com/convox/rails/blob/80343c751c87be20b1f15c7293d386ceb6824e40/Dockerfile#L8-L9">useful files</a> into a base Docker image that your app’s Dockerfile inherits from.</li></ol><h4>Why is this cool?</h4><p>With this feature you can finally realize true container-based development with Docker! This has many powerful implications:</p><ul><li>You no longer have to depend on verbose documentation or easily lost tribal knowledge to know how to set up development environments. The code is the configuration.</li><li>A true one-command boot means you can rapidly onboard new developers. They can start with a known good working system instead of having to slog through a potentially complicated setup process.</li><li>Your production, staging, test and development environments can run the exact same operating system and software versions. No more “it works on my machine”.</li></ul><h4>How to get started</h4><p>You can try this out today by downloading and installing the convox CLI:</p><h4>OS X</h4><pre>$ curl -Ls https://install.convox.com/osx.zip &gt; /tmp/convox.zip<br>$ unzip /tmp/convox.zip -d /usr/local/bin</pre><h4>Linux</h4><pre>$ curl -Ls https://install.convox.com/linux.zip &gt; /tmp/convox.zip<br>$ unzip /tmp/convox.zip -d /usr/local/bin</pre><p>You’ll also need Docker installed locally. If you’re on OS X be sure to <a href="https://beta.docker.com/">sign up for the Docker for Mac beta</a>.</p><p>Once you have the prerequisites installed you can play around with our Rails example:</p><pre>$ git clone git@github.com:convox-examples/rails.git<br>$ cd rails<br>$ convox start</pre><p>With the app booted you can run <strong>docker ps</strong> to get a list of container IDs and then exec onto a container and run Rails commands:</p><pre>$ docker exec -it &lt;container ID&gt; bash<br>$ rails g scaffold ...<br>$ rake db:migrate</pre><p>Observe the changed files on your local filesystem. Try changing a file locally and observe the file change on the container.</p><p>Please <a href="https://invite.convox.com/">join our Slack</a>, and let us know what you think about this feature. Bug reports, feature requests and patches are welcome on the <a href="https://github.com/convox/rack">project repo</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e38635894d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On the Right Side of History]]></title>
            <link>https://medium.com/@mattmanning/on-the-right-side-of-history-9e2bd15438fd?source=rss-2c63c1992ae0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e2bd15438fd</guid>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[georgia]]></category>
            <dc:creator><![CDATA[Matthew Manning]]></dc:creator>
            <pubDate>Mon, 21 Mar 2016 19:26:49 GMT</pubDate>
            <atom:updated>2016-03-21T19:42:37.175Z</atom:updated>
            <content:encoded><![CDATA[<h4>An open letter to Georgia Governor Nathan Deal</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BGXuKsFc-Qh0vgtyrXFbbg.jpeg" /></figure><p>Dear Governor Deal,</p><p>Please veto HB 757.</p><p>I was born in Georgia and have lived here my whole life. My family is from here and this is my home. The State of Georgia has been good to me. I received a world-class college education at Georgia Tech — largely funded by a HOPE scholarship — which I have parlayed into a successful career in software engineering.</p><p>For the past several years I worked for Salesforce.com. I had many opportunities and some outright requests to move to the San Francisco Bay Area to be closer to my employer, but I turned them all down. I was proud to funnel some of the riches of Silicon Valley back into my home state and to resist the “brain drain” that affects the tech industry in most other parts of the country.</p><p>My co-workers in California often questioned my choice to stay here. As a political progressive, Georgia is not the easiest place to defend. I often find myself at odds with the political majority, but I love the people, the soul, and the natural beauty of this state, and I have decided to stay here and fight for my ideals.</p><p>Last summer I started a new company, Convox, with two of my friends. Through hard work and a bit of luck we were accepted to <a href="http://www.ycombinator.com/">Y Combinator</a>, a highly exclusive and world-renowned startup incubator based in Mountain View, California. My cofounder and I moved there for 3 months last summer, completed the program, and successfully raised seed funding for our business. Again, we received immense pressure from our advisors and investors to relocate to California.</p><p>I’m proud to have resisted that pressure, but honestly it keeps getting harder and harder. I’m writing to you today to ask for help. When I talk to people in other places about Georgia, I want to do it from a place of pride, not a place of shame.</p><p>I take great pride in the progress we have made as a state (and Atlanta has made as a city) in the past several decades. The “city too busy to hate” is a beacon of opportunity in a region that can sometimes be hostile to minorities. My neighborhood of midtown Atlanta has long been considered a sanctuary for my Southern LGBTQ brothers and sisters.</p><p>Please consider the magnitude of your decision on HB 757 in this context. You alone have the power to forge ahead, continuing to bend our arc of history towards justice. Or you can decide to yield to an extremist, vocal minority and take a painful step backwards.</p><p>Despite its supporters’ claims to the contrary, HB 757 is not a bill that seeks to expand freedom. It seeks to legalize discrimination, to legitimize hate, ignorance, and fear through the machinations of the state.</p><p>I could tell you that legislation like this makes it much more difficult for my fledgling business to hire, sell, and succeed in Georgia, but I’m sure this request from my little 5-person startup is barely noticeable amongst the cacophony of pleas now coming from heavy hitters in the <a href="https://twitter.com/Benioff/status/703306605257957376">tech</a>, <a href="http://www.bizjournals.com/atlanta/morning_call/2016/03/nfl-atlanta-s-chance-of-landing-super-bowl-could.html">sports</a> and <a href="http://www.hrc.org/blog/hrc-president-chad-griffin-urges-hollywood-to-abandon-production-in-georgia">entertainment</a> industries.</p><p>Signing HB 757 would be a huge blow to Georgia’s businesses, but more importantly, it would be damaging to Georgia’s citizens. Our LGBTQ brothers and sisters find life scary and difficult enough without the government that’s supposed to represent them actively undermining their existence. They need our love and support, not our scorn.</p><p>Please don’t fall into the trap of thinking this is a dispute between Christians and everyone else. I took the picture at the top of this letter while walking to dinner on Peachtree Street last night. Intolerance is not a Christian value, and mainstream Christians don’t support this kind of legislation.</p><p>Please choose to be on the right side of history. Please choose love, compassion, tolerance, inclusiveness, and progress for Georgia.</p><p>Please veto HB 757.</p><p>Sincerely,</p><p>Matthew W. Manning</p><p>Local Business Owner and Lifelong Georgian</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e2bd15438fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Tale of Two Onboardings]]></title>
            <link>https://medium.com/@mattmanning/a-tale-of-two-onboardings-956dbdc15002?source=rss-2c63c1992ae0------2</link>
            <guid isPermaLink="false">https://medium.com/p/956dbdc15002</guid>
            <category><![CDATA[pos]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[engineering-mangement]]></category>
            <dc:creator><![CDATA[Matthew Manning]]></dc:creator>
            <pubDate>Tue, 23 Jun 2015 23:06:46 GMT</pubDate>
            <atom:updated>2015-07-02T00:43:54.717Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>Why engineering managers should care about Docker</h4><p>Joe is a junior developer starting his first real programming job for the photo sharing site SendFace. He arrives at the office Monday morning and meets Susan, his engineering manager. After a quick tour of the office, Susan hands Joe a shiny new Macbook Pro. Joe asks if there are any new developer docs.</p><p>“No, unfortunately,” says Susan, “but it’s a pretty standard Rails app. It shouldn’t be too hard to get going. Let me know if you need help.”</p><p>He sits down at his desk, excited to check out the app and dive into his work. The code is stored in a private Github repo, so Joe installs Homebrew and then git and clones the project.</p><p>Excited to get the app running, he types</p><pre>$ rails server</pre><p>but he’s met with an error message. There are missing gems. <em>Oh right</em>, Joe thinks, <em>I have to install the dependencies. No biggie. I’ll just bundle install some gems and get going.</em></p><pre>$ bundle install</pre><p>A different error message appears this time. Bundler isn’t installed.</p><pre>$ gem install bundler</pre><p>That works.<em> Yay! Now I can install the rest of the gems</em>, Joe thinks, relieved.</p><pre>$ bundle install</pre><p>Another error. The default OS X ruby is old and doesn’t match the version specified in the Gemfile. Joe has some ideas for how to remedy this, but he’s fresh out of a Rails boot camp, working on software team for the first time, and he wants to fit in, so he wanders over to Susan’s desk.</p><p>“Hey Susan. It looks like I need to upgrade some software on my Macbook. What does the rest of the team use for managing ruby versions?”</p><p>Susan sighs deeply. “Well, Jill uses rbenv and says that anything else is a waste . . . But Dan is totally in the rvm camp and can’t be budged. Just use whatever you like. In the end it’s not that big of a deal.”</p><p>Joe heads back to his desk. After some brief head scratching he settles on rvm. He installs it and waits while Ruby 2.2.2 downloads and builds. After several minutes the new Ruby is ready to go.</p><pre>$ bundle install</pre><p>Yet another error! This time a system dependency for compass failed to build. He’s a little confused, but decides not to bug Susan again. He doesn’t want to look like a total noob asking so many questions just to get started.</p><p>After some Googling, Joe realizes the gem is failing to build extensions, because he doesn’t have gcc installed. Eventually, he figures out he needs to download and install the Xcode command line tools. That takes what feels like forever, but finally finishes. Exasperated, Joe gets ready to run Bundler again. <em>It </em><strong><em>has</em></strong><em> to work this time</em>, he thinks.</p><pre>$ bundle install</pre><p>Aaaand it fails. Joe puts his head down on his desk and takes a minute to collect himself. <em>This is your first day on the job, Joe! You can’t give up this easily. Take a deep breath and read the error message.</em></p><p>Thankfully, the error message is descriptive, and Joe quickly discovers that rmagick failed to install, because ImageMagick isn’t installed on his laptop. The most popular Stack Overflow answer says to use Homebrew to install it.</p><pre>$ brew install ImageMagick</pre><p>More waiting . . .</p><pre>$ bundle install</pre><p>Bundler finally finishes. Elated, Joe starts up the app:</p><pre>$ rails server</pre><p>But he’s met with more error messages. SendFace is a <a href="http://12factor.net/config">12-factor app</a>, so it expects the configuration to be stored in the local environment rather than in environment config files. The app is failing because DATABASE_URL isn’t set.</p><p>Joe consults with his coworker, Dan, and figures out that he needs to install PostgreSQL. <a href="http://www.postgresql.org/download/macosx/">There are 5 different ways to install it</a>. Dan says to use Homebrew.</p><pre>$ brew install postgres</pre><p>Oof. This is going to take a while. It’s almost lunchtime now, so Joe steps away from his desk, hoping he can finish this and get some “real work” done in the afternoon.</p><p>After lunch the PostgreSQL install has finished. He reads the output and figures out how to get launchctl to manage starting postgres. Dan helps him construct DATABASE_URL correctly. Now it’s finally time to start the app!</p><pre>$ rails server</pre><p>The app boots! Joe does a little dance in his desk chair before he realizes someone might be watching.</p><p>He migrates the database and starts clicking around the app. He tries to apply a filter to one of the sample photos, but the app throws an error message. Apparently filters are applied via Sidekiq background jobs, and not only is the Sidekiq worker not running, there is no Redis to store the jobs in the first place.</p><p>Joe installs Redis via Homebrew and starts it up in a separate Terminal tab. He also starts the Sidekiq worker in another tab, but then realizes he needs to set REDIS_URL. Requiring him to manually restart the web and worker processes again.</p><p>He now has six Terminal tabs going to work on this app:</p><ul><li>web process (Rails)</li><li>tailing logs/development.log</li><li>worker (Sidekiq)</li><li>redis</li><li>vim</li><li>bash prompt for everything else</li></ul><p>What a headache! Joe starts on his first development task from the issue tracker, but he’s so mentally exhausted that he doesn’t get anywhere with it. <em>Oh well</em>, he thinks at the end of the day, <em>I’ll get a fresh start tomorrow.</em></p><p>Joe tries to stay optimistic, even though he knows he’ll have to go through a very similar process to bootstrap his dev environment for any of SendFace’s other apps.</p><p>On the other side of the city, on the same day, Janelle is starting her first real job at photo-sharing rival YouGram. She also gets a shiny new Macbook Pro. She installs Homebrew and then git and clones the core app.</p><p>Janelle asks her manager, Mike, if there are any new developer docs.</p><p>“No, unfortunately,” he says, “but we use containerization for everything, so you just need to install Docker and Compose. Grab one of the other developers if you need help.”</p><p>Janelle gets Rebecca, one of the senior developers, to help her set things up.</p><p>The project has a <a href="https://docs.docker.com/reference/builder/">Dockerfile</a> specifying everything about the operating system and dependencies, so she just needs Docker on her system.</p><p>Rebecca tells her to install <a href="http://boot2docker.io/">boot2docker</a> using the OS X installer, and run the setup commands:</p><pre>$ boot2docker init</pre><pre>$ boot2docker start</pre><pre>$ eval “$(boot2docker shellinit)”</pre><p>Rebecca points out that the app has a <a href="https://docs.docker.com/compose/yml/">docker-compose.yml</a> file explaining all of the processes and how they connect. It references Postgres and Redis images on <a href="https://hub.docker.com/">Docker Hub</a> that can be automatically fetched and run. It has defaults for all of the required environment variables.</p><p>Janelle installs <a href="https://docs.docker.com/compose/">docker-compose</a>:</p><pre>$ brew install docker-compose</pre><p>Then she starts the project.</p><pre>$ docker-compose up</pre><p>Janelle now has a fully functioning app with all of the runtimes, system dependences, supporting services, and environment variables set correctly. Outputs streams from all of the processes are multiplexed in a single Terminal tab.</p><p>If she wants to run any of the other YouGram apps she can just clone them and start them with a single command:</p><pre>$ docker-compose up</pre><p>Janelle grabs a task from the issue tracker and starts working.</p><p>It’s not even 10am yet.</p><p>Across town, Joe is still Googling Bundler errors.</p><p><strong>Edit 2015–07–01:</strong> If you’re interested in this style of development and a deployment pipleline that’s just as easy, check out <a href="http://www.convox.com/">Convox</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=956dbdc15002" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>