Skip to content

Commit

Permalink
Fix remote pipeline (microsoft#2787)
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkSnail authored Aug 13, 2020
1 parent bbda6a8 commit 3fdbbdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/nni_test/nnitest/remote_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def start_container(image, name, nnimanager_os):
'''Start docker container, generate a port in /tmp/nnitest/{name}/port file'''
port = find_port()
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)
commit_id = output.decode('utf-8')

Expand All @@ -57,7 +57,7 @@ def get_dist(wheel_name):
else:
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)
sdk_cmds = ['docker', 'exec', name, 'python3', '-m', 'pip', 'install', get_dist(wheel_name)]
check_call(sdk_cmds)
Expand Down

0 comments on commit 3fdbbdb

Please sign in to comment.