Skip to content

Commit a88d430

Browse files
author
Peter Amstutz
committed
When running in docker, output dir is now mounted at /var/spool/cwl and TMPDIR
is /tmp.
1 parent f9dcc7f commit a88d430

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cwltool/job.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ def run(self, dry_run=False, pull_image=True, rm_container=True, rm_tmpdir=True,
6363
for src in self.pathmapper.files():
6464
vol = self.pathmapper.mapper(src)
6565
runtime.append("--volume=%s:%s:ro" % vol)
66-
runtime.append("--volume=%s:%s:rw" % (os.path.abspath(self.outdir), "/tmp/job_output"))
67-
runtime.append("--volume=%s:%s:rw" % (os.path.abspath(self.tmpdir), "/tmp/job_tmp"))
68-
runtime.append("--workdir=%s" % ("/tmp/job_output"))
66+
runtime.append("--volume=%s:%s:rw" % (os.path.abspath(self.outdir), "/var/spool/cwl"))
67+
runtime.append("--volume=%s:%s:rw" % (os.path.abspath(self.tmpdir), "/tmp"))
68+
runtime.append("--workdir=%s" % ("/var/spool/cwl"))
6969
runtime.append("--read-only=true")
7070
euid = docker_vm_uid() or os.geteuid()
7171
runtime.append("--user=%s" % (euid))
7272

7373
if rm_container:
7474
runtime.append("--rm")
7575

76-
runtime.append("--env=TMPDIR=/tmp/job_tmp")
76+
runtime.append("--env=TMPDIR=/tmp")
7777

7878
for t,v in self.environment.items():
7979
runtime.append("--env=%s=%s" % (t, v))

0 commit comments

Comments
 (0)