diff --git a/.github/workflows/docker_build_1.8.0_py3.7_cuda11.1.1_ubuntu20.04.yml b/.github/workflows/docker_build_1.8.0_py3.7_cuda11.1.1_ubuntu20.04.yml new file mode 100644 index 0000000..3d73e68 --- /dev/null +++ b/.github/workflows/docker_build_1.8.0_py3.7_cuda11.1.1_ubuntu20.04.yml @@ -0,0 +1,39 @@ +name: Build(1.8.0_py3.7_cuda11.1.1_ubuntu20.04) + +env: + BASE_IMAGE: "ubuntu:20.04" + + PYTHON_VERSION: "3.7" + + PYTORCH_VERSION: "1.8.0" + PYTORCH_VERSION_SUFFIX: "+cu111" + TORCHVISION_VERSION: "0.9.0" + TORCHVISION_VERSION_SUFFIX: "+cu111" + TORCHAUDIO_VERSION: "0.8.0" + TORCHAUDIO_VERSION_SUFFIX: "" + PYTORCH_DOWNLOAD_URL: "https://download.pytorch.org/whl/torch_stable.html" + + IMAGE_TAG: "1.8.0-py3.7-cuda11.1.1-ubuntu20.04" + +on: + push: + branches: + - main + paths: + - 'docker/ubuntu/**' + - '.github/workflows/docker_build_1.8.0_py3.7_cuda11.1.1_ubuntu20.04.yml' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Login DockerHub + run: docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }} + + - name: Build docker image + run: docker/ubuntu/build.sh + + - name: Push docker image + run: docker push cnstark/pytorch:${IMAGE_TAG} diff --git a/README.md b/README.md index db79fea..1685fba 100644 --- a/README.md +++ b/README.md @@ -223,11 +223,13 @@ Note: `/path/to/project` and `/path/to/dataset` is your **own** project path and ### 1.8.0 -| Image | Pull Command | -| -------------| -------------| -| ![pytorch1.8.0] ![python3.9.12] ![cuda11.1] ![ubuntu20.04] [![](https://img.shields.io/docker/image-size/cnstark/pytorch/1.8.0-py3.9.12-cuda11.1.1-ubuntu20.04)][DockerHub] | `docker pull cnstark/pytorch:1.8.0-py3.9.12-cuda11.1.1-ubuntu20.04` | -| ![pytorch1.8.0] ![python3.9.12] ![cuda11.1-devel] ![ubuntu20.04] [![](https://img.shields.io/docker/image-size/cnstark/pytorch/1.8.0-py3.9.12-cuda11.1.1-devel-ubuntu20.04)][DockerHub] | `docker pull cnstark/pytorch:1.8.0-py3.9.12-cuda11.1.1-devel-ubuntu20.04` | -| ![pytorch1.8.0] ![python3.9.12] ![cpu] ![ubuntu20.04] [![](https://img.shields.io/docker/image-size/cnstark/pytorch/1.8.0-py3.9.12-ubuntu20.04)][DockerHub] | `docker pull cnstark/pytorch:1.8.0-py3.9.12-ubuntu20.04` | +| Image | Pull Command | +|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -------------| +| ![pytorch1.8.0] ![python3.9.12] ![cuda11.1] ![ubuntu20.04] [![](https://img.shields.io/docker/image-size/cnstark/pytorch/1.8.0-py3.9.12-cuda11.1.1-ubuntu20.04)][DockerHub] | `docker pull cnstark/pytorch:1.8.0-py3.9.12-cuda11.1.1-ubuntu20.04` | +| ![pytorch1.8.0] ![python3.9.12] ![cuda11.1-devel] ![ubuntu20.04] [![](https://img.shields.io/docker/image-size/cnstark/pytorch/1.8.0-py3.9.12-cuda11.1.1-devel-ubuntu20.04)][DockerHub] | `docker pull cnstark/pytorch:1.8.0-py3.9.12-cuda11.1.1-devel-ubuntu20.04` | +| ![pytorch1.8.0] ![python3.9.12] ![cpu] ![ubuntu20.04] [![](https://img.shields.io/docker/image-size/cnstark/pytorch/1.8.0-py3.9.12-ubuntu20.04)][DockerHub] | `docker pull cnstark/pytorch:1.8.0-py3.9.12-ubuntu20.04` | +| ![pytorch1.8.0] ![python3.7.13] ![cuda11.1] ![ubuntu20.04] [![](https://img.shields.io/docker/image-size/cnstark/pytorch/1.8.0-py3.7-cuda11.1.1-ubuntu20.04)][DockerHub] | `docker pull cnstark/pytorch:1.8.0-py3.7-cuda11.1.1-ubuntu20.04` | + ### 1.7.1 diff --git a/scripts/build_1.8.0_py3.7_cuda11.1.1_ubuntu20.04.sh b/scripts/build_1.8.0_py3.7_cuda11.1.1_ubuntu20.04.sh new file mode 100644 index 0000000..4456f1d --- /dev/null +++ b/scripts/build_1.8.0_py3.7_cuda11.1.1_ubuntu20.04.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +export BASE_IMAGE=ubuntu:20.04 + +export PYTHON_VERSION=3.7 + +export PYTORCH_VERSION=1.8.0 +export PYTORCH_VERSION_SUFFIX=+cu111 +export TORCHVISION_VERSION=0.9.0 +export TORCHVISION_VERSION_SUFFIX=+cu111 +export TORCHAUDIO_VERSION=0.8.0 +export TORCHAUDIO_VERSION_SUFFIX= +export PYTORCH_DOWNLOAD_URL=https://download.pytorch.org/whl/torch_stable.html + +export IMAGE_TAG=1.8.0-py3.7-cuda11.1.1-ubuntu20.04 + +./docker/ubuntu/build.sh