Skip to content

Commit

Permalink
Merge 44b024f into ef5ffee
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Aug 15, 2022
2 parents ef5ffee + 44b024f commit d3478ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WDL/runtime/backend/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ def _run_invocation(self, logger: logging.Logger, cleanup: ExitStack, image: str
# Also create a scratch directory and mount to /tmp and /var/tmp
# For context why this is needed:
# https://github.com/hpcng/singularity/issues/5718
tempdir = cleanup.enter_context(tempfile.TemporaryDirectory(prefix="miniwdl_singularity_"))
# TODO: provide opt-out for those able to edit /etc/singularity/singularity.conf to
# increase sessiondir max size
tempdir = cleanup.enter_context(
tempfile.TemporaryDirectory(prefix="_singularity_tmpdir_", dir=self.host_dir)
)
os.mkdir(os.path.join(tempdir, "tmp"))
os.mkdir(os.path.join(tempdir, "var_tmp"))
mounts.append(("/tmp", os.path.join(tempdir, "tmp"), True))
Expand Down

0 comments on commit d3478ed

Please sign in to comment.