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 configured environment variables to singularity #92

Merged
merged 2 commits into from
May 29, 2024

Conversation

mseitzer
Copy link
Collaborator

Previously, environment variables set in the environment setup were not visible to singularity if running with --cleanenv or --containall.

Also switch order of setting environment variables and pre_job_script to allow the script to use the environment variables (useful to write more generic scripts).

Partially addresses #68.

@mseitzer mseitzer requested a review from luator April 26, 2024 14:29
cluster_utils/job.py Outdated Show resolved Hide resolved
cluster_utils/job.py Outdated Show resolved Hide resolved
cluster_utils/job.py Outdated Show resolved Hide resolved
@mseitzer mseitzer force-pushed the mseitzer/switch-export-prescript branch from 1127f54 to ebd3055 Compare May 1, 2024 07:53
@luator
Copy link
Member

luator commented May 6, 2024

Looks good now, thanks! (sorry for the merge conflict 😅 )

@luator
Copy link
Member

luator commented May 21, 2024

@mseitzer This can be merged right? If you don't have time right now, I can take care of the merge conflicts.

Previously, environment variables were not visible to singularity if
running with --contain.

Also switch order of setting environment variables and pre_job_script to
allow the script to use the environment variables (useful to write more
generic scripts). Note: the pre_job_script is now also run within the
virtual environment, if one is configured.
@mseitzer mseitzer force-pushed the mseitzer/switch-export-prescript branch from ebd3055 to 4bb86b5 Compare May 29, 2024 12:05
@mseitzer mseitzer merged commit 0f2744f into master May 29, 2024
7 checks passed
@mseitzer mseitzer deleted the mseitzer/switch-export-prescript branch May 29, 2024 12:15
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.

2 participants