Commit c51a9cc7 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

Merge branch 'laurent.heirendt-master-patch-94403' into 'master'

increase julia version

See merge request !1
parents fd27b8d4 d4eeef27
# julia # Singularity container with Julia base
Julia Base Package - Base from https://github.com/Crown421/Singularity.jl Singularity container with Julia base
\ No newline at end of file
## Note
Package adapted from https://github.com/Crown421/Singularity.jl
...@@ -2,7 +2,7 @@ BootStrap: docker ...@@ -2,7 +2,7 @@ BootStrap: docker
From: bitnami/minideb:jessie From: bitnami/minideb:jessie
%environment %environment
# add local directory for precompile files # add local directory for precompile files
export JULIA_DEPOT_PATH=$PWD/containerhome/.julia:/user/.julia export JULIA_DEPOT_PATH=$PWD/containerhome/.julia:/user/.julia
export PATH=/opt/julia/bin:$PATH export PATH=/opt/julia/bin:$PATH
export HOME=/user export HOME=/user
...@@ -13,36 +13,28 @@ From: bitnami/minideb:jessie ...@@ -13,36 +13,28 @@ From: bitnami/minideb:jessie
export JULIA_DEPOT_PATH=/user/.julia export JULIA_DEPOT_PATH=/user/.julia
export PATH=/opt/julia/bin:$PATH export PATH=/opt/julia/bin:$PATH
JULIA_MAJOR=1.4 JULIA_MAJOR=1.6
JULIA_MINOR=.2 JULIA_MINOR=.1
# could also be .0 # could also be .0
# minideb specific install script, shaves off about 20mb compared to apt-get # minideb specific install script, shaves off about 20mb compared to apt-get
install_packages curl tar gzip openssh-client git ca-certificates install_packages curl tar gzip openssh-client git ca-certificates
curl -k https://julialang-s3.julialang.org/bin/linux/x64/$JULIA_MAJOR/julia-$JULIA_MAJOR$JULIA_MINOR-linux-x86_64.tar.gz > julia.tar.gz curl -k https://julialang-s3.julialang.org/bin/linux/x64/$JULIA_MAJOR/julia-$JULIA_MAJOR$JULIA_MINOR-linux-x86_64.tar.gz > julia.tar.gz
mkdir /opt/julia mkdir /opt/julia
tar xzf julia.tar.gz -C /opt/julia tar xzf julia.tar.gz -C /opt/julia
rm julia.tar.gz rm julia.tar.gz
mv /opt/julia/$(cd /opt/julia; echo julia-*)/* opt/julia/ mv /opt/julia/$(cd /opt/julia; echo julia-*)/* opt/julia/
rm -rf /opt/julia/$(cd /opt/julia; echo julia-*) rm -rf /opt/julia/$(cd /opt/julia; echo julia-*)
rm -rf /opt/julia/share/doc rm -rf /opt/julia/share/doc
rm -rf /opt/julia/share/icons rm -rf /opt/julia/share/icons
rm -rf /opt/julia/share/appdata rm -rf /opt/julia/share/appdata
rm -rf /opt/julia/share/applications rm -rf /opt/julia/share/applications
rm -rf /opt/julia/share/man rm -rf /opt/julia/share/man
rm -rf /opt/julia/share/julia/test rm -rf /opt/julia/share/julia/test
rm /opt/julia/LICENSE.md rm /opt/julia/LICENSE.md
rm -rf /opt/julia/etc rm -rf /opt/julia/etc
rm -rf /opt/julia/include rm -rf /opt/julia/include
mkdir -p /user/.julia/environments/$JULIA_MAJOR mkdir -p /user/.julia/environments/$JULIA_MAJOR
# julia -e 'using Pkg; Pkg.instantiate();'
# mkdir -p /opt/.julia/environments/v1.3/
# julia -e 'using Pkg; Pkg.status()'
# chmod -R a+rX $JULIA_DEPOT_PATH
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment