Slide for Docker Shanghai meetup, about case study of docker-compose.
Distribute Development Env
Build tools, CI
OSS web app with
Merit of Docker
Small, Clean, Quick, Portable, Reproducible
Good for delivery
to cloud, data centre and developer’s machine new!
Case: provide dev environment
for your contributors
Web Service needs:
Initial data in datastore
to provide dev environment
Virtual box, VMware
Problems of legacy ways
Human don’t read
VM is BIG & SLOW
Process to make VM is more clear and documented
Layer is small enough to distribute
Reproducible even on different OS
But how to keep
'one service in each container’ policy?
Build, run and link containers by one command
Treat set of containers like: Application server, Web
server, Datastore server, Selenium client, build tools…
$ docker-compose up
Attaching to consul_1, registrator,
storage_1, front_1, nginx_1
consul_1 | ==> Starting raft data
Docker is good for delivery,
even to developers!