eth-cscs / sarus

OCI-compatible engine to deploy Linux containers on HPC environments.
https://sarus.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
127 stars 10 forks source link

Option to whitelist/blacklist captured host's environment variables #8

Open victorusu opened 4 years ago

victorusu commented 4 years ago

It would be nice if we could have an option to whitelist and/or blacklist the environment variables that are captured from the host's environment.

The use case is the use of application managers inside the container, where the identification of the system is done by environment variables, e.g. Spack identifies if the system is a Cray system by the existence of the environment variable CRAYPE_VERSION (https://spack.readthedocs.io/en/latest/getting_started.html#using-linux-containers-on-cray-machines). In this case, one has to unset the environment variable CRAYPE_VERSION before running spack with Sarus.