Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Singularity support #78

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions singularity/disc-solver.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Bootstrap: debootstrap
OSVersion: unstable
MirrorURL: http://deb.debian.org/debian

#%setup
# touch /file1
# touch ${SINGULARITY_ROOTFS}/file2
#

#%files

#%environment
# export LISTEN_PORT=12345
# export LC_ALL=C

%post
apt-get update && apt-get install -y git tmux virtualenvwrapper python3-dev python3-pip libsundials-dev libhdf5-dev libgirepository1.0-dev libgtk-3-dev xvfb vim sudo zsh
echo "exec -cl bash" > ${SINGULARITY_ROOTFS}/.shell


#%runscript
# echo "Container was created $NOW"
# echo "Arguments received: $*"
# exec echo "$@"

#%startscript
# nc -lp $LISTEN_PORT

#%test
# grep -q NAME=\"Ubuntu\" /etc/os-release
# if [ $? -eq 0 ]; then
# echo "Container base is Ubuntu as expected."
# else
# echo "Container base is not Ubuntu."
# fi

%labels
Author [email protected]
Version v0.0.1

#%help
# This is a demo container used to illustrate a def file that uses all
# supported sections.