Deployment with Elastic Beanstalk at Edinburgh Startup Event

14
Deploy, Manage & Scale Your Apps [email protected] @IanMmmm Ian Massingham — Technical Evangelist

description

In this talk from the AWS Startup Event in Edinburgh, AWS Technical Evangelist Ian Massingham introduces deployment of Docker container with AWS Elastic Beanstalk.

Transcript of Deployment with Elastic Beanstalk at Edinburgh Startup Event

Page 1: Deployment with Elastic Beanstalk at Edinburgh Startup Event

Deploy, Manage & Scale Your Apps

[email protected]

@IanMmmm

Ian Massingham — Technical Evangelist

Page 2: Deployment with Elastic Beanstalk at Edinburgh Startup Event

Elastic Beanstalk: Deploy Applications with 7 Popular Containers

Page 3: Deployment with Elastic Beanstalk at Edinburgh Startup Event

Alert

Log

Mon

App

E

LB

AZ

http://your-app.elasticbeanstalk.com

Elastic Beanstalk Deploy your app to a load balanced, auto scaled Environment

Page 4: Deployment with Elastic Beanstalk at Edinburgh Startup Event

Alert

Log

Mon

App

AZ

ELB

http://your-app.elasticbeanstalk.com

Elastic Beanstalk Deploy your app to a load balanced, auto scaled Environment

Page 5: Deployment with Elastic Beanstalk at Edinburgh Startup Event

Alert

DB

Log

Mon

App

AZ

AZ

ELB

http://your-app.elasticbeanstalk.com

Elastic Beanstalk Deploy your app to a load balanced, auto scaled Environment

Page 6: Deployment with Elastic Beanstalk at Edinburgh Startup Event

Docker & Elastic Beanstalk

Page 7: Deployment with Elastic Beanstalk at Edinburgh Startup Event

Deployment without Docker

Elastic Beanstalk

App.zip

Page 8: Deployment with Elastic Beanstalk at Edinburgh Startup Event

Deployment without Docker

Elastic Beanstalk

Pythonlibs

Python2.7.5

WSGI entrypoint:application.py

Pythonlibs

App.zip

Python3

WSGI entrypoint:app.py

Fix: Documentation Fix: Definitions

Page 9: Deployment with Elastic Beanstalk at Edinburgh Startup Event

Deployment with Docker

Elastic Beanstalk

DockerPython

libsApp.zip

Python3

WSGI entrypoint:app.py

Page 10: Deployment with Elastic Beanstalk at Edinburgh Startup Event

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 11: Deployment with Elastic Beanstalk at Edinburgh Startup Event

Zip with app context

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

Dockerfile

Dockerrun.aws.json

Page 12: Deployment with Elastic Beanstalk at Edinburgh Startup Event

A more complete example app

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

Dockerfile Dockerrun.aws.json

Page 13: Deployment with Elastic Beanstalk at Edinburgh Startup Event

A more complete example app

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

.ebextensions/setup.config

Page 14: Deployment with Elastic Beanstalk at Edinburgh Startup Event

@IanMmmm

Ian Massingham — Technical Evangelist

@AWScloudAWS Global News and Service Launches

@AWS_UKIAWS UK & Ireland News, Events & Webinars