From 5d2eec67af6d6a854d44c6a68fb8e383192d1148 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Sat, 21 Aug 2021 10:31:31 +1000 Subject: [PATCH] Update Dockerfiles to install Python deps from PyPI as per deploy docs. --- Dockerfile-debian-11-sqlite | 15 +++++++-------- Dockerfile-fedora-33-sqlite | 18 ++++++------------ 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/Dockerfile-debian-11-sqlite b/Dockerfile-debian-11-sqlite index 9bece8af..a232d0c3 100644 --- a/Dockerfile-debian-11-sqlite +++ b/Dockerfile-debian-11-sqlite @@ -66,16 +66,15 @@ virtualenv # Install make and runtime dependencies. # -# Excluding python3-celery here due to conflict with dist-packges for a -# compatible version of billiard. -# TODO: Align with deploying docs. +# We explicitly don't use use Debian packages for everything here, so as to +# match closely with the deployment docs which install most depedencies +# from PyPI. RUN apt-get install -y \ -python3-alembic \ -python3-feedgenerator \ -python3-jsonschema \ python3-lxml \ -python3-migrate \ -python3-py \ +python3-pil + +# Install test and docs dependencies. +RUN apt-get install -y \ python3-pytest \ python3-pytest-xdist \ python3-snowballstemmer \ diff --git a/Dockerfile-fedora-33-sqlite b/Dockerfile-fedora-33-sqlite index d3f1a519..2ae4fb69 100644 --- a/Dockerfile-fedora-33-sqlite +++ b/Dockerfile-fedora-33-sqlite @@ -22,26 +22,20 @@ virtualenv RUN dnf -y install \ findutils \ -python3-alembic \ -python3-celery \ -python3-feedgenerator \ -python3-jsonschema \ +# To build waitress on Fedora 33 (not required for 31) +libffi-devel \ python3-lxml \ -python3-migrate \ -# Fedora only python3-pillow \ -python3-py \ +which + +RUN dnf -y install \ python3-pytest \ python3-pytest-xdist \ python3-snowballstemmer \ python3-sphinx \ # Not in Fedora # python3-sphinxcontrib.websupport \ -python3-webtest \ -# Fedora only -which \ -# To build waitress on Fedora 33 (not required for 31) -libffi-devel +python3-webtest RUN dnf -y install \ gstreamer1-plugins-base \