Created
January 25, 2021 17:38
-
-
Save edwinb-ai/a8b0604fe2db13efbdeb746693e93e94 to your computer and use it in GitHub Desktop.
Singularity container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BootStrap: library | |
From: ubuntu:16.04 | |
%post | |
export PATH=/julia-1.5.3/bin:$PATH | |
export LD_LIBRARY_PATH=/julia-1.5.3/lib:/julia-1.5.3/lib/julia:$LD_LIBRARY_PATH | |
export LC_ALL=C | |
apt-get -y update | |
# install some basic tools | |
apt-get -y install curl tar gzip git | |
apt-get clean | |
apt-get autoremove | |
# now, download and install julia | |
curl -sSL "https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.3-linux-x86_64.tar.gz" > julia.tgz | |
tar -C / -zxf julia.tgz | |
rm -f julia.tgz | |
# Clone the repo, enter it and run the tests | |
cd /opt | |
git clone https://github.com/edwinb-ai/Elysivm.git | |
cd Elysivm | |
julia --project=. -e ' | |
using Pkg | |
Pkg.instantiate() | |
print(read(joinpath("test", "runtests.jl"), String)) | |
Pkg.test() | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment