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
beat
beat.core
Commits
dd0b9f97
Commit
dd0b9f97
authored
Sep 26, 2018
by
Samuel GAIST
Browse files
[docker] Handle the uid at docker level rather than inside container.
parent
d1dad470
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/core/execution/docker.py
View file @
dd0b9f97
...
...
@@ -222,6 +222,7 @@ class DockerExecutor(RemoteExecutor):
#----- (If necessary) Instantiate the docker container that provide the databases
databases_container
=
None
datasets_uid
=
self
.
data
.
pop
(
'datasets_uid'
,
None
)
if
len
(
self
.
databases
)
>
0
:
...
...
@@ -270,6 +271,7 @@ class DockerExecutor(RemoteExecutor):
cmd
.
insert
(
1
,
'--debug'
)
databases_container
=
self
.
host
.
create_container
(
databases_environment
,
cmd
)
databases_container
.
uid
=
datasets_uid
# Specify the volumes to mount inside the container
databases_container
.
add_volume
(
databases_configuration_path
,
'/beat/prefix'
)
...
...
@@ -319,6 +321,7 @@ class DockerExecutor(RemoteExecutor):
# Creation of the container
algorithm_container
=
self
.
host
.
create_container
(
processing_environment
,
cmd
)
algorithm_container
.
uid
=
datasets_uid
# Volumes
algorithm_container
.
add_volume
(
configuration_path
,
'/beat/prefix'
)
...
...
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