Fix ubuntu_xenial build (use pip <21.0)

pip 21.0 requires Python >= 3.6. [0]
The latest official python3 package for xenial is 3.5.1-3 [1]

Until we stop building xenial images, ensure that an older pip version
is used.

0: https://pypi.org/project/pip/21.0/
1: https://packages.ubuntu.com/xenial/python3
Change-Id: I6d4ebdb1a0ed1045dda54d5a9328fab65fd9fcbe
This commit is contained in:
Phil Sphicas 2021-01-28 16:32:27 +00:00
parent 630e504e3e
commit 77c762463b
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ RUN set -ex \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& curl -Lo /usr/local/bin/cfssl https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 \
&& chmod 555 /usr/local/bin/cfssl \
&& python3 -m pip install -U pip \
&& python3 -m pip install -U 'pip<21.0' \
&& apt-get autoremove -yqq --purge \
&& apt-get clean \
&& useradd -u 1000 -g users -d /opt/promenade promenade \