HADOOP-17496. Install a supported version of pip (#2653)

pip version 21 ended support for python 2.7. Thus we need to
install a version of pip that supports python 2.7.

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
Gautham B A 2021-01-26 19:36:38 +05:30 committed by GitHub
parent e40f99f6d5
commit a9ff726e42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -113,10 +113,10 @@ RUN mkdir -p /opt/boost-library \
#### ####
# hadolint ignore=DL3003 # hadolint ignore=DL3003
RUN mkdir -p /opt/pip \ 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 \ && mv get-pip.py /opt/pip \
&& cd /opt/pip \ && cd /opt/pip \
&& python2.7 get-pip.py \ && python2.7 get-pip.py "pip < 21.0" \
&& cd /root \ && cd /root \
&& rm -rf /opt/pip && rm -rf /opt/pip

View File

@ -117,10 +117,10 @@ RUN mkdir -p /opt/boost-library \
#### ####
# hadolint ignore=DL3003 # hadolint ignore=DL3003
RUN mkdir -p /opt/pip \ 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 \ && mv get-pip.py /opt/pip \
&& cd /opt/pip \ && cd /opt/pip \
&& python2.7 get-pip.py \ && python2.7 get-pip.py "pip < 21.0" \
&& cd /root \ && cd /root \
&& rm -rf /opt/pip && rm -rf /opt/pip