$ cap production deploy:check $ cap production deploy branch_name=master $ cap production deploy:bundle $ cap production deploy:compile_assets $ cap production deploy:migrate $ cap production deploy:restart Capistrano
$ cap production docker:build:web 4. $ cap production docker:test:web (request response) 5. $ cap production docker:push:web 6. $ cap production docker:run
a reliable service • Where to put your docker images? • Resource management & health check • Manage multiple running docker containers • Rolling update & rollback • High availability & load balancing • Auto-scaling • Config management
desired state • Observe, diff, act - decoupling between application and kernel/os - service should be self-healing - reconciliation between desired state and current state
is not a reliable service • Where to put your docker images? • Resource management & health check • Manage multiple running docker containers • Rolling update & rollback • High availability & load balancing • Auto-scaling • Config management