-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2364: Improved container priority resolution
- Loading branch information
Showing
10 changed files
with
265 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
tests/data/mock_module_containers/modules/mock_docker_single_quay_io.nf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
process MOCK { | ||
label 'process_fake' | ||
|
||
conda (params.enable_conda ? "bioconda::singlequay=1.9" : null) | ||
container "quay.io/biocontainers/singlequay:1.9--pyh9f0ad1d_0" | ||
|
||
// truncated | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/data/mock_module_containers/modules/mock_dsl2_apptainer_var1.nf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
process MOCK { | ||
label 'process_fake' | ||
|
||
conda "bioconda::dsltwoapptainervarone=1.1.0" | ||
container "${ (workflow.containerEngine == 'singularity' || workflow.containerEngine == 'apptainer') && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/dsltwoapptainervarone:1.1.0--py38h7be5676_2': | ||
'biocontainers/dsltwoapptainervarone:1.1.0--py38h7be5676_2' }" | ||
|
||
// truncated | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/data/mock_module_containers/modules/mock_dsl2_apptainer_var2.nf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
process MOCK { | ||
label 'process_fake' | ||
|
||
conda "bioconda::dsltwoapptainervartwo=1.1.0" | ||
container "${ ['singularity', 'apptainer'].contains(workflow.containerEngine) && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/dsltwoapptainervartwo:1.1.0--hdfd78af_0': | ||
'biocontainers/dsltwoapptainervartwo:1.1.0--hdfd78af_0' }" | ||
|
||
// truncated | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/data/mock_module_containers/modules/mock_dsl2_current.nf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
process MOCK { | ||
label 'process_fake' | ||
|
||
conda "bioconda::dsltwocurrent=1.2.1" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/dsltwocurrent:1.2.1--pyhdfd78af_0': | ||
'biocontainers/dsltwocurrent:1.2.1--pyhdfd78af_0' }" | ||
|
||
// truncated | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/data/mock_module_containers/modules/mock_dsl2_current_inverted.nf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
process MOCK { | ||
label 'process_fake' | ||
|
||
conda "bioconda::dsltwocurrentinv=3.3.2" | ||
container "${ !workflow.containerEngine == 'singularity' && task.ext.singularity_pull_docker_container ? | ||
'biocontainers/dsltwocurrentinv:3.3.2--h1b792b2_1' : | ||
'https://depot.galaxyproject.org/singularity/dsltwocurrentinv:3.3.2--h1b792b2_1' }" | ||
|
||
// truncated | ||
} |
12 changes: 12 additions & 0 deletions
12
tests/data/mock_module_containers/modules/mock_dsl2_old.nf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
process MOCK { | ||
label 'process_fake' | ||
|
||
conda (params.enable_conda ? "bioconda::dsltwoold=0.23.0" : null) | ||
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) { | ||
container "https://depot.galaxyproject.org/singularity/dsltwoold:0.23.0--0" | ||
} else { | ||
container "quay.io/biocontainers/dsltwoold:0.23.0--0" | ||
} | ||
|
||
// truncated | ||
} |
19 changes: 19 additions & 0 deletions
19
tests/data/mock_module_containers/modules/mock_dsl2_variable.nf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
process STAR_ALIGN { | ||
// from rnaseq 3.7 | ||
label 'process_fake' | ||
|
||
conda (params.enable_conda ? conda_str : null) | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
"https://depot.galaxyproject.org/singularity/${container_id}" : | ||
"quay.io/biocontainers/${container_id}" }" | ||
|
||
|
||
// Note: 2.7X indices incompatible with AWS iGenomes so use older STAR version | ||
conda_str = "bioconda::star=2.7.10a bioconda::samtools=1.15.1 conda-forge::gawk=5.1.0" | ||
container_id = 'mulled-v2-1fa26d1ce03c295fe2fdcf85831a92fbcbd7e8c2:afaaa4c6f5b308b4b6aa2dd8e99e1466b2a6b0cd-0' | ||
if (is_aws_igenome) { | ||
conda_str = "bioconda::star=2.6.1d bioconda::samtools=1.10 conda-forge::gawk=5.1.0" | ||
container_id = 'mulled-v2-1fa26d1ce03c295fe2fdcf85831a92fbcbd7e8c2:59cdd445419f14abac76b31dd0d71217994cbcc9-0' | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters