From ca7d5443ec7a1db1679f50b00f39812f6403a3c1 Mon Sep 17 00:00:00 2001 From: Sam Toyer Date: Tue, 28 Mar 2023 20:18:52 +0000 Subject: [PATCH] Remove Singularity file --- asnets/singularity.def | 60 ------------------------------------------ 1 file changed, 60 deletions(-) delete mode 100644 asnets/singularity.def diff --git a/asnets/singularity.def b/asnets/singularity.def deleted file mode 100644 index f47f1b7a..00000000 --- a/asnets/singularity.def +++ /dev/null @@ -1,60 +0,0 @@ -Bootstrap: library -From: ubuntu:18.04 -Stage: build - -%labels - Author sam@qxcv.net - Version v0.0.1 - -%help - A Singularity container for running various ASNets scripts. This may be - useful for users who want to set up an isolated environment for ASNets. - -%setup - set -e - old="$(pwd)" - cd ../ - git archive -o "${SINGULARITY_ROOTFS}/asnets-latest.tar" HEAD - cd "$old" - -%post - # getting to "usable Ubuntu" - # the LC_ALL thing is necessary to make pip etc. work properly - set -e - export LC_ALL=C.UTF-8 LANG=C.UTF-8 LC_LANG=C.UTF-8 - apt-get update -y - apt-get install -y software-properties-common - add-apt-repository universe - - # getting to "usable Python build system" - apt-get update -y - apt-get install -y python3-numpy python3-dev python3-pip python3-wheel \ - python3-venv flex bison build-essential autoconf libtool cmake git \ - mercurial libboost-dev - - # now drop privs - useradd -m -d /asnets asnets - chown asnets:asnets /asnets-latest.tar - # XXX I don't think this `su` is working; perhaps Singularity is running one - # command at a time, instead of piping this whole script to a shell? - su asnets - - # user-level stuff - cd /asnets - python3 -m venv asnet-env - . asnet-env/bin/activate - tar -xf /asnets-latest.tar - cd asnets - pip3 install -U setuptools pip wheel - pip3 install -r requirements.txt - pip install -e . - - # remove things that we don't need anymore - apt-get remove -y flex bison build-essential autoconf libtool \ - software-properties-common git mercurial cmake libboost-dev - apt-get autoremove -y - apt-get autoclean -y - -%runscript - . /asnets/asnet-env/bin/activate - python -m asnets.scripts.run_experiment $@