CSCfi / hpc-container-wrapper

Tool to wrap installations into a container designed for use on HPC systems
MIT License
27 stars 8 forks source link

Namespace escaping commands broken under apptainer #5

Closed Nortamo closed 1 year ago

Nortamo commented 2 years ago

Tool fails when being called again after doing sbatch or srun from within the tool.

Reason Tool use SINGULARITY_ variables internally to control behavior of singularity. When apptainer is launched it sets the corresponding APPTAINER_ variables, which are inherited to the job and not unset when calling the tool outside the container.

Solution is to unset also the apptainer variables.

Nortamo commented 1 year ago

solved with #14