Skip to content

Commit 9a55d67

Browse files
committed
Install to /usr/local instead of root for promission reason
1 parent f659b44 commit 9a55d67

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

jenkins/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ RUN apt-get update && \
1212
rm -rf /var/lib/apt/lists/*
1313

1414
ARG JULIA=1.6
15-
RUN curl -fsSL https://install.julialang.org | sh -s -- --yes
16-
RUN /root/.juliaup/bin/juliaup add ${JULIA}
17-
RUN /root/.juliaup/bin/juliaup default ${JULIA}
15+
RUN curl -fsSL https://install.julialang.org | sh -s -- --path /usr/local/.juliaup --yes
16+
RUN /usr/local/.juliaup/bin/juliaup add ${JULIA}
17+
RUN /usr/local/.juliaup/bin/juliaup default ${JULIA}

jenkins/Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pipeline {
2727
}
2828
steps {
2929
sh '''
30-
/root/.juliaup/bin/julia -e 'using Pkg; Pkg.activate(temp=true); Pkg.Registry.update(); Pkg.update(); Pkg.develop(path="./NDTensors"); Pkg.develop(path="."); Pkg.test("NDTensors"; test_args=["cuda"])'
30+
/usr/local/.juliaup/bin/julia -e 'using Pkg; Pkg.activate(temp=true); Pkg.Registry.update(); Pkg.update(); Pkg.develop(path="./NDTensors"); Pkg.develop(path="."); Pkg.test("NDTensors"; test_args=["cuda"])'
3131
'''
3232
}
3333
}
@@ -51,7 +51,7 @@ pipeline {
5151
}
5252
steps {
5353
sh '''
54-
/root/.juliaup/bin/julia -e 'using Pkg; Pkg.activate(temp=true); Pkg.Registry.update(); Pkg.update(); Pkg.develop(path="./NDTensors"); Pkg.develop(path="."); Pkg.test("NDTensors"; test_args=["cuda"])'
54+
/usr/local/.juliaup/bin/julia -e 'using Pkg; Pkg.activate(temp=true); Pkg.Registry.update(); Pkg.update(); Pkg.develop(path="./NDTensors"); Pkg.develop(path="."); Pkg.test("NDTensors"; test_args=["cuda"])'
5555
'''
5656
}
5757
}
@@ -75,7 +75,7 @@ pipeline {
7575
}
7676
steps {
7777
sh '''
78-
/root/.juliaup/bin/julia -e 'using Pkg; Pkg.activate(temp=true); Pkg.Registry.update(); Pkg.update(); Pkg.develop(path="./NDTensors"); Pkg.develop(path="."); Pkg.test("NDTensors"; test_args=["cutensor"])'
78+
/usr/local/.juliaup/bin/julia -e 'using Pkg; Pkg.activate(temp=true); Pkg.Registry.update(); Pkg.update(); Pkg.develop(path="./NDTensors"); Pkg.develop(path="."); Pkg.test("NDTensors"; test_args=["cutensor"])'
7979
'''
8080
}
8181
}
@@ -99,7 +99,7 @@ pipeline {
9999
}
100100
steps {
101101
sh '''
102-
/root/.juliaup/bin/julia -e 'using Pkg; Pkg.activate(temp=true); Pkg.Registry.update(); Pkg.update(); Pkg.develop(path="./NDTensors"); Pkg.develop(path="."); Pkg.test("NDTensors"; test_args=["cutensor"])'
102+
/usr/local/.juliaup/bin/julia -e 'using Pkg; Pkg.activate(temp=true); Pkg.Registry.update(); Pkg.update(); Pkg.develop(path="./NDTensors"); Pkg.develop(path="."); Pkg.test("NDTensors"; test_args=["cutensor"])'
103103
'''
104104
}
105105
}

0 commit comments

Comments
 (0)