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

Pass user env/flag binds into container as SINGULARITY_BIND #5670

Merged
merged 1 commit into from
Oct 29, 2020
Merged

Pass user env/flag binds into container as SINGULARITY_BIND #5670

merged 1 commit into from
Oct 29, 2020

Conversation

dtrudg
Copy link
Contributor

@dtrudg dtrudg commented Oct 28, 2020

Description of the Pull Request (PR):

In prior versions of singularity the SINGULARITY_BIND env var would
pass into the container. I've seen SINGULARITY_BIND examined in
containers to e.g. check that a user specifically bound in a data
directory where that's necessary.

Restore so that SINGULARITY_BIND in the container reflects user
defined env var, and also now flag binds.

Checking SINGULARITY_BIND in a container like this is admittedly fragile - but this PR is concerned with allowing it, as it has been requested in #5599

This fixes or addresses the following GitHub issues:

Before submitting a PR, make sure you have done the following:

Attn: @singularity-maintainers

Fixes: #5599

In prior versions of singularity the `SINGULARITY_BIND` env var would
pass into the container. I've seen `SINGULARITY_BIND` examined in
containers to e.g. checkthat a user specifically bound in a data
directory where that's necessary.

Restore so that `SINGULARITY_BIND` in the conatiner reflects user
defined env var and flag binds.
@dtrudg dtrudg added this to the 3.7.0 milestone Oct 28, 2020
@dtrudg dtrudg self-assigned this Oct 28, 2020
@dtrudg dtrudg changed the title Pass user env/flag binds into conatiner as SINGULARITY_BIND Pass user env/flag binds into container as SINGULARITY_BIND Oct 28, 2020
Copy link
Collaborator

@cclerget cclerget left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

Envvar $SINGULARITY_BIND is no longer available from within the container
2 participants