"test/tracing/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "508bc1dc8d7cff5c1383068d6601ff669f69111d"
Unverified Commit 649eabc0 authored by chicm-ms's avatar chicm-ms Committed by GitHub
Browse files

Fix build docker image problem (#2326)

parent f8d42a33
...@@ -51,7 +51,7 @@ RUN python3 -m pip --no-cache-dir install Keras==2.1.6 ...@@ -51,7 +51,7 @@ RUN python3 -m pip --no-cache-dir install Keras==2.1.6
# #
# PyTorch # PyTorch
# #
RUN python3 -m pip --no-cache-dir install torch==1.2.0 RUN python3 -m pip --no-cache-dir install torch==1.4.0
RUN python3 -m pip install torchvision==0.5.0 RUN python3 -m pip install torchvision==0.5.0
# #
......
...@@ -11,6 +11,10 @@ jobs: ...@@ -11,6 +11,10 @@ jobs:
- script: | - script: |
cd deployment/pypi cd deployment/pypi
if [ -d ./dist ]
then
rm -rf ./dist/*
fi
echo 'building prerelease package...' echo 'building prerelease package...'
make build make build
ls $(Build.SourcesDirectory)/deployment/pypi/dist/ ls $(Build.SourcesDirectory)/deployment/pypi/dist/
...@@ -28,6 +32,7 @@ jobs: ...@@ -28,6 +32,7 @@ jobs:
displayName: 'Install dependencies for integration tests in frameworkcontroller mode' displayName: 'Install dependencies for integration tests in frameworkcontroller mode'
- script: | - script: |
set -e
if [ $(build_docker_img) = 'true' ] if [ $(build_docker_img) = 'true' ]
then then
cd deployment/pypi cd deployment/pypi
...@@ -35,7 +40,7 @@ jobs: ...@@ -35,7 +40,7 @@ jobs:
echo 'updating docker file for installing nni from local...' echo 'updating docker file for installing nni from local...'
# update Dockerfile to install NNI in docker image from whl file built in last step # update Dockerfile to install NNI in docker image from whl file built in last step
sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/COPY .\/dist\/* .\nRUN python3 -m pip install nni-*.whl/' ../docker/Dockerfile sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/COPY .\/dist\/* .\/\nRUN python3 -m pip install nni-*.whl/' ../docker/Dockerfile
cat ../docker/Dockerfile cat ../docker/Dockerfile
export IMG_TAG=`date -u +%y%m%d%H%M` export IMG_TAG=`date -u +%y%m%d%H%M`
docker build -f ../docker/Dockerfile -t $(test_docker_img_name):$IMG_TAG . docker build -f ../docker/Dockerfile -t $(test_docker_img_name):$IMG_TAG .
......
...@@ -11,6 +11,10 @@ jobs: ...@@ -11,6 +11,10 @@ jobs:
- script: | - script: |
cd deployment/pypi cd deployment/pypi
if [ -d ./dist ]
then
rm -rf ./dist/*
fi
echo 'building prerelease package...' echo 'building prerelease package...'
make build make build
ls $(Build.SourcesDirectory)/deployment/pypi/dist/ ls $(Build.SourcesDirectory)/deployment/pypi/dist/
...@@ -28,6 +32,7 @@ jobs: ...@@ -28,6 +32,7 @@ jobs:
displayName: 'Install dependencies for integration tests in Kubeflow mode' displayName: 'Install dependencies for integration tests in Kubeflow mode'
- script: | - script: |
set -e
if [ $(build_docker_img) = 'true' ] if [ $(build_docker_img) = 'true' ]
then then
cd deployment/pypi cd deployment/pypi
...@@ -35,7 +40,7 @@ jobs: ...@@ -35,7 +40,7 @@ jobs:
echo 'updating docker file for installing nni from local...' echo 'updating docker file for installing nni from local...'
# update Dockerfile to install NNI in docker image from whl file built in last step # update Dockerfile to install NNI in docker image from whl file built in last step
sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/COPY .\/dist\/* .\nRUN python3 -m pip install nni-*.whl/' ../docker/Dockerfile sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/COPY .\/dist\/* .\/\nRUN python3 -m pip install nni-*.whl/' ../docker/Dockerfile
cat ../docker/Dockerfile cat ../docker/Dockerfile
export IMG_TAG=`date -u +%y%m%d%H%M` export IMG_TAG=`date -u +%y%m%d%H%M`
docker build -f ../docker/Dockerfile -t $(test_docker_img_name):$IMG_TAG . docker build -f ../docker/Dockerfile -t $(test_docker_img_name):$IMG_TAG .
......
...@@ -9,6 +9,10 @@ jobs: ...@@ -9,6 +9,10 @@ jobs:
- script: | - script: |
cd deployment/pypi cd deployment/pypi
if [ -d ./dist ]
then
rm -rf ./dist/*
fi
echo 'building prerelease package...' echo 'building prerelease package...'
make build make build
ls $(Build.SourcesDirectory)/deployment/pypi/dist/ ls $(Build.SourcesDirectory)/deployment/pypi/dist/
...@@ -16,13 +20,14 @@ jobs: ...@@ -16,13 +20,14 @@ jobs:
displayName: 'build nni bdsit_wheel' displayName: 'build nni bdsit_wheel'
- script: | - script: |
set -e
if [ $(build_docker_img) = 'true' ] if [ $(build_docker_img) = 'true' ]
then then
cd deployment/pypi cd deployment/pypi
docker login -u $(docker_hub_user) -p $(docker_hub_pwd) docker login -u $(docker_hub_user) -p $(docker_hub_pwd)
echo 'updating docker file for installing nni from local...' echo 'updating docker file for installing nni from local...'
# update Dockerfile to install NNI in docker image from whl file built in last step # update Dockerfile to install NNI in docker image from whl file built in last step
sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/COPY .\/dist\/* .\nRUN python3 -m pip install nni-*.whl/' ../docker/Dockerfile sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/COPY .\/dist\/* .\/\nRUN python3 -m pip install nni-*.whl/' ../docker/Dockerfile
cat ../docker/Dockerfile cat ../docker/Dockerfile
export IMG_TAG=`date -u +%y%m%d%H%M` export IMG_TAG=`date -u +%y%m%d%H%M`
......
...@@ -11,6 +11,10 @@ jobs: ...@@ -11,6 +11,10 @@ jobs:
- script: | - script: |
cd deployment/pypi cd deployment/pypi
if [ -d ./dist ]
then
rm -rf ./dist/*
fi
echo 'building prerelease package...' echo 'building prerelease package...'
make build make build
ls $(Build.SourcesDirectory)/deployment/pypi/dist/ ls $(Build.SourcesDirectory)/deployment/pypi/dist/
...@@ -35,7 +39,7 @@ jobs: ...@@ -35,7 +39,7 @@ jobs:
docker login -u $(docker_hub_user) -p $(docker_hub_pwd) docker login -u $(docker_hub_user) -p $(docker_hub_pwd)
echo 'updating docker file for installing nni from local...' echo 'updating docker file for installing nni from local...'
# update Dockerfile to install NNI in docker image from whl file built in last step # update Dockerfile to install NNI in docker image from whl file built in last step
sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/COPY .\/dist\/* .\nRUN python3 -m pip install nni-*.whl/' ../docker/Dockerfile sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/COPY .\/dist\/* .\/\nRUN python3 -m pip install nni-*.whl/' ../docker/Dockerfile
cat ../docker/Dockerfile cat ../docker/Dockerfile
export IMG_TAG=`date -u +%y%m%d%H%M` export IMG_TAG=`date -u +%y%m%d%H%M`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment