From c79d24b4c8c8f9d5946fdf001c44c7ce69bb16d6 Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Mon, 16 Sep 2024 14:52:19 +0100 Subject: [PATCH] Add a temporary hack to upgrade gevent and greenlet in Docker gevent is used by both uWSGI and pywb. pywb pins it to v22.10.2. However there have been fixes for the version of Python we are using in v24.2.1. In order to test whether the older version of gevent is responsible for hangs we are seeing in production, update gevent in the Docker container. --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index dcbcbfdd..d5e527cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,12 @@ RUN apk add --no-cache --virtual build-deps \ && pip install --no-cache-dir -r requirements.txt \ && apk del build-deps +# Temporarily install the latest gevent and greenlet releases. This version is +# incompatible with pywb's stated requirements, but it nevertheless runs. +# +# The newer gevent release includes bugfixes for Python >= 3.11.8. +RUN pip install --no-cache-dir gevent==24.2.1 greenlet==3.1.0 + COPY ./conf/nginx/nginx.conf /etc/nginx/nginx.conf COPY ./conf/nginx/viahtml /etc/nginx/viahtml COPY . .