bugfix: pip 10 can't work 45/56445/1
authorzhihui wu <wu.zhihui1@zte.com.cn>
Tue, 24 Apr 2018 07:07:45 +0000 (15:07 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Wed, 25 Apr 2018 00:41:39 +0000 (00:41 +0000)
Docker image build failed on upgrading pip to 10.0.0 .
Solution: https://github.com/pypa/pip/issues/5240#issuecomment-383115342

Change-Id: I330dedf9dbc32d8bdac5b8cb87b5123187007e2e
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
(cherry picked from commit d415712aeaf87dd6d7383a7649e15a9350aba07b)

docker/Dockerfile
docker/Dockerfile.local

index 5d93d59..8d9313d 100644 (file)
@@ -41,7 +41,7 @@ RUN apt-get update && apt-get install -y \
     && rm -rf /var/lib/apt/lists/*
 
 RUN locale-gen en_US en_US.UTF-8 \
-    && pip install -U pip \
+    && python -m pip install -U pip
     && pip install -U setuptools
 
 #Cloning Repos
index 86e86dc..246895b 100644 (file)
@@ -41,7 +41,7 @@ RUN apt-get update && apt-get install -y \
     && rm -rf /var/lib/apt/lists/*
 
 RUN locale-gen en_US en_US.UTF-8 \
-    && pip install -U pip \
+    && python -m pip install -U pip \
     && pip install -U setuptools
 
 COPY . $REPOS_DIR/qtip