Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: 1.8.0-py3.7-cuda11.1.1-ubuntu20.04 #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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}
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions scripts/build_1.8.0_py3.7_cuda11.1.1_ubuntu20.04.sh
Original file line number Diff line number Diff line change
@@ -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