In this exercise, you will learn to use Docker and gain some basic familiarity with the CLI tool.
Go through the hands-on Udemy course on Docker (sections 1-8)
As you work through the recommended sections/exercises, record your CLI session using script command (similar to what you did for unix/git tutorials in Module 1).
Finally, you will build and deploy the artifacts for your housing price prediction library developed in the previous modules.
Build a docker container for your application and test it runs as expected locally by running the container and using the same steps as in the previous module to test your web application. Once you have a working container, branch off of v0.3 Git tag and create a PR in your repository and submit the PR link.
Create a DockerHub account for yourself (free a/c) and push your image. Try pulling the image from DockerHub and running the instance and testing everything works as expected. Once tested, submit the DockerHub link.
[optional] As with any other tool, there are some good practices/tricks to build more performant and secure containers.
Update your previous Dockerfile to use a non-root user to run your application.
Tasks
In this exercise, you will learn to use Docker and gain some basic familiarity with the CLI tool. Go through the hands-on Udemy course on Docker (sections 1-8)
As you work through the recommended sections/exercises, record your CLI session using script command (similar to what you did for unix/git tutorials in Module 1).
Finally, you will build and deploy the artifacts for your housing price prediction library developed in the previous modules.
Build a docker container for your application and test it runs as expected locally by running the container and using the same steps as in the previous module to test your web application. Once you have a working container, branch off of v0.3 Git tag and create a PR in your repository and submit the PR link.
Create a DockerHub account for yourself (free a/c) and push your image. Try pulling the image from DockerHub and running the instance and testing everything works as expected. Once tested, submit the DockerHub link.
[optional] As with any other tool, there are some good practices/tricks to build more performant and secure containers. Update your previous Dockerfile to use a non-root user to run your application.
Use buildkit to enable multi-stage docker builds. See https://docs.docker.com/develop/develop-images/multistage-build/
Push a PR with your updates and submit the PR link.