Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit dd7dd92

Browse files
committed
Docker: fix building on Ubuntu 16.04 based images by forcing older PIP
Seems Python PIP v21 broke building on older base images that dont have Python 3.6+.
1 parent a4c7ffa commit dd7dd92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:16.04
22

33
RUN apt-get -q update \
44
&& apt-get -qy install wget apt-transport-https vim git postgresql postgresql-plpython3-9.5 postgresql-plpython-9.5 libfontconfig python3-pip python-pip libssl-dev libpq-dev \
5-
&& pip install -U pip && pip3 install -U pip \
5+
&& pip install -U "pip < 21.0" && pip3 install -U "pip < 21.0" \
66
&& locale-gen "en_US.UTF-8" && apt autoremove -y \
77
&& pg_dropcluster 9.5 main ; pg_createcluster --locale en_US.UTF-8 9.5 main \
88
&& echo "include = 'pgwatch_postgresql.conf'" >> /etc/postgresql/9.5/main/postgresql.conf

docker/Dockerfile-nonroot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:16.04
22

33
RUN apt-get -q update \
44
&& apt-get -qy install wget apt-transport-https vim git postgresql postgresql-plpython3-9.5 postgresql-plpython-9.5 libfontconfig python3-pip libssl-dev libpq-dev \
5-
&& pip3 install -U pip
5+
&& pip3 install -U "pip < 21.0"
66

77
RUN pip3 install supervisor \
88
&& locale-gen "en_US.UTF-8" && apt autoremove -y \

0 commit comments

Comments
 (0)