Git Product home page Git Product logo

bilalayaz2 / dockerized-flask-microservice-hosted-on-aws-elastic-beanstalk-built-using-machine-learning-pipeline Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15 KB

In this project I'm using machine learning Pipeline which is then made into a Flask Application which is then dockerized using docker and then the docker image is deployed on Amazon-Web-Services, Elastic Beanstalk.

Dockerfile 6.79% Python 93.21%
python amazon-web-services aws aws-elastic-beanstalk deployment docker docker-container docker-image dockerfile flask-application

dockerized-flask-microservice-hosted-on-aws-elastic-beanstalk-built-using-machine-learning-pipeline's Introduction

Dockerized Flask Microservice hosted on AWS Elastic Beanstalk built using Machine Learning Pipeline

In this project I'm using the pipeline I built here.

I made a flask application out of the machine learning pipeline and then dockerized the application using docker, by using commands:

  • Install docker: pip install docker
  • Login to docker: docker login
  • Building docker Image: docker build -t demo:app . [You can change the name to what you want]
  • Running the docker Image: docker run -it --rm -p 5000:5000 demo:app [You can change the name to what you want and port to whatever port you are using]

Then I deployed the docker image to Amazon Web Services Elastic Beanstalk using the cli commands:

  • Install Elastic Beanstalk Cli: pip install awsebcli
  • Initiate Elastic Beanstalk: eb init -p docker [Application Name]
  • I have used region eu-west-3 which is Paris but you can use whichever region is closest to you. You can edit this in .elasticbeanstalk folder in the configure.yml file which is created after eb init (initialization) command.
  • Run locally to see if it works properly before Deployment: eb local run --port 5000 [You can use whatever port you're using]
  • Create Elastic Beanstalk Environment: eb create [Enivironment Name]-env

Now the environment is created as you can see below:

AWS Elastic Beanstalk

dockerized-flask-microservice-hosted-on-aws-elastic-beanstalk-built-using-machine-learning-pipeline's People

Contributors

bilalayaz2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.