Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Docker on AWS

2,027 views

Published on

Shows examples how to use Docker on AWS

Published in: Technology
  • Be the first to comment

Docker on AWS

  1. 1. DOCKER ON AWS Sascha Möllering | zanox AG
  2. 2. Sascha Möllering sascha.moellering@zanox.com Lead Engineer / DevOps Hipster zanox AG http://autoscaling.io @sascha242 ABOUT ME
  3. 3. JAVA MAGAZIN 11.14 ARCHITEKTUR IM KONTEXT DER CLOUD: PATTERNS UND BEST PRACTICES AWS VIRTUAL CLOUD SUMMIT CONTINUOUS DELIVERY IN AWS USING DOCKER ENTWICKLER SPEZIAL: DOCKER ÜBER DEN WOLKEN: EIN ERFAHRUNGSBERICHT ZUM DOCKER- EINSATZ IN DER AMAZON CLOUD ABOUT ME
  4. 4. ●Our current project ●Highly scalable tracking application ●Multi-Region ●Multi-AZ ●Latency based routing GENERALARCHITECTURE
  5. 5. RegionUS-WEST (N. California) EU-WEST (Ireland) ASIA PAC (Tokyo) ASIA PAC (Singapore) US-WEST (Oregon) SOUTH AMERICA (Sao Paulo) US-EAST (Virginia) GOV CLOUD ASIA PAC (Sydney) EU-CENTRAL (Frankfurt) GENERALARCHITECTURE
  6. 6. Availability Zone GENERALARCHITECTURE
  7. 7. Internet Auto Scaling group Auto Scaling group Availability Zone Availability Zone GENERALARCHITECTURE Apache Kafka
  8. 8. IMMUTABLE SERVER Berlin | 08.06.2012 | zanox | Company Präsentation
  9. 9. IMMUTABLE SERVER ●Trash your servers!!! ●New deployment => new infrastructure ●Don’t change an existing server ●Problem: snowflake server
  10. 10. IMMUTABLE SERVER Berlin | 08.06.2012 | zanox | Company Präsentation
  11. 11. IMMUTABLE SERVER
  12. 12. IMMUTABLE SERVER
  13. 13. DOCKER REGISTRY ●Private Docker registry ●Based an EC2 and S3 ●Stores custom images
  14. 14. EC2 instance with Docker registry (port 5000) S3 bucket to store Docker images DOCKER REGISTRY
  15. 15. DOCKER REGISTRY Amazon Cloud Workstation GitHub Jenkins Python/Boto Docker Image Docker Registry S3 bucket with Docker Images
  16. 16. ● Implementation progress: ● CloudFormation template ● Uses VPC and Multi-AZ ● Scalable (ELB) ● SSL support missing ● https://github.com/SaschaMoellering/docker- registry-aws DOCKER REGISTRY
  17. 17. DEPLOYMENT
  18. 18. DEPLOYMENT
  19. 19. DEPLOYMENT python start_docker_instance.py -r <myregistry>:5000 -i tracking-ppv -t 95 -q 4 -s quality -n 'Sascha Moellering’ -e 'sascha.moellering@zanox.com' -m trackingppv -d '-d -p 8080:8080'
  20. 20. DEPLOYMENT python start_elb.py -r <myregistry>:5000 -i tracking-ppv -t 95 -s quality -d '-d -p 8080:8080’
  21. 21. EC2 INSTANCES AND ELB
  22. 22. EC2 CONTAINER SERVICE ●Amazon EC2 Container Service (ECS): ● Container management service ● Fast ● Highly scalable ● Supports Docker
  23. 23. EC2 CONTAINER SERVICE ●Cluster ●Container Instance ●Task Definition ●Task ●Container
  24. 24. EC2 CONTAINER SERVICE
  25. 25. EC2 CONTAINER SERVICE
  26. 26. EC2 CONTAINER SERVICE
  27. 27. EC2 CONTAINER SERVICE #!/bin/bash echo ECS_CLUSTER = your_cluster_name >> /etc/ecs/ecs.config
  28. 28. EC2 CONTAINER SERVICE
  29. 29. EC2 CONTAINER SERVICE
  30. 30. EC2 CONTAINER SERVICE
  31. 31. EC2 CONTAINER SERVICE
  32. 32. EC2 CONTAINER SERVICE
  33. 33. EC2 CONTAINER SERVICE
  34. 34. EC2 CONTAINER SERVICE
  35. 35. EC2 CONTAINER SERVICE

×