Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix remote pipeline (#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkSnail authored Feb 10, 2020
1 parent 69dfbf5 commit fdcd877
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deployment/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN python3 -m pip --no-cache-dir install Keras==2.1.6
# PyTorch
#
RUN python3 -m pip --no-cache-dir install torch==1.2.0
RUN python3 -m pip install torchvision==0.4.0
RUN python3 -m pip install torchvision==0.5.0

#
# sklearn 0.20.0
Expand Down
12 changes: 6 additions & 6 deletions test/pipelines-it-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,31 @@ jobs:
displayName: 'Install dependencies for integration tests in remote mode'
- task: CopyFilesOverSSH@0
inputs:
sshEndpoint: remote_nni-ci-gpu-01
sshEndpoint: $(end_point)
sourceFolder: deployment/pypi/dist/
targetFolder: /tmp/nnitest/$(Build.BuildId)/dist
overwrite: true
displayName: 'Copy dist files to remote machine'
- task: CopyFilesOverSSH@0
inputs:
sshEndpoint: remote_nni-ci-gpu-01
sshEndpoint: $(end_point)
sourceFolder: test
targetFolder: /tmp/nnitest/$(Build.BuildId)/test
overwrite: true
displayName: 'Copy test files to remote machine'
- task: SSH@0
inputs:
sshEndpoint: remote_nni-ci-gpu-01
sshEndpoint: $(end_point)
runOptions: commands
commands: python3 /tmp/nnitest/$(Build.BuildId)/test/remote_docker.py --mode start --name $(Build.BuildId) --image nni/nni
displayName: 'Start docker'
- task: DownloadSecureFile@1
inputs:
secureFile: remote_ci_private_key
secureFile: $(remote_private_key)
- script: |
cp $(Agent.TempDirectory)/remote_ci_private_key test/id_rsa
cp $(Agent.TempDirectory)/$(remote_private_key) test/id_rsa
chmod 600 test/id_rsa
scp -i test/id_rsa $(remote_user)@$(remote_host):/tmp/nnitest/$(Build.BuildId)/port test/port
scp -P $(remote_port) -i test/id_rsa $(remote_user)@$(remote_host):/tmp/nnitest/$(Build.BuildId)/port test/port
cat test/port
displayName: 'Get docker port'
- script: |
Expand Down

0 comments on commit fdcd877

Please sign in to comment.