Bridget Kromhout

Ops Sundries

Docker in Production - Reality, Not Hype

OSCON - Docker in Production: Reality, Not Hype
Portland, Oregon
2015-07-20 to 2015-07-24


At DramaFever, we’ve been running Docker in production since October 2013 (well before it even went 1.0). Cutting (maybe bleeding) edge? Sounds fun! But important technology stack decisions are not made by running a Markov text generator against the front page of Hacker News. So, why are we using Docker? Simply put, it makes our development more consistent and our deployment more repeatable.

Because all the developers are developing locally using the same containers, integration is much easier when their code moves on to their EC2-based personal dev environment, the shared dev environment, QA, staging, and production. (Our previous Vagrant-based process didn’t keep us consistently all using the same environment, as production wasn’t under config management, and setting up local copies of the MySQL database with all the fixtures took just this side of eternity.)

A production instance serves code from a container, so each new autoscaled instance that has any code at all is going to have the correct code. (And our previous “check out code from GitHub and bake an AMI” deployment process was not what you’d call speedy.)

Docker provides just enough in the way of training wheels for Linux containers that everyone can use it (for rapidly increasing values of everyone).

In this talk, I will detail how DramaFever implemented Docker for our entire development pipeline from laptops to production. I’ll cover the pain points and failure scenarios we’ve encountered and how we’ve worked through them, and I’ll demonstrate the ways that Docker being open-source has helped us in our adoption.

Original timeslot - Wednesday, July 22

Encore performance - Thursday, July 23