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 runOptions to Docker profile to fix ownership on files #24

Closed
wants to merge 1 commit into from
Closed

add runOptions to Docker profile to fix ownership on files #24

wants to merge 1 commit into from

Conversation

maxulysse
Copy link
Member

Add runOptions to Docker profile to fix ownership on files.
Otherwise we have Permission denied when deleting the work directory.

@maxulysse maxulysse requested a review from a team June 12, 2018 09:12
Copy link
Member

@apeltzer apeltzer left a comment

Choose a reason for hiding this comment

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

Looks good :) Nice!

@ewels
Copy link
Member

ewels commented Jun 12, 2018

This makes me a little nervous. Will it have any off-target affects?

@pditommaso - why is this not the default in Nextflow?

@maxulysse
Copy link
Member Author

There was also the fixOwnership setting in the Docker scope

@ewels
Copy link
Member

ewels commented Jun 12, 2018

There was also the fixOwnership setting in the Docker scope

Does this have the same effect? I'm a bit scared of changing these kinds of defaults in case it breaks everything for people running say, kubernetes.

@maxulysse
Copy link
Member Author

If I remember well, I think I had the fixOwnership and it might have caused some issue when I tried AWS, so @pditommaso told me to use this docker.runOptions = '-u $(id -u):$(id -g)'.
And no problem with Docker on AWS, but haven't tried kubernetes yet ;-)

@pditommaso
Copy link
Contributor

pditommaso commented Jun 12, 2018

why is this not the default in Nextflow?

Well, this was a long discussion (with myself). To summarise the idea was to make it the default, but then I've realised that when using that setting also the container USER and home path are different that potentially could have some negative side effects

nextflow-io/nextflow#515

Still need to evaluate pros&cons.

@ewels
Copy link
Member

ewels commented Jun 12, 2018

this was a long discussion (with myself)

I know the feeling 😅

I'd be tempted to leave this out of nf-core pipelines for now then - same risk of pros & cons and could be resolved in a future core nextflow release anyway.

@ewels
Copy link
Member

ewels commented Jun 18, 2018

Closing for now @maxulysse - hope that's ok! Maybe submit a PR with some documentation describing this and how to fix with a user config under a troubleshooting section?

@ewels ewels closed this Jun 18, 2018
@maxulysse
Copy link
Member Author

Ah, yes, I had questions, that's why I didn't merge it.
Sorry that I forgot to merge

denis-yuen added a commit to denis-yuen/dockstore-tool-bamstats that referenced this pull request Aug 30, 2018
phue pushed a commit that referenced this pull request Oct 28, 2019
phue pushed a commit that referenced this pull request Oct 28, 2019
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.

4 participants