Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
3fdbbdb3
Unverified
Commit
3fdbbdb3
authored
Aug 13, 2020
by
SparkSnail
Committed by
GitHub
Aug 13, 2020
Browse files
Fix remote pipeline (#2787)
parent
bbda6a8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/nni_test/nnitest/remote_docker.py
test/nni_test/nnitest/remote_docker.py
+2
-2
No files found.
test/nni_test/nnitest/remote_docker.py
View file @
3fdbbdb3
...
@@ -37,7 +37,7 @@ def start_container(image, name, nnimanager_os):
...
@@ -37,7 +37,7 @@ def start_container(image, name, nnimanager_os):
'''Start docker container, generate a port in /tmp/nnitest/{name}/port file'''
'''Start docker container, generate a port in /tmp/nnitest/{name}/port file'''
port
=
find_port
()
port
=
find_port
()
source_dir
=
'/tmp/nnitest/'
+
name
source_dir
=
'/tmp/nnitest/'
+
name
run_cmds
=
[
'docker'
,
'run'
,
'-d'
,
'-p'
,
str
(
port
)
+
':22'
,
'--name'
,
name
,
'--mount'
,
'type=bind,source='
+
source_dir
+
',target=/tmp/nni'
,
image
]
run_cmds
=
[
'docker'
,
'run'
,
'-d'
,
'-t'
,
'-p'
,
str
(
port
)
+
':22'
,
'--name'
,
name
,
'--mount'
,
'type=bind,source='
+
source_dir
+
',target=/tmp/nni'
,
image
]
output
=
check_output
(
run_cmds
)
output
=
check_output
(
run_cmds
)
commit_id
=
output
.
decode
(
'utf-8'
)
commit_id
=
output
.
decode
(
'utf-8'
)
...
@@ -57,7 +57,7 @@ def start_container(image, name, nnimanager_os):
...
@@ -57,7 +57,7 @@ def start_container(image, name, nnimanager_os):
else
:
else
:
return
'/tmp/nni/dist/{0}'
.
format
(
wheel_name
)
return
'/tmp/nni/dist/{0}'
.
format
(
wheel_name
)
pip_cmds
=
[
'docker'
,
'exec'
,
name
,
'python3'
,
'-m'
,
'pip'
,
'install'
,
'--upgrade'
,
'pip'
,
'setuptools==
39.1
.0'
]
pip_cmds
=
[
'docker'
,
'exec'
,
name
,
'python3'
,
'-m'
,
'pip'
,
'install'
,
'--upgrade'
,
'pip'
,
'setuptools==
41.0
.0'
]
check_call
(
pip_cmds
)
check_call
(
pip_cmds
)
sdk_cmds
=
[
'docker'
,
'exec'
,
name
,
'python3'
,
'-m'
,
'pip'
,
'install'
,
get_dist
(
wheel_name
)]
sdk_cmds
=
[
'docker'
,
'exec'
,
name
,
'python3'
,
'-m'
,
'pip'
,
'install'
,
get_dist
(
wheel_name
)]
check_call
(
sdk_cmds
)
check_call
(
sdk_cmds
)
...
...
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