Skip to content

Commit

Permalink
improve tmpDir handling
Browse files Browse the repository at this point in the history
  • Loading branch information
riederd committed Sep 29, 2021
1 parent b4000c9 commit 50006c7
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 74 deletions.
1 change: 1 addition & 0 deletions conf/params.config
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ manifest {
//
import java.nio.file.Paths;

new File(params.tmpDir).mkdirs()
params.singularityTmpMount = params.tmpDir.startsWith("/tmp/") ? "/tmp" : Paths.get(params.tmpDir).toRealPath()
params.singularityHLAHDmount = (params.HLAHD_DIR != "") ? " -B " + Paths.get(params.HLAHD_DIR).toRealPath() : ""
params.singularityAssetsMount = projectDir.toRealPath() + "/assets"
Expand Down
3 changes: 2 additions & 1 deletion conf/params_icbi.config
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ manifest {
//
import java.nio.file.Paths;

params.singularityTmpMount = params.tmpDir.startsWith("/tmp") ? "/tmp" : Paths.get(params.tmpDir).toRealPath()
new File(params.tmpDir).mkdirs()
params.singularityTmpMount = params.tmpDir.startsWith("/tmp/") ? "/tmp" : Paths.get(params.tmpDir).toRealPath()
params.singularityHLAHDmount = (params.HLAHD_DIR != "") ? " -B " + Paths.get(params.HLAHD_DIR).toRealPath() : ""
params.singularityAssetsMount = projectDir.toRealPath() + "/assets"

Expand Down
Loading

0 comments on commit 50006c7

Please sign in to comment.