Templating for multiple envs/containers

This commit is contained in:
Chris Wright 2021-02-04 14:26:27 +00:00
parent ed2a961f9b
commit d57326dbff
2 changed files with 9 additions and 9 deletions

View File

@ -9,13 +9,6 @@
//
// for further help editing this file.
process {
withLabel:containerCPU {
container = 'workflow-template:latest'
}
}
profiles {
// the "standard" profile is used implicitely by nextflow
// if no other profile is given on the CLI
@ -26,6 +19,11 @@ profiles {
// also adds host user to the within-container group
runOptions = "--user \$(id -u):\$(id -g) --group-add 100"
}
process {
withLabel:default {
container = 'workflow-template:latest'
}
}
}
// profile using conda environments rather than docker
@ -35,7 +33,9 @@ profiles {
enabled = false
}
process {
conda = "environment.yaml"
withLabel:default {
conda = "environment.yaml"
}
}
conda {
cacheDir = ""

View File

@ -32,7 +32,7 @@ if(params.help) {
process readSeqs {
// Just write a file with sequence lengths
label "containerCPU"
label "default"
input:
file reads
output: