Skip to content

Commit

Permalink
Merge pull request #263 from LCSB-BioCore/lh-add-singularity
Browse files Browse the repository at this point in the history
add singularity container

Former-commit-id: 8bad816
  • Loading branch information
laurentheirendt committed Jun 2, 2021
2 parents f79da27 + c48aa38 commit 4d009b6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ docs/src/notebooks/
docs/src/index.md
docs/src/howToContribute.md
docs/src/assets/output.gif

# ignore container files
*.sif
22 changes: 22 additions & 0 deletions cobrexa.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Bootstrap: library
From: crown421/default/juliabase:latest

%setup
dir=`pwd`
git clone \
"file://$dir" \
${SINGULARITY_ROOTFS}/project

%post
export JULIA_DEPOT_PATH=/user/.julia
export PATH=/opt/julia/bin:$PATH

cd project
julia --project -e 'import Pkg; Pkg.instantiate(); Pkg.build(); Pkg.precompile();'

echo 'using COBREXA; COBREXA._print_banner();' > /project/.startup.jl

chmod -R a+rX $JULIA_DEPOT_PATH

%runscript
julia --banner=no --project=/project --compile=min -i /project/.startup.jl

0 comments on commit 4d009b6

Please sign in to comment.