Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "Pb in building the docker images due to exceed RAM memory in the process of conda env creation"

Merged REGAN Cyril requested to merge 149-mamba_in_Dockerfile into master
Files
6
@@ -15,20 +15,19 @@ fi
# Set up the micromamba environment
# source $MAMBA_ROOT_PREFIX/etc/profile.d/micromamba.sh
PS1="\h:\w\$ "
micromamba activate
mamba activate dnadna
if [ -n "$DEV" -a "$DEV" != "0" ]; then
# Create the user's micromamba environment, activate it
if [ ! -d /home/${user}/.micromamba/envs/dnadna ]; then
micromamba create -n dnadna --clone base
if conda env list | grep -q dnadna; then echo "The environnement dnadna already exists"; else mamba env create -n dnadna -f environment.yml ;fi
mamba create -n dnadna --clone base
pip install -e .
fi
# Ensure that the dnadna environment is auto-activated when starting a new
# shell:
echo "micromamba activate dnadna" >> /home/${user}/.bashrc
echo "mamba activate dnadna" >> /home/${user}/.bashrc
fi
exec env PS1="$PS1" "$@"
Loading