RootConf 2014 Bangalore: Automating the Dev Environment - Introduction to Docker and Chef
DOCKER & CHEF
Nightmares working on local dev
Too many manual tasks required in setup
Performance issue/machine is too slow
Inconsistency with production environment
My code works fine only on my machine but
not in production.
How to solve
Environment on Demand
Automated Configuration Management
Faster Deployment cycle
Introduction to Docker
An open source software used to perform
various operations with linux containers.
Helps in creating environment on demand.
Containers are light weight(Typical laptops can
run around 10-100 containers)
Simple and easy CLI , makes it easy to script
Using Docker registry makes it easier to share
linux containers across the teams.
• Run docker images
• Docker File usage
• Docker registry
100 Docker instances does not mean 100 VMs.
Each docker run command is run as a process on
the host machine.
Docker is still under development, so it is not yet
recommended for production
Distros : Ubuntu, Centos, Redhat .In order to
make it work on mac you need a VM with the
By default it works on bridge network - docker0 ,
each containers gets a virtual interface and a
specific ip from same range as docker0 .We can
also configure specific ip ranges.
Chef for Configuration
Automated configuration for app deployment
Consistency of configuration across
Freedom from repetitive manual software
Easy to integrate with various cloud platforms
Docker + Chef
To be continued …..