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

Add readOnlyInputs option for CharliecloudBuilder #3590

Merged
merged 8 commits into from
Feb 2, 2023

Conversation

l-modolo
Copy link
Contributor

This merge request is to add the readOnlyInputs option as discussed in the Charliecloud and shared cacheDir #3367 issue and following the Add readOnlyInputs option for CharliecloudBuilder #3477 merge request

With this modification:

  • the default readOnlyInputs value is false
  • if readOnlyInputs is true;
  • the -w option is removed from the command
  • the bound volumes are transformed to only mount the first folder of the path

For example, if I try to bind /home/user/workdir/ to /home/ the bound path will be /home to /home. By doing that, charliecloud doesn't try to mkdir -p /home/user/workdir/ within the read-only container, the external path is bound at the /home directory level so all the subfolders are accessible with the user rights. If one tries to bind / I added an expection.

Signed-off-by: Laurent Modolo [email protected]

@pditommaso pditommaso merged commit 8ae001f into nextflow-io:master Feb 2, 2023
@pditommaso pditommaso added this to the 23.04.0 milestone Feb 21, 2023
@pditommaso
Copy link
Member

Included in version 23.02.0-edge

abhi18av pushed a commit to abhi18av/nextflow that referenced this pull request Oct 28, 2023
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