Awesome
Docker Workshop
Written for Statistics Canada
Blair Drummond, January 2020
Exercise
Build dash app with a file upload feature, and send the files to an ML api for classification.
The python code is provided; the exercise is to write the Dockerfiles and docker-compose.yml file that tie the system together
Getting Started
- Install Docker
- Windows: go to the docker toolbox downloads
- Ubuntu: download instructions
- Redhat: download instructions
-
Install docker-compose with
pip install --user docker-compose
-
Download this repository.
Exercises
- Try to run the dash app with
docker-compose up
...
Then test the app on localhost:8888
-
Try to come up with a new model for the classification and integrate it.
-
How would you make the storage persistent?
-
HARD: Figure out how to use a production-grade webserver (
uwsgi
orgunicorn
)