Wiki: Continious Deployment with Docker

For agents: Markdown version · Wiki index · Explore

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 The speaker introduces the motivations for building a custom continuous deployment system utilizing Docker for production workloads.
  • 2:47 An overview of external infrastructure tools used, including a private Docker registry, Apache Mesos, Marathon, and Chef.
  • 3:54 The speaker describes an internally developed orchestration tool that automates image building, deployments, and agent communications via message queues.
  • 7:18 Configuration and application states are managed centrally using Consul to track deployment versions, run scripts, and health check endpoints.
  • 11:50 Automatic healing and rolling deployment mechanisms detect failing applications via health checks and restart containers safely.
  • 19:08 The speaker demonstrates the deployment workflow, showing how agents pull images from the registry and execute rolling updates.
  • 19:08 A demonstration of a failed deployment shows how the system automatically halts and rolls back to the previous stable container ID.
  • 1:18:30 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