ian massingham - elastic beanstalk at #doxlon

19
AWS Elastic Beanstalk Running Docker Containers on AWS Elastic Beanstalk 22 September 2014 Ian Massingham AWS Technical Evangelist @IanMmmm [email protected]

Upload: dataloopio

Post on 27-Jun-2015

973 views

Category:

Technology


0 download

DESCRIPTION

Video: http://youtu.be/9quo4zmA_kg Amazon will be presenting a talk about the newest features of Elastic Beanstalk which is their hosted PaaS offering. Including how to use Docker to deploy your applications with their service. A lot of companies that we speak to already use some AWS services and they have a very mature offering in terms of features. If you want to read a bit more prior to the talk have a read through this link: http://aws.amazon.com/elasticbeanstalk/ DevOps Exchange London Meetup: http://www.meetup.com/DevOps-Exchange-London

TRANSCRIPT

Page 1: Ian Massingham - Elastic Beanstalk at #DOXLON

AWS Elastic Beanstalk

Running Docker Containers on AWS Elastic Beanstalk !

!

!

!

22 September 2014 !

!

!

Ian Massingham AWS Technical Evangelist @IanMmmm [email protected]

Page 2: Ian Massingham - Elastic Beanstalk at #DOXLON

Who’s heard of Elastic Beanstalk?

Page 3: Ian Massingham - Elastic Beanstalk at #DOXLON

Who uses Elastic Beanstalk?

Page 4: Ian Massingham - Elastic Beanstalk at #DOXLON

Who uses Docker on Elastic Beanstalk?

AWS Elastic Beanstalk

Page 5: Ian Massingham - Elastic Beanstalk at #DOXLON

Elastic Beanstalk: 2 Minute Introduction

Page 6: Ian Massingham - Elastic Beanstalk at #DOXLON

App

E

LB

AZ

your-app.elasticbeanstalk.com

Alert

Log

Mon

Page 7: Ian Massingham - Elastic Beanstalk at #DOXLON

And from April 23rd

Page 8: Ian Massingham - Elastic Beanstalk at #DOXLON

Elastic Beanstalk

App.zip

Deployment without Docker

Page 9: Ian Massingham - Elastic Beanstalk at #DOXLON

Elastic Beanstalk

Python!libs

Python!2.7.5

WSGI entrypoint:!application.py

Python!libsApp.zip

Python!3

WSGI entrypoint:!app.py

Fix: Documentation Fix: Definitions

Deployment without Docker

Page 10: Ian Massingham - Elastic Beanstalk at #DOXLON

Elastic Beanstalk

DockerPython!

libsApp.zip

Python!3

WSGI entrypoint:!app.py

Deployment with Docker

Page 11: Ian Massingham - Elastic Beanstalk at #DOXLON

3 Deployment Options

• Dockerfile - upload your Dockerfile and Elastic Beanstalk will build it on each machine

• Dockerrun.aws.json - a manifest file describing the container you want and how Elastic Beanstalk should run it

• zip file with context - includes Dockerfile & Dockerrun.aws.json file plus additional application context

Page 12: Ian Massingham - Elastic Beanstalk at #DOXLON

Dockerrun.aws.json Example

Page 13: Ian Massingham - Elastic Beanstalk at #DOXLON

Passing Environment Variables

Page 14: Ian Massingham - Elastic Beanstalk at #DOXLON

Zip with app context

App.zip ------------------------------- |-- Dockerfile |-- Dockerrun.aws.json

Dockerfile

Dockerrun.aws.json

Page 15: Ian Massingham - Elastic Beanstalk at #DOXLON

A more complete example app

https://github.com/awslabs/eb-py-flask-signup

Dockerfile Dockerrun.aws.json

Page 16: Ian Massingham - Elastic Beanstalk at #DOXLON

A more complete example app

https://github.com/awslabs/eb-py-flask-signup

.ebextensions/setup.config

Page 17: Ian Massingham - Elastic Beanstalk at #DOXLON

aws.amazon.com/elasticbeanstalk

Page 18: Ian Massingham - Elastic Beanstalk at #DOXLON

Upcoming AWS DevOps Event Tuesday 30 September 2014

!

!

• Learn how AWS services enable you to create an agile and lean platform to support both the development & operation of your applications

• Discover how AWS services enables you to implement DevOps techniques and tools with the minimal investment in time and capital

http://aws.amazon.com/events/aws-devops-sept/

Page 19: Ian Massingham - Elastic Beanstalk at #DOXLON

AWS Elastic Beanstalk

Running Docker Containers on AWS Elastic Beanstalk !

!

!

!

22 September 2014 !

!

!

!

Ian Massingham @IanMmmm [email protected]