Skip to content

This is an introduction to deploying your apps on a Docker container, accessing it as an API and using the docker container

License

Notifications You must be signed in to change notification settings

StatsGary/NHS_R_Community_Intro_to_Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Docker and API deployment

This is a tutorial on how to use Docker desktop to deploy a trained machine learning model. There are many other use cases for Docker i.e. deployment of Shiny apps to docker containers, website deployment, web service deployment, database deployment or full scale application deployment.

The session was part of the NHS-R communities' workshop.

My tutorial will focus on the following:

  1. Introduction to Docker
  2. Docker Desktop
  3. Training ML Model, Serialise ML model and deploy to Docker container
  4. Creating a Dockerfile and the Plumber API end points
  5. Use CMD to interact with the service (Windows focus)
  6. Expose Swagger APU and use R to connect to API and send predictions to the trained ML model
  7. Interface with our API using httr and JSONlite

Links to the tutorial content

The following links send you straight to the content:

Want to follow along on YouTube?

This tutorial originally appeared on my YouTube channel. The links to the relevant videos and blogs are below:

Need help with putting your model into production?

I have been doing lots with MLOps recently and have some practical tips for scaling the model up beyond this fully open-source solution, so please drop me a line if you want any help?

About

This is an introduction to deploying your apps on a Docker container, accessing it as an API and using the docker container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published