Skip to content

Commit 72ea3b3

Browse files
authored
Fix the build, now that NVIDIA has removed the latest tag from the nvidia/cuda Docker image (#95)
* Update predictmd.yml * Update README.md * Update Project.toml * Update ci.yml * Update ci.yml * Update predictmd.yml * Update predictmd.yml
1 parent ece739f commit 72ea3b3

4 files changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ on:
66
- master
77
- staging
88
- trying
9-
schedule:
10-
- cron: '00 00,12 * * *'
11-
9+
workflow_dispatch:
1210
jobs:
1311
CI:
1412
runs-on: ${{ matrix.os }}

.github/workflows/predictmd.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ on:
66
- master
77
- staging
88
- trying
9-
schedule:
10-
- cron: '00 00,12 * * *'
11-
9+
workflow_dispatch:
1210
jobs:
1311
PredictMD_docker:
1412
runs-on: ${{ matrix.os }}
@@ -28,20 +26,20 @@ jobs:
2826
arch: ${{ matrix.arch }}
2927
- uses: julia-actions/julia-buildpkg@latest
3028
- uses: julia-actions/julia-runtest@latest
31-
- run: julia --project -e 'import SimpleContainerGenerator; pkgs = [(name = "PredictMD", rev = "master", ), (name = "PredictMDExtra", rev = "master", ), (name = "PredictMDFull", rev = "master", ), (name = "UnicodePlots", version = "1.2.0 - *", ),]; no_test = String["UnicodePlots"]; parent_image = "nvidia/cuda"; tests_must_pass = String["PredictMD", "PredictMDExtra", "PredictMDFull"]; SimpleContainerGenerator.create_dockerfile(pkgs; no_test = no_test, parent_image = parent_image, tests_must_pass = tests_must_pass)'
29+
- run: julia --project -e 'import SimpleContainerGenerator; pkgs = [(name = "PredictMD", rev = "master", ), (name = "PredictMDExtra", rev = "master", ), (name = "PredictMDFull", rev = "master", ), (name = "UnicodePlots", version = "1.2.0 - *", ),]; no_test = String["UnicodePlots"]; parent_image = "nvidia/cuda:11.2.0-devel-ubuntu20.04"; tests_must_pass = String["PredictMD", "PredictMDExtra", "PredictMDFull"]; SimpleContainerGenerator.create_dockerfile(pkgs; no_test = no_test, parent_image = parent_image, tests_must_pass = tests_must_pass)'
3230
- if: github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
3331
env:
3432
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
3533
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
3634
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker --config ~/.dockerconfig1 login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
37-
- if: github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
35+
- if: github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
3836
env:
3937
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4038
run: echo ${{ secrets.GITHUB_TOKEN }} | docker --config ~/.dockerconfig2 login docker.pkg.github.com -u bcbi --password-stdin
4139
- run: docker build -t dilumaluthge/predictmd -t docker.pkg.github.com/bcbi/simplecontainergenerator.jl/predictmd .
4240
- run: docker run dilumaluthge/predictmd "JULIA_DEBUG=all PREDICTMD_TEST_GROUP=all PREDICTMD_TEST_PLOTS=true /usr/bin/julia -e 'import Pkg; Pkg.test(string(:PredictMDExtra)); Pkg.test(string(:PredictMDFull)); Pkg.test(string(:PredictMD))'"
43-
- if: success() && github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
41+
- if: success() && github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
4442
run: docker --config ~/.dockerconfig1 push dilumaluthge/predictmd
45-
- if: success() && github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'schedule')
43+
- if: success() && github.ref == 'refs/heads/master' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
4644
run: docker --config ~/.dockerconfig2 push docker.pkg.github.com/bcbi/simplecontainergenerator.jl/predictmd
4745
continue-on-error: true

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SimpleContainerGenerator"
22
uuid = "b8d349fb-717b-4aac-a9b1-e1da4219c631"
33
authors = ["Dilum Aluthge"]
4-
version = "2.0.1"
4+
version = "2.0.2"
55

66
[deps]
77
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pkgs = [
178178
"Baz",
179179
]
180180
julia_version = v"1.4.0"
181-
parent_image = "nvidia/cuda:latest"
181+
parent_image = "nvidia/cuda:11.2.0-devel-ubuntu20.04"
182182

183183
SimpleContainerGenerator.create_dockerfile(pkgs;
184184
julia_version = julia_version,

0 commit comments

Comments
 (0)