From a3a32555ba70a4e598c7b7b30427bd2d87bd89c1 Mon Sep 17 00:00:00 2001 From: Gautham Banasandra Date: Tue, 26 Jan 2021 13:17:30 +0530 Subject: [PATCH] HADOOP-17496. Install a supported version of pip * pip version 21 ended support for python 2.7. Thus we need to install a version of pip that supports python 2.7. --- dev-support/docker/Dockerfile | 4 ++-- dev-support/docker/Dockerfile_aarch64 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile index 60873f04652cd..4d9413b72f63b 100644 --- a/dev-support/docker/Dockerfile +++ b/dev-support/docker/Dockerfile @@ -113,10 +113,10 @@ RUN mkdir -p /opt/boost-library \ #### # hadolint ignore=DL3003 RUN mkdir -p /opt/pip \ - && curl -L https://bootstrap.pypa.io/get-pip.py > get-pip.py \ + && curl -L https://bootstrap.pypa.io/2.7/get-pip.py > get-pip.py \ && mv get-pip.py /opt/pip \ && cd /opt/pip \ - && python2.7 get-pip.py \ + && python2.7 get-pip.py "pip < 21.0" \ && cd /root \ && rm -rf /opt/pip diff --git a/dev-support/docker/Dockerfile_aarch64 b/dev-support/docker/Dockerfile_aarch64 index 25e9526dee051..cfcfdcecccba5 100644 --- a/dev-support/docker/Dockerfile_aarch64 +++ b/dev-support/docker/Dockerfile_aarch64 @@ -117,10 +117,10 @@ RUN mkdir -p /opt/boost-library \ #### # hadolint ignore=DL3003 RUN mkdir -p /opt/pip \ - && curl -L https://bootstrap.pypa.io/get-pip.py > get-pip.py \ + && curl -L https://bootstrap.pypa.io/2.7/get-pip.py > get-pip.py \ && mv get-pip.py /opt/pip \ && cd /opt/pip \ - && python2.7 get-pip.py \ + && python2.7 get-pip.py "pip < 21.0" \ && cd /root \ && rm -rf /opt/pip