# Continious Deployment with Docker

- Speaker: [Ariel Moskovich](/wiki/speakers/ariel-moskovich.md)
- Event: [Reversim Summit 2015](/wiki/years/2015.md)
- Video: https://www.youtube.com/watch?v=9z8safOdyFE
- Transcript: [/transcripts/2015/02-9z8safOdyFE.md](/transcripts/2015/02-9z8safOdyFE.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [DevOps](/wiki/topics/devops.md), [Infrastructure](/wiki/topics/infrastructure.md), [Scalability](/wiki/topics/scalability.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker shares insights on building and scaling a continuous deployment pipeline using Docker in production. They discuss the internal orchestration tools developed to automate building container images, managing configurations, and handling rollouts across a large number of servers. Additionally, the speaker highlights common failure modes and best practices encountered during their migration to container-based deployments. The audience learns practical architectural patterns for reliable containerized deployments and how to avoid critical operational pitfalls.

## Key points

- [1:32](https://www.youtube.com/watch?v=9z8safOdyFE&t=92s) The speaker introduces the motivations for building a custom continuous deployment system utilizing Docker for production workloads.
- [2:47](https://www.youtube.com/watch?v=9z8safOdyFE&t=167s) An overview of external infrastructure tools used, including a private Docker registry, Apache Mesos, Marathon, and Chef.
- [3:54](https://www.youtube.com/watch?v=9z8safOdyFE&t=234s) The speaker describes an internally developed orchestration tool that automates image building, deployments, and agent communications via message queues.
- [7:18](https://www.youtube.com/watch?v=9z8safOdyFE&t=438s) Configuration and application states are managed centrally using Consul to track deployment versions, run scripts, and health check endpoints.
- [11:50](https://www.youtube.com/watch?v=9z8safOdyFE&t=710s) Automatic healing and rolling deployment mechanisms detect failing applications via health checks and restart containers safely.
- [19:08](https://www.youtube.com/watch?v=9z8safOdyFE&t=1148s) The speaker demonstrates the deployment workflow, showing how agents pull images from the registry and execute rolling updates.
- [19:08](https://www.youtube.com/watch?v=9z8safOdyFE&t=1148s) A demonstration of a failed deployment shows how the system automatically halts and rolls back to the previous stable container ID.
- [1:18:30](https://www.youtube.com/watch?v=9z8safOdyFE&t=4710s) The speaker shares war stories and lessons learned regarding configuration management mistakes, connection tracking limits, and storage driver selection.

## Takeaways

- Isolate application runtimes inside containers while keeping infrastructure services and databases outside Docker for better stability.
- Implement automated health checks combined with rolling deployments and instant rollbacks to minimize production downtime.
- Manage configuration data centrally using a key-value store like Consul to decouple container runtime parameters from code.

## Questions this talk answers

- How can you implement automated rolling deployments and instant rollbacks using Docker in production?
- What are the best practices for handling configuration management and environment variables in containerized applications?
- How do you handle log collection and metric monitoring efficiently across a cluster of Docker containers?

## Technologies

Docker, AWS, Mesos, Marathon, Chef, Jenkins, Consul, RabbitMQ, Graphite, Java

## Tags

automation, container orchestration, continuous deployment, devops, docker, production, reliability
