Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
15e85bc4
Commit
15e85bc4
authored
Feb 02, 2017
by
BAIRE Anthony
Browse files
use /work instead of /tmp for the current directory
parent
f952aaf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker/controller.py
View file @
15e85bc4
...
...
@@ -917,9 +917,9 @@ class JobManager(Manager):
ctrl
.
check_host_path
(
"isdir"
,
job_path
)
info
.
ctr_id
=
info
.
client
.
create_container
(
image
,
name
=
info
.
ctr_name
,
working_dir
=
"/tmp"
,
# TODO use another dir
# TODO parse quotes in job.param (instead of a rough .split())
#
working_dir
=
"/work"
,
# NOTE: the command line is a little complex, but this is
# to ensure that:
# - no output is lost (we go though a pipe in case the
...
...
@@ -948,7 +948,7 @@ class JobManager(Manager):
labels
=
{
"allgo.tmp_img"
:
tmp_img
or
""
},
host_config
=
ctrl
.
sandbox
.
create_host_config
(
binds
=
{
job_path
:
{
"bind"
:
"/
tmp
"
}},
binds
=
{
job_path
:
{
"bind"
:
"/
work
"
}},
cap_drop
=
[
"all"
],
# FIXME: CAP_DAC_OVERRIDE needed because all nfs files have uid,gid=1000,1000
cap_add
=
[
"dac_override"
],
...
...
BAIRE Anthony
@abaire
mentioned in commit
8bbb96aa
·
Mar 23, 2017
mentioned in commit
8bbb96aa
mentioned in commit 8bbb96aa960a066f613396528458a33029ddabf3
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment