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

23 comments:

  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......

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  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

    ReplyDelete
  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.

    ReplyDelete
  5. 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

    ReplyDelete
  6. Wholesale Sunglasses UK Shop in UK. Shop Elegance is one of the best wholesale sunglasses shop in UK provides cheap polarized sunglasses at affordable cost.

    Wholesale Sunglasses UK

    ReplyDelete
  7. मंजिल उनको मिलती है, जिनके सपनों में जान होती है,
    सिर्फ पंखों से कुछ नहीं होता, हौसलों में उड़ान होती हैं ।

    ReplyDelete
  8. In offering a professional service, Medical Guardian Pte Ltd is committed to a policy of ensuring that our services are provided to Clients by those who have a level of competency in certain skills but also by those who are genuinely compassionate & have empathy.

    ReplyDelete
  9. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
    Interior Designers in Chennai

    ReplyDelete

Popular Posts

Followers