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
649eabc0
"test/tracing/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "508bc1dc8d7cff5c1383068d6601ff669f69111d"
Unverified
Commit
649eabc0
authored
Apr 17, 2020
by
chicm-ms
Committed by
GitHub
Apr 17, 2020
Browse files
Fix build docker image problem (#2326)
parent
f8d42a33
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
5 deletions
+24
-5
deployment/docker/Dockerfile
deployment/docker/Dockerfile
+1
-1
test/pipelines/pipelines-it-frameworkcontroller.yml
test/pipelines/pipelines-it-frameworkcontroller.yml
+6
-1
test/pipelines/pipelines-it-kubeflow.yml
test/pipelines/pipelines-it-kubeflow.yml
+6
-1
test/pipelines/pipelines-it-pai-windows.yml
test/pipelines/pipelines-it-pai-windows.yml
+6
-1
test/pipelines/pipelines-it-pai.yml
test/pipelines/pipelines-it-pai.yml
+5
-1
No files found.
deployment/docker/Dockerfile
View file @
649eabc0
...
@@ -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
#
#
...
...
test/pipelines/pipelines-it-frameworkcontroller.yml
View file @
649eabc0
...
@@ -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 .
...
...
test/pipelines/pipelines-it-kubeflow.yml
View file @
649eabc0
...
@@ -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 .
...
...
test/pipelines/pipelines-it-pai-windows.yml
View file @
649eabc0
...
@@ -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`
...
...
test/pipelines/pipelines-it-pai.yml
View file @
649eabc0
...
@@ -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`
...
...
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