Skip to content

Create Docker images from Dockerfile, and add GitHub Actions workflow to automatically build the image, push it to DockerHub, and version the image and GitHub repo when changes are pushed to the Dockerfile.

Notifications You must be signed in to change notification settings

xiangwxt/dockerfile-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

dockerfile-practice

A practice on creating Docker images from Dockerfiles.

  1. Create a GitHub repo called dockerfile-practice

  2. Add a Dockerfile to it. This Dockerfile should:

  • Be based off of one of the Jupyter docker-stacks images (link to Jupyter docker-stacks documentation, link to repo of Jupyter docker-stacks Dockerfiles)

  • Add one new R or Python package to the Dockerfile (ensure that you pin the version of the package you add).

  • Add a GitHub Actions workflow to automatically build the image, push it to DockerHub, and version the image and GitHub repo when changes are pushed to the Dockerfile (link to a GitHub Actions Workflow you should use for this). Note 1: When setting up the workflow on GitHub Actions, be sure to click “Skip this and setup a workflow yourself”. Note 2: You will need to add your DockerHub username and password (naming them DOCKER_USERNAME and DOCKER_PASSWORD, respectively) as GitHub secrets to this repository for this to work.

About

Create Docker images from Dockerfile, and add GitHub Actions workflow to automatically build the image, push it to DockerHub, and version the image and GitHub repo when changes are pushed to the Dockerfile.

Resources

Stars

Watchers

Forks

Packages

No packages published