From c5c3bf58d3dd002d59de0c29000c085578dabbc2 Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Thu, 23 Apr 2020 16:07:26 -0500 Subject: [PATCH] Don't install python3-(urllib3|requests) to patroni image urllib3 version installed from deb is 1.22 Since patroni dependencies: patroni -> urllib3>=1.19.1,!=1.21 -> kubernetes -> urllib3>=1.24.2 Due to pip issue https://github.com/pypa/pip/issues/8121 kubernetes urllib3 requirements will be disregarded, since 1.22 satisfies patroni direct requirement. Change-Id: Ib1ec8197c3c0927cd896d9b569ef5e30d9224d69 --- patroni/Dockerfile.ubuntu_xenial | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patroni/Dockerfile.ubuntu_xenial b/patroni/Dockerfile.ubuntu_xenial index c3e6914d..df37960b 100644 --- a/patroni/Dockerfile.ubuntu_xenial +++ b/patroni/Dockerfile.ubuntu_xenial @@ -8,7 +8,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \ && apt-get update -y \ && apt-get upgrade -y \ && apt-cache depends patroni | sed -n -e 's/.* Depends: \(python3-.\+\)$/\1/p' \ - | grep -Ev '^python3-(sphinx|etcd|consul|kazoo|kubernetes)' \ + | grep -Ev '^python3-(sphinx|etcd|consul|kazoo|kubernetes|urllib3|requests)' \ | xargs apt-get install -y vim-tiny curl jq locales git python3-pip python3-wheel \ ## Make sure we have a en_US.UTF-8 locale available && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \