Skip to content

Commit 5f29548

Browse files
committed
add docker mount log support
1 parent dc9c106 commit 5f29548

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

process/score_upload.nf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ process scoreUpload {
3636

3737
if (workflow.containerEngine == "singularity") {
3838
containerOptions "--bind \$(pwd):/score-client/logs"
39+
} else if (workflow.containerEngine == "docker") {
40+
containerOptions "-v \$(pwd):/score-client/logs"
3941
}
4042

4143
tag "${analysis_id}"

process/song_manifest.nf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ process songManifest {
3939

4040
if (workflow.containerEngine == "singularity") {
4141
containerOptions "--bind \$(pwd):/song-client/logs"
42+
} else if (workflow.containerEngine == "docker") {
43+
containerOptions "-v \$(pwd):/song-client/logs"
4244
}
4345

4446
input:

process/song_publish.nf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ process songPublish {
3535

3636
if (workflow.containerEngine == "singularity") {
3737
containerOptions "--bind \$(pwd):/song-client/logs"
38+
} else if (workflow.containerEngine == "docker") {
39+
containerOptions "-v \$(pwd):/song-client/logs"
3840
}
3941

4042
tag "${analysis_id}"

process/song_submit.nf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ process songSubmit {
3535

3636
if (workflow.containerEngine == "singularity") {
3737
containerOptions "--bind \$(pwd):/song-client/logs"
38+
} else if (workflow.containerEngine == "docker") {
39+
containerOptions "-v \$(pwd):/song-client/logs"
3840
}
3941

4042
tag "${study_id}"

0 commit comments

Comments
 (0)