Ali Asad Lotia (DevOps at Beamly) - Riemann Stream Processing at #DOXLON
Ian Massingham - Elastic Beanstalk at #DOXLON
-
Upload
dataloopio -
Category
Technology
-
view
974 -
download
0
description
Transcript of Ian Massingham - Elastic Beanstalk at #DOXLON
![Page 1: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/1.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/2.jpg)
Who’s heard of Elastic Beanstalk?
![Page 3: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/3.jpg)
Who uses Elastic Beanstalk?
![Page 4: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/4.jpg)
Who uses Docker on Elastic Beanstalk?
AWS Elastic Beanstalk
![Page 5: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/5.jpg)
Elastic Beanstalk: 2 Minute Introduction
![Page 6: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/6.jpg)
App
E
LB
AZ
your-app.elasticbeanstalk.com
Alert
Log
Mon
![Page 7: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/7.jpg)
And from April 23rd
![Page 8: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/8.jpg)
Elastic Beanstalk
App.zip
Deployment without Docker
![Page 9: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/9.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/10.jpg)
Elastic Beanstalk
DockerPython!
libsApp.zip
Python!3
WSGI entrypoint:!app.py
Deployment with Docker
![Page 11: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/11.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/12.jpg)
Dockerrun.aws.json Example
![Page 13: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/13.jpg)
Passing Environment Variables
![Page 14: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/14.jpg)
Zip with app context
App.zip ------------------------------- |-- Dockerfile |-- Dockerrun.aws.json
Dockerfile
Dockerrun.aws.json
![Page 15: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/15.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/16.jpg)
A more complete example app
https://github.com/awslabs/eb-py-flask-signup
.ebextensions/setup.config
![Page 18: Ian Massingham - Elastic Beanstalk at #DOXLON](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/18.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022051112/558e699f1a28abf4658b45fd/html5/thumbnails/19.jpg)
AWS Elastic Beanstalk
Running Docker Containers on AWS Elastic Beanstalk !
!
!
!
22 September 2014 !
!
!
!
Ian Massingham @IanMmmm [email protected]