Skip to content

Commit 57c4d1e

Browse files
committed
Overlay a dummy ~/.conda within the container to avoid environment leakage outside
1 parent 3eb4ce1 commit 57c4d1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

create_inst.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ SINGULARITY_BIND="$SINGULARITY_BIND,/tmp"
4242
if [[ ! ${CW_ENABLE_CONDARC+defined} ]]; then
4343
export CONDA_PKGS_DIRS=$CW_INSTALLATION_PATH/miniforge/pkgs
4444
fi
45+
mkdir -p $CW_BUILD_TMPDIR/.conda_override
46+
SINGULARITY_BIND="$SINGULARITY_BIND,$CW_BUILD_TMPDIR/.conda_override:$(readlink -f $HOME/.conda)"
4547
export SINGULARITY_BIND
4648
echo "export install_root=$CW_INSTALLATION_PATH" >> _extra_envs.sh
4749
echo "export install_root=$CW_INSTALLATION_PATH" >> _vars.sh

0 commit comments

Comments
 (0)