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:
parent
e40f99f6d5
commit
a9ff726e42
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue