Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit b769339

Browse files
committed
Upgrade Julia to fix non-root user case.
1 parent cdcd4f0 commit b769339

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG IMAGE=nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04
22
FROM $IMAGE
33

4-
COPY Project.toml Manifest.toml /usr/local/share/julia/environments/v1.5/
4+
ARG JULIA=1.5
55

66

77
# julia
@@ -14,24 +14,21 @@ RUN apt-get update && \
1414
apt-get clean && \
1515
rm -rf /var/lib/apt/lists/*
1616

17-
# NOTE: this extracts the Julia version (assumed major.minor.patch) from the
18-
# Project.toml to keep it in sync with the GitHub Action workflow.
19-
20-
RUN VERSION=$(grep '^julia = ' /usr/local/share/julia/environments/v1.5/Project.toml | grep -o '".*"' | cut -d '"' -f2) && \
21-
RELEASE=$(echo $VERSION | cut -d '.' -f 1,2 ) && \
22-
curl -s -L https://julialang-s3.julialang.org/bin/linux/x64/${RELEASE}/julia-${VERSION}-linux-x86_64.tar.gz | \
17+
RUN curl -s -L https://julialang-s3.julialang.org/bin/linux/x64/${JULIA}/julia-${JULIA}-latest-linux-x86_64.tar.gz | \
2318
tar -C /usr/local -x -z --strip-components=1 -f -
2419

2520

2621
# system-wide packages
2722

23+
COPY Project.toml Manifest.toml /usr/local/share/julia/environments/v${JULIA}/
24+
2825
RUN JULIA_DEPOT_PATH=/usr/local/share/julia \
2926
julia -e 'using Pkg; Pkg.instantiate(); Pkg.API.precompile()'
3027

3128
# generate the device runtime library for all known and supported devices
3229
RUN JULIA_DEPOT_PATH=/usr/local/share/julia \
3330
julia -e 'using CUDA; CUDA.precompile_runtime()' && \
34-
chmod 644 /usr/local/share/julia/compiled/v1.5/GPUCompiler/*/*.bc
31+
chmod 644 /usr/local/share/julia/compiled/v${JULIA}/GPUCompiler/*/*.bc
3532
# TODO: fix this in GPUCompiler.jl
3633

3734

0 commit comments

Comments
 (0)