Skip to content

Commit bbe7a3f

Browse files
authored
Merge pull request #73 from DataDog/ban/downgrade-urllib3
Downgrade urllib3 to 1.x to work around connectivity issues
2 parents af63005 + 7178159 commit bbe7a3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ COPY --from=default-jdk /usr/lib/jvm /usr/lib/jvm
6969

7070
COPY autoforward.py /usr/local/bin/autoforward
7171

72+
# Force downgrade of urllib3 to work around https://github.com/docker/docker-py/issues/3113
73+
# Install urllib3 early since it is also used by awscli
7274
RUN set -eux; \
7375
sudo apt-get update; \
7476
sudo apt-get install --no-install-recommends apt-transport-https socat; \
@@ -78,7 +80,7 @@ RUN set -eux; \
7880
sudo apt install python3-pip; \
7981
sudo apt-get -y clean; \
8082
sudo rm -rf /var/lib/apt/lists/*; \
81-
pip3 install awscli; \
83+
pip3 install "urllib3>=1.25.4,<2" awscli; \
8284
pip3 install requests requests-unixsocket; \
8385
pip3 cache purge; \
8486
sudo chmod +x /usr/local/bin/autoforward; \

0 commit comments

Comments
 (0)