Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker and Elastic Beanstalk

Docker and Elastic Beanstalk

Using Elastic Beanstalk to deploy docker images.

Ladislav Prskavec

May 05, 2015
Tweet

More Decks by Ladislav Prskavec

Other Decks in Technology

Transcript

  1. Who am I? • SRE in Apiary • PragueJS organizer

    • NodeJS and Ruby developer • Blogger - blog.prskavec.net, www.prskavec.net • Git, Jenkins, Docker tranning and consulting
  2. eb CLI 3.0 mkdir HelloDocker cd HelloDocker eb init -p

    docker eb create docker-meeetup-demo-env pip install awsebcli
  3. Platform Multi-container Docker 1.3.3 (Generic) on 64bit Amazon Linux 2014.09

    v1.2.1 Docker 1.5.0 on 64bit Amazon Linux 2015.03 v1.3.1.
  4. { "AWSEBDockerrunVersion": "1", "Image": { "Name": "registry:0.9.1" }, "Volumes": [

    ], "Ports": [ { "ContainerPort": "5000" } ] } Dockerrun.aws.json
  5. $ eb create apiary-docker-dev-env WARNING: The current directory does not

    contain any source code. Elastic Beanstalk… Environment details for: apiary-docker-dev-env Application name: HelloDocker Region: us-east-1 Deployed Version: None Environment ID: e-iicfuqdqfy Platform: 64bit Amazon Linux 2015.03 v1.3.1 running Docker 1.5.0 Tier: WebServer-Standard CNAME: UNKNOWN Updated: 2015-05-05 11:57:57.448000+00:00 Printing Status: INFO: createEnvironment is starting. INFO: Using elasticbeanstalk-us-east-1-176708046225 as Amazon S3 storage bucket for environment data. INFO: Created load balancer named: awseb-e-i-AWSEBLoa-1PM2OGFL5F INFO: Created security group named: awseb-e-iicfuqdqfy-stack-AWSEBSecurityGroup-1N44YZ87YU INFO: Created Auto Scaling launch configuration named: awseb-e-iicfuqdqfy-stack-AWSEBAutoScalingLaunchConf INFO: Waiting for EC2 instances to launch. This may take a few minutes. INFO: Created Auto Scaling group named: awseb-e-iicfuqdqfy-stack-AWSEBAutoScalingGroup-5NDZA8IBWM INFO: Created Auto Scaling group policy named: arn:aws:autoscaling:us-east-1: