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

Fix docker container permissions for ms2rescore #302

Merged
merged 7 commits into from
Feb 19, 2024

Conversation

jonasscheid
Copy link
Collaborator

@jonasscheid jonasscheid commented Jan 23, 2024

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/mhcquant branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

Copy link

github-actions bot commented Jan 23, 2024

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit f34ebc7

+| ✅ 200 tests passed       |+
!| ❗   5 tests had warnings |!

❗ Test warnings:

  • pipeline_todos - TODO string in WorkflowMhcquant.groovy: Optionally add in-text citation tools to this list.
  • system_exit - System.exit in WorkflowMhcquant.groovy: System.exit(1) [line 18]
  • system_exit - System.exit in WorkflowMhcquant.groovy: System.exit(1) [line 45]
  • system_exit - System.exit in WorkflowMhcquant.groovy: System.exit(1) [line 51]
  • system_exit - System.exit in WorkflowMain.groovy: System.exit(1) [line 53]

✅ Tests passed:

Run details

  • nf-core/tools version 2.12.1
  • Run at 2024-02-16 13:43:48

@@ -157,6 +157,7 @@ process {
}

withName: 'MS2RESCORE' {
containerOptions = '-u $(id -u) -e "HOME=${HOME}" -v $HOME:$HOME'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this work like this or does it need to be process.containerOptions?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

process.containerOptions works only in the nextflow.config

I oriented myself by Julia's fix: nf-core/tools#2673

By this we can define container options on module level, that is not possible with runOptions

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And: The MS2Rescore container needed a specific "treatment" in order to run, else permission issues. Previously that was handled by userEmulation, but that is/will be removed :/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok so this works when having sudo rights, but apparently not via GH actions.. Im gonna test the full diff compared to userEmulation

@jonasscheid
Copy link
Collaborator Author

To fix lints we need to wait for the newest template update. Conversation: https://nfcore.slack.com/archives/CE6PELWR4/p1705931019545439?thread_ts=1705482353.145949&cid=CE6PELWR4

Copy link
Collaborator

@marissaDubbelaar marissaDubbelaar left a comment

Choose a reason for hiding this comment

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

👍

@jonasscheid jonasscheid merged commit b9b2f2a into nf-core:dev Feb 19, 2024
7 checks passed
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