Skip to content

Commit f0f2b9e

Browse files
author
david.fischak@eodc.eu
committed
Change precompilation steps
1 parent 5fdf861 commit f0f2b9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kernel-julia/container/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,14 @@ RUN apt-get update && \
3030
apt-get autoclean --yes && \
3131
rm --force --recursive /var/lib/apt/lists/*
3232

33+
RUN julia --eval 'using Pkg; using IJulia; ENV["IJULIA_DEBUG"]=true; Pkg.build("IJulia")'
3334

3435
RUN mv /usr/local/bin/init.jl \
3536
$(julia --eval "using IJulia; println(pathof(IJulia))" | rev | cut --delimiter='/' --fields=2- | rev)
3637
RUN mv /usr/local/bin/eventloop.jl \
3738
$(julia --eval "using IJulia; println(pathof(IJulia))" | rev | cut --delimiter='/' --fields=2- | rev)
3839

39-
RUN julia --eval 'using Pkg; using IJulia; ENV["IJULIA_DEBUG"]=true; Pkg.build("IJulia")'
40-
41-
40+
4241
RUN chown jovyan:users /usr/local/bin/bootstrap-kernel.sh && \
4342
chmod 0755 /usr/local/bin/bootstrap-kernel.sh && \
4443
chown --recursive jovyan:users /usr/local/bin/kernel-launchers

kernel-julia/container/julia-packages.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ for (name, version) in packages
2323
Pkg.add(Pkg.PackageSpec(name=name, version=version))
2424
end
2525

26+
Pkg.instantiate()
2627
Pkg.precompile()

0 commit comments

Comments
 (0)