github.com/apptainer/singularity@v3.1.1+incompatible/examples/legacy/2.2/contrib/r_python_julia.def (about) 1 BootStrap: debootstrap 2 OSVersion: trusty 3 MirrorURL: http://us.archive.ubuntu.com/ubuntu/ 4 5 %runscript 6 7 %post 8 sed -i 's/$/ universe/' /etc/apt/sources.list 9 locale-gen "en_US.UTF-8" 10 dpkg-reconfigure locales 11 export LANGUAGE="en_US.UTF-8" 12 echo 'LANGUAGE="en_US.UTF-8"' >> /etc/default/locale 13 echo 'LC_ALL="en_US.UTF-8"' >> /etc/default/locale 14 mkdir /Software 15 apt-get update 16 apt-get install -y build-essential cmake curl ed git libsm6 libxrender1 libfontconfig1 lsb-release nettle-dev python-setuptools ruby software-properties-common vim wget zlib1g-dev apt-transport-https libgtk-3-0 bzip2 gfortran gettext libcairo2-dev libgit2-dev 17 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9 18 echo "deb https://cloud.r-project.org/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list 19 apt-get update 20 apt-get install -y r-base-dev 21 # can add command to install desired R packages here 22 apt-get clean 23 cd /Software 24 wget http://repo.continuum.io/archive/Anaconda3-4.1.1-Linux-x86_64.sh 25 bash Anaconda3-4.1.1-Linux-x86_64.sh -b -p /Software/anaconda3 26 rm Anaconda3-4.1.1-Linux-x86_64.sh 27 export PATH="/Software/anaconda3/bin:$PATH" 28 conda update conda 29 conda update anaconda 30 git clone git://github.com/JuliaLang/julia.git julia-0.5 31 cd julia-0.5 32 git checkout release-0.5 33 make MARCH=x86-64 34 cd .. 35 export PATH="/Software/julia-0.5/bin:$PATH" 36 # can add command to install desired julia packages here, remember to pre-compile! 37 sed -i 's|PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin|PATH="/Software/julia-0.5:/Software/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"|' /environment