Skip to content

This repository is for containing source codes of machine learning model server deployment.

Notifications You must be signed in to change notification settings

AyberkYavuz/ml_model_server_docker_deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ml_model_server_docker_deployment

This repository is for containing source codes of machine learning model server deployment.

Prerequisite

You need to have docker

Youtube Video of The Project

IMAGE ALT TEXT HERE

Docker Deployment Instructions

  1. clone this repo to your local machine

  2. open terminal

  3. cd /path/to/ml_model_server_docker_deployment

  4. start docker

  5. use the following command to build the docker image

docker image build -t docker-iris-ml-server .
  1. use the following command to see docker images
docker image ls
  1. use the following command to run ml server
docker run -p 5000:5000 -d docker-iris-ml-server
  1. open http://localhost:5000/predict_class in your browser to see get method message

  2. open postman and try http://localhost:5000/predict_class for the post method to get model prediction

For example; try the following in your POST request to get machine learning model prediction

{"sepal_length": 5.1, "sepal_width": 3.5, 
"petal_length": 1.4, "petal_width": 0.2}
  1. use the following command to see CONTAINER ID
docker ps
  1. copy CONTAINER ID

  2. use the following command to stop docker container

docker stop "CONTAINER ID"
  1. use the following command to free up all the resources that the docker container uses
docker system prune

About

This repository is for containing source codes of machine learning model server deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published