From b44a645608977bb09fd346c8392b2ed553f29e3d Mon Sep 17 00:00:00 2001 From: James Tocknell Date: Wed, 4 Sep 2019 17:43:39 +1000 Subject: [PATCH 1/2] Add tmp singularity file BROKEN --- singularity/disc-solver.def | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 singularity/disc-solver.def diff --git a/singularity/disc-solver.def b/singularity/disc-solver.def new file mode 100644 index 00000000..c7efc3f2 --- /dev/null +++ b/singularity/disc-solver.def @@ -0,0 +1,42 @@ +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 + + +#%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 james.tocknell@mq.edu.au + Version v0.0.1 + +#%help +# This is a demo container used to illustrate a def file that uses all +# supported sections. From bca62836af9cf491e35e04c921576affb2c8e95d Mon Sep 17 00:00:00 2001 From: James Tocknell Date: Fri, 4 Sep 2020 12:34:53 +1000 Subject: [PATCH 2/2] More deps --- singularity/disc-solver.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/singularity/disc-solver.def b/singularity/disc-solver.def index c7efc3f2..4e5508a5 100644 --- a/singularity/disc-solver.def +++ b/singularity/disc-solver.def @@ -14,7 +14,8 @@ MirrorURL: http://deb.debian.org/debian # 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 + 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