Nextflow process docker commands do not work on bitbucket pipelines cloud platform, all volumes must be mounted under $BITBUCKET_CLONE_DIR and its subdirectories. #4597
-
Bug reportExpected behavior and actual behaviorIn developing a CI/CD development strategy for a nextflow pipeline using the nf-core template using bitbucket pipelines, I was expecting to be able to mount and run containers correctly straight away. Unfortunately, in the .command.run file it is clear that nextflow initialises containers by mounting directories from /etc/passwd and /etc/shadow, which are not permitted on the bitbucket cloud platform. Steps to reproduce the problemTo replicate the problem, you can try to run any test pipeline, e.g. nf-core, on the bitbucket pipelines platform. e.g. using the command:
in the bitbucket-pipelines.yml test script section. Program output
Environment
Additional contextI guess the solution here is to route the docker volume paths to a location that is allowed on bitbucket pipeline.
in particular:
I've attached my bitbucket yaml file, which runs various testing scripts, along with the associated pipeline output file containing the results of the commands. I've also included the .nextflow.log file, and the .command.run file from nextflow. pipelineLog-{baed7c6b-0968-489e-9d83-2b5a07688b70}.txt |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
This only happens when the (UNDOCUMENTED) setting I believe this is a problem with nf-core pipeline. @drpatelh @ewels can this setting please removed from nf-core config |
Beta Was this translation helpful? Give feedback.
-
Related to this #4596 |
Beta Was this translation helpful? Give feedback.
-
I just tried to run the same test with the command:
But it still tried to mount volumes in /etc/. I can confirm that the issue was solved however by modifying the nextflow.config file and changing the relevant setting. Is there another way to change this behaviour temporarily, in the run command? Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
This only happens when the (UNDOCUMENTED) setting
userEmulation
is added in the config.I believe this is a problem with nf-core pipeline. @drpatelh @ewels can this setting please removed from nf-core config