Skip to content
Snippets Groups Projects
Commit 6eb69dbd authored by Quang tru HUYNH's avatar Quang tru HUYNH
Browse files

Singularity file from CentOS-7 with yml file

parent 73eff806
No related branches found
No related tags found
No related merge requests found
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
#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment