Commit 8bbb96aa authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

revert commit 15e85bc4

changing workdir /tmp -> /work is deferred to 0.6
parent 4f47e9cb
......@@ -1043,7 +1043,7 @@ class JobManager(Manager):
ctrl.check_host_path("isdir", job_path)
hc = ctrl.sandbox.create_host_config(
binds = {job_path: {"bind": "/work"}},
binds = {job_path: {"bind": "/tmp"}},
cap_drop = ["all"],
# FIXME: CAP_DAC_OVERRIDE needed because all nfs files have uid,gid=1000,1000
cap_add = ["dac_override"],
......@@ -1057,7 +1057,7 @@ class JobManager(Manager):
hc["MemoryReservation"] = ctrl.mem_soft_limit
log.debug("host_config %r", hc)
info.ctr_id = info.client.create_container(image, name=info.ctr_name,
working_dir = "/work",
working_dir = "/tmp",
# NOTE: the command line is a little complex, but this is
# to ensure that (TODO write tests for this):
# - no output is lost (we go though a pipe in case the
......@@ -1070,7 +1070,7 @@ class JobManager(Manager):
# - we have no unusual dependencies (only sh, cat and
# mkfifo)
command = ["/bin/sh", "-c", """
fifo=/tmp/.allgo.fifo.{job_id}
fifo=/.allgo.fifo.{job_id}
if mkfifo "$fifo"
then
exec cat <"$fifo" >allgo.log &
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment