Skip to content

Commit d6d11b8

Browse files
committed
accept local singularity images
1 parent f7ec832 commit d6d11b8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313
}
1414

1515
group = "io.krews"
16-
version = "0.14.14"
16+
version = "0.14.15"
1717

1818
repositories {
1919
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }

src/main/kotlin/krews/executor/bsub/BsubExecutor.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,10 @@ class BsubExecutor(private val workflowConfig: WorkflowConfig) : LocallyDirected
191191
bsubScript.append("export SINGULARITY_BIND=\"$binds\"\n")
192192

193193
// Add running the task to script
194+
val remoteImage = !taskRunContext.dockerImage.endsWith(".sif")
194195
bsubScript.append("\n")
195196
bsubScript.append("# Run task command.\n")
196-
bsubScript.append("singularity exec --containall docker://${taskRunContext.dockerImage} $containerCommand")
197+
bsubScript.append("singularity exec --containall ${if (remoteImage) "docker://" else ""}${taskRunContext.dockerImage} $containerCommand")
197198
bsubScript.append("\n")
198199

199200
// Add copying output files into output dir to script

0 commit comments

Comments
 (0)