Giter Club home page Giter Club logo

ml-faceemotionbokeh-dockers's Introduction

Deploying Containerized Applications using Docker Compose

We are going to deploy a pretrained image segmentation model:

https://github.com/tensorflow/models/tree/master/research/deeplab

It is important that you research how to write a dockerfile and a docker-compose file.

Dockerfile

Please see Docker, the Dockerfile cheatsheet, and the the Docker file guide.

Docker-Compose

Please see Docker, FastAPI in Containers, and this and this sample.

Create EC2 Instance

Install Dependencies

  • Get the ip address of the instance
  • Change key permissions to 400 (chmod 400 key.pem)
  • SSH into the machine ssh -i key.pem [email protected]
  • Install git if needed (sudo apt install git for ubuntu based distros, sudo yum install git for amazon linux)
  • Install Docker (sudo apt install docker for ubuntu based distros, sudo yum install docker for amazon linux)
  • Start Docker (sudo systemctl start docker)
  • Add user to docker group (sudo usermod -aG docker ${USER})
  • Logout and Login again through SSH to take the group changes into account
  • Check if docker installed correctly (docker run hello-world)
  • Install Docker-Compose
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
  • Clone the repo (git clone ...)
  • If there's permission issues with gitlab, generate ssh keys (ssh-keygen) and add them to github account
  • CD into the folder (cd cloned-repo)

Docker Compose

ml-faceemotionbokeh-dockers's People

Contributors

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