Skip to content

Commit

Permalink
Add a temporary hack to upgrade gevent and greenlet in Docker
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
robertknight committed Sep 16, 2024
1 parent b7c3f3a commit c79d24b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand Down

0 comments on commit c79d24b

Please sign in to comment.