Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dima Gerasimov
Pod backend
Commits
61cbeee5
Verified
Commit
61cbeee5
authored
4 years ago
by
Vasili Novikov
Browse files
Options
Download
Email Patches
Plain Diff
Try --network for docker
parent
0e7f3a84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/internal_api.rs
+2
-6
src/internal_api.rs
with
2 additions
and
6 deletions
+2
-6
src/internal_api.rs
+
2
-
6
View file @
61cbeee5
...
...
@@ -408,7 +408,7 @@ fn docker_arguments() -> Vec<String> {
if
let
Some
(
env
)
=
env
{
env
.split
(
"
\0
"
)
.map
(|
s
|
s
.to_string
())
.collect
()
}
else
{
vec!
[
"--net=host"
.to_string
()]
vec!
[
"--net
work
=host"
.to_string
()]
}
}
...
...
@@ -420,11 +420,7 @@ pub fn run_downloaders(service: String, data_type: String) -> Result<()> {
Command
::
new
(
"docker"
)
.arg
(
"run"
)
.args
(
&
docker_arguments
())
.args
(
&
[
"--rm"
,
"--name=memri-indexers_1"
,
"-it"
,
])
.args
(
&
[
"--rm"
,
"--name=memri-indexers_1"
,
"-it"
])
.args
(
&
[
"memri-downloaders:latest"
])
.spawn
()
.expect
(
"Failed to run downloader"
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets