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 10
10
jobs :
11
11
test :
12
12
runs-on : ubuntu-latest
13
+ strategy :
14
+ matrix :
15
+ version :
16
+ - ' 1.0.5'
17
+ - ' 1.5.4'
18
+ - ' 1.6.0'
13
19
steps :
14
20
- uses : actions/checkout@v2
15
21
- name : Setup Docker
16
22
run : |
17
23
docker version
18
24
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 .
20
26
docker-compose -f ci/docker-compose.yml up -d
21
27
docker ps
22
28
- name : Test Docker
23
29
run : |
24
- docker exec -t slurmctld pwd
25
- docker exec -t slurmctld ls -l
30
+ docker exec -t slurmctld julia --version
26
31
docker exec -t slurmctld srun -n 4 hostname
27
32
- name : Test SlurmClusterManager
28
33
run : |
Original file line number Diff line number Diff line change @@ -5,3 +5,12 @@ version = "0.1.0"
5
5
6
6
[deps ]
7
7
Distributed = " 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 1
1
FROM jkleinh/slurm-cluster as base
2
2
MAINTAINER Joseph Kleinhenz <jkleinh@umich.edu>
3
3
4
+ ARG JULIA_VERSION=1.6.0
5
+
4
6
RUN mkdir -p /home/docker/.local/opt/julia \
5
7
&& 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
7
11
8
12
ENV PATH="/home/docker/.local/opt/julia/bin:${PATH}"
9
13
You can’t perform that action at this time.
0 commit comments