Commit 848c1fcf authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files
parent dde1c9cf
BootStrap: docker
From: bitnami/minideb:jessie
%environment
# add local directory for precompile files
export JULIA_DEPOT_PATH=$PWD/containerhome/.julia:/user/.julia
export PATH=/opt/julia/bin:$PATH
export HOME=/user
%post
mkdir -p /user
export HOME=/user
export JULIA_DEPOT_PATH=/user/.julia
export PATH=/opt/julia/bin:$PATH
JULIA_MAJOR=1.4
JULIA_MINOR=.2
# could also be .0
# minideb specific install script, shaves off about 20mb compared to apt-get
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
mkdir /opt/julia
tar xzf julia.tar.gz -C /opt/julia
rm julia.tar.gz
mv /opt/julia/$(cd /opt/julia; echo julia-*)/* opt/julia/
rm -rf /opt/julia/$(cd /opt/julia; echo julia-*)
rm -rf /opt/julia/share/doc
rm -rf /opt/julia/share/icons
rm -rf /opt/julia/share/appdata
rm -rf /opt/julia/share/applications
rm -rf /opt/julia/share/man
rm -rf /opt/julia/share/julia/test
rm /opt/julia/LICENSE.md
rm -rf /opt/julia/etc
rm -rf /opt/julia/include
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