Tuesday, December 23, 2014

Amazon AWS Elastic Beanstalk, Python, Flask and Sci-Stack Docker

This actually took me longer than I'd like to admit to get working, but in the end the solution is quite neat and simple, so it was probably worth it, and hopefully this could save other people some time.

The Amazon Docker file looks like this: 
AWS Elastic Beanstalk Dockerfile - Github

This installs the contents of the root folder requirements.txt before running your Docker file. So for my application the basic "non-sci" packages could be installed simply enough.

Root Folder: requirements.txt:
Then to install the sci related packages... numpy, scipy, pandas, scikit-learn and nltk. I created another requirements.txt in an aws-post-install folder. This is to be run once the Amazon linux OS has been updated and all the required OS dependencies have been installed.

Post Docker requirements.txt:
My custom docker file, that builds ontop of the Amazon image looked as follows:

Docker File:

Next step is to get my docker image to be used directly so that the Elastic Beanstalk app doesn't have to do all the downloads and installs every time should be simple enough according the AWS you tube channel: https://www.youtube.com/watch?v=pLw6MLqwmew


  1. HSSC Recruitment 2016

    I go to see everyday a few web pages and information sites to read posts, however this blog gives quality based articles......

  2. This comment has been removed by the author.

  3. ShowBox is favorite of all the Android and iOS users, for latest movies. It is a free app that provides all the HD contents and you both stream and download from this app. The huge library of movies, animated films, series, you may download Showbox apk here

  4. Hello, great, work....!!
    This article is very beneficial for me and I'm happy reading your article. In this article have easily explained the amazon aws elastic beanstalk python information. I enjoyed over read your article post. I appropriate to your work please visit us Local Business Listing in India.
    Thanks for sharing.

  5. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here. aws training in chennai

  6. Nice post thanks for sharing a nice blog .. its very interesting and useful to me

    Packers and Movers Ahmedabad

    <a href="http://www.packersandmoversahmedabad.in/packers-and-movers-rajkot.html>Packers and Movers Rajkot</a>

  7. Best Top 5 packers and movers Vadodara satellite list, address, website name, contact no. Movers and Packers Vadodara services very affordable price.

    Packers and Movers Vadodara

    Packers and Movers Ludhiana


Popular Posts