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

Top level symlinks cannot be replicated inside the container #6

Open Nortamo opened 2 years ago

Nortamo commented 2 years ago

Singularity always follows symlinks provided as arguments to bind mounts, so there is currently no known way to replicate e.g /appl -> /pfs/lustrep3/appl inside the container mount namespace.

This leads to issues when doing nested calls to the wrappers.

Quick fix is to call the _bin folder which will contain symlinks if the bin <-> _bin bind mount has not been applied. or then alternatively using the --writable-tmpfs and create a symlink at container startup.