From b1aa90e3fa1ff5c99df9e09f0aa97d8c58936e44 Mon Sep 17 00:00:00 2001 From: Liangliang He Date: Tue, 7 May 2019 17:38:01 +0800 Subject: [PATCH] Change pypi mirros to aliyun --- docker/mace-dev-lite/Dockerfile | 11 ++++++----- docker/mace-dev/Dockerfile | 12 ++++++------ docker/update_images.sh | 2 -- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/docker/mace-dev-lite/Dockerfile b/docker/mace-dev-lite/Dockerfile index 29e9d490..05f7cf74 100644 --- a/docker/mace-dev-lite/Dockerfile +++ b/docker/mace-dev-lite/Dockerfile @@ -113,9 +113,10 @@ ENV PATH ${PATH}:${ANDROID_NDK_HOME} # Install tools RUN apt-get install -y --no-install-recommends \ android-tools-adb -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com setuptools -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ - "numpy>=1.14.0" \ +RUN pip install --upgrade pip +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com setuptools +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ + numpy>=1.14.0 \ scipy \ jinja2 \ pyyaml \ @@ -125,7 +126,7 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com PTable # Install Tensorflow -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ tensorflow==1.8.0 # Install pytorch (refer to: https://pytorch.org/get-started/locally/) @@ -133,7 +134,7 @@ RUN pip install future==0.17.1 torchvision_nightly RUN pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html # Install ONNX -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ onnx==1.3.0 \ onnx-tf==1.2.0 diff --git a/docker/mace-dev/Dockerfile b/docker/mace-dev/Dockerfile index 65d4b6ab..4b818261 100644 --- a/docker/mace-dev/Dockerfile +++ b/docker/mace-dev/Dockerfile @@ -9,7 +9,7 @@ RUN apt-get install -y --no-install-recommends \ screen \ htop -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ sphinx \ sphinx-autobuild \ sphinx_rtd_theme \ @@ -19,8 +19,8 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com RUN pyenv global 3.6.3 # Install tools -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com setuptools -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com setuptools +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ "numpy>=1.14.0" \ scipy \ jinja2 \ @@ -31,7 +31,7 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com PTable # Install Tensorflow -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ tensorflow==1.8.0 # Install pytorch (refer to: https://pytorch.org/get-started/locally/) @@ -39,11 +39,11 @@ RUN pip install future==0.17.1 torchvision_nightly RUN pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html # Install ONNX -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ onnx==1.3.0 \ onnx-tf==1.2.0 -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ sphinx \ sphinx-autobuild \ sphinx_rtd_theme \ diff --git a/docker/update_images.sh b/docker/update_images.sh index 1af9564e..156256d9 100755 --- a/docker/update_images.sh +++ b/docker/update_images.sh @@ -24,5 +24,3 @@ else echo "Login docker registry server is needed!" exit 1 fi - - -- GitLab