File tree Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Expand file tree Collapse file tree 3 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1010jobs :
1111 test :
1212 runs-on : ubuntu-latest
13+ strategy :
14+ matrix :
15+ version :
16+ - ' 1.0.5'
17+ - ' 1.5.4'
18+ - ' 1.6.0'
1319 steps :
1420 - uses : actions/checkout@v2
1521 - name : Setup Docker
1622 run : |
1723 docker version
1824 docker-compose version
19- docker build -t slurm-cluster-julia -f ci/Dockerfile .
25+ docker build --build-arg JULIA_VERSION=${{matrix.version}} - t slurm-cluster-julia -f ci/Dockerfile .
2026 docker-compose -f ci/docker-compose.yml up -d
2127 docker ps
2228 - name : Test Docker
2329 run : |
24- docker exec -t slurmctld pwd
25- docker exec -t slurmctld ls -l
30+ docker exec -t slurmctld julia --version
2631 docker exec -t slurmctld srun -n 4 hostname
2732 - name : Test SlurmClusterManager
2833 run : |
Original file line number Diff line number Diff line change @@ -5,3 +5,12 @@ version = "0.1.0"
55
66[deps ]
77Distributed = " 8ba89e20-285c-5b6f-9357-94700520ee1b"
8+
9+ [extras ]
10+ Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
11+
12+ [targets ]
13+ test = [" Test" ]
14+
15+ [compat ]
16+ julia = " 1.0"
Original file line number Diff line number Diff line change 11FROM jkleinh/slurm-cluster as base
22MAINTAINER Joseph Kleinhenz <jkleinh@umich.edu>
33
4+ ARG JULIA_VERSION=1.6.0
5+
46RUN mkdir -p /home/docker/.local/opt/julia \
57 && cd /home/docker/.local/opt/julia \
6- && curl -L https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.0-linux-x86_64.tar.gz | tar xz --strip 1
8+ && folder="$(echo ${JULIA_VERSION} | cut -d. -f1-2)" \
9+ && curl -L https://julialang-s3.julialang.org/bin/linux/x64/${folder}/julia-${JULIA_VERSION}-linux-x86_64.tar.gz | tar xz --strip 1 \
10+ && /home/docker/.local/opt/julia/bin/julia --version
711
812ENV PATH="/home/docker/.local/opt/julia/bin:${PATH}"
913
You can’t perform that action at this time.
0 commit comments