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

make singularity volumes overridable context variables #2210

Conversation

cat-bro
Copy link
Collaborator

@cat-bro cat-bro commented Oct 2, 2024

Rearrange slurm_singularity_volumes etc to be context variables on the default tool instead of hard coding them on destinations. This makes it possible for an aws gateway user to have '/mnt/aws_gateway:ro' appended to volume strings for their jobs.

@jlqfab @nuwang from a dry run this appears to just work.

@cat-bro cat-bro requested a review from nuwang October 2, 2024 05:18
@@ -309,5 +309,8 @@ users:
params:
object_store_id: minio_test
[email protected]:
context:
slurm_singularity_volumes: "{{ slurm_singularity_volumes }},/mnt/aws_gateway:ro"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this read-only though? Shouldn't it be writable for output files?

Copy link
Collaborator Author

@cat-bro cat-bro Oct 2, 2024

Choose a reason for hiding this comment

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

write is not required for any of the other user data folders. galaxy moves the files there after the containerised tool execution has run. see volumes listed in host_vars/galaxy

Copy link
Contributor

Choose a reason for hiding this comment

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

Right! I forgot the handler does the final move.

@cat-bro cat-bro requested a review from jlqfab October 3, 2024 00:09
@cat-bro
Copy link
Collaborator Author

cat-bro commented Oct 3, 2024

If this is approved, please don't merge it. I'm confident that it works but would still like to keep an eye on galaxy when it goes in.

@cat-bro cat-bro merged commit ab8b51c into usegalaxy-au:master Oct 3, 2024
1 check passed
@cat-bro cat-bro deleted the make_singularity_volumes_overridable_context_variables branch October 3, 2024 03:49
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