Skip to content

Commit

Permalink
accept local singularity images
Browse files Browse the repository at this point in the history
  • Loading branch information
hpratt committed Oct 22, 2023
1 parent f7ec832 commit d6d11b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
}

group = "io.krews"
version = "0.14.14"
version = "0.14.15"

repositories {
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
Expand Down
3 changes: 2 additions & 1 deletion src/main/kotlin/krews/executor/bsub/BsubExecutor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,10 @@ class BsubExecutor(private val workflowConfig: WorkflowConfig) : LocallyDirected
bsubScript.append("export SINGULARITY_BIND=\"$binds\"\n")

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

// Add copying output files into output dir to script
Expand Down

0 comments on commit d6d11b8

Please sign in to comment.