Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables can leak into singularity container #108

Open
sverhoeven opened this issue Oct 13, 2021 · 0 comments
Open

Environment variables can leak into singularity container #108

sverhoeven opened this issue Oct 13, 2021 · 0 comments

Comments

@sverhoeven
Copy link
Member

sverhoeven commented Oct 13, 2021

Environment variables set in Python process will get passed into the singularity container started by BmiClientSingularity.
This gives problems when env var value points to a path that is not available inside container.

Problem was detected with GDAL_DATA env var in eWaterCycle/ewatercycle#268 (comment) and was worked around in eWaterCycle/ewatercycle#268 (comment), by setting env var inside Dockerfile.

Possible solution could be to start container with --cleanenv arg, see https://singularity.hpcng.org/user-docs/3.8/cli/singularity_run.html?highlight=cleanenv#options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant