зеркало из https://github.com/microsoft/nni.git
Fix remote pipeline (#2787)
This commit is contained in:
Родитель
bbda6a8a65
Коммит
3fdbbdb3af
|
@ -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')
|
||||
|
||||
|
@ -57,7 +57,7 @@ def start_container(image, name, nnimanager_os):
|
|||
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче