From 6eb69dbd30669dc48700317c54d1cfd895e6ad6a Mon Sep 17 00:00:00 2001 From: Tru Huynh <tru@pasteur.fr> Date: Thu, 23 Sep 2021 12:57:34 +0200 Subject: [PATCH] Singularity file from CentOS-7 with yml file --- Singularity | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Singularity diff --git a/Singularity b/Singularity new file mode 100644 index 0000000..58f6e80 --- /dev/null +++ b/Singularity @@ -0,0 +1,25 @@ +Bootstrap: docker +From: centos:centos7 + +%post +yum -y update && \ +yum -y install bzip2 && \ +yum -y clean all + +# install miniconda in /opt/miniconda, updating and adding pythonnet +curl -qsSLkO https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ +&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/miniconda3 \ +&& rm Miniconda3-latest-Linux-x86_64.sh +/opt/miniconda3/bin/conda update conda && /opt/miniconda3/bin/conda update --all +# download the yml file +curl https://gitlab.pasteur.fr/tru/conda-container-howto/-/raw/main/pythonnet.yml > pythonnet.yml && \ +/opt/miniconda3/bin/conda env create --file pythonnet.yml + +%environment +PATH=/opt/miniconda3/bin:$PATH +export PATH +# do not use ~/.local python +PYTHONNOUSERSITE=1 +export PYTHONNOUSERSITE + +# -- GitLab