-
Notifications
You must be signed in to change notification settings - Fork 621
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 #3477
Conversation
modules/nextflow/src/main/groovy/nextflow/container/CharliecloudBuilder.groovy
Show resolved
Hide resolved
e2b4a93
to
f32ea0b
Compare
cefb067
to
e523afd
Compare
Closing since it looks abandoned |
Hello @pditommaso , we are actively using this patch in my institute since December and it's working as expected. Please tell me if there is anything that I can do. |
Fair enough, then it may worth to add some unit testing and merge it |
I added two small checks in the |
Tests run have been approved. However, it's much simpler to test locally just by running the following command in the project root
Also, consider signing your commit, see here for details. |
Hum sorry, the rebase look quite messy, would you prefer to have me make a new merge request from a clean repo ? |
Signed-off-by: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Signed-off-by: Laurent Modolo <laurent.modolo@ens-lyon.fr>
…r the readOnly parameter Signed-off-by: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Dear @pditommaso I cleaned up my master branch to have all my commit signed and the tests that I wrote pass the |
Nice, All checks have passed! let's merge it. Thanks for this contribution! |
This reverts commit 87eb321.
…i fast] This reverts commit 87eb321.
Sorry @l-modolo, I needed to rever this. |
No problem, thank you for your great work ! |
Hi @pditommaso I tried to fix the test problem with the last commits of the master branch. It shows 100% of the tests passed for
|
What if you run |
It give me the same error for :
However, the CI for github seems fine https://github.com/l-modolo/nextflow/actions/runs/4052972167 |
Try creating a new PR. I'll double check in my env |
Hi @pditommaso I created the #3590 PR |
Thanks a lot, in the pipeline |
This merge request is to add the
readOnlyInputs
option as discussed in the Charliecloud and shared cacheDir #3367 issue.With this modification:
readOnlyInputs
value isfalse
readOnlyInputs
istrue
;-w
option is removed from the commandFor 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 tomkdir -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.ps: Sorry for the code style, it's my first time coding in groovy
Signed-off-by: Laurent Modolo laurent.modolo@ens-lyon.fr