From 74d2a1d05f6bac34645b901e6661c60f96b0ec9c Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Wed, 13 Aug 2025 13:38:10 -0700 Subject: [PATCH] FIX: include postgres and redis on test images Postgres and redis are no longer included by default on the slim image. Include an install step on the discourse_test images to install them as well. --- image/discourse_test/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/image/discourse_test/Dockerfile b/image/discourse_test/Dockerfile index 1ab39abbc..c5c4de797 100644 --- a/image/discourse_test/Dockerfile +++ b/image/discourse_test/Dockerfile @@ -10,6 +10,12 @@ ENV LANG en_US.UTF-8 RUN sudo -E -u discourse -H git config --global user.email "you@example.com" &&\ sudo -E -u discourse -H git config --global user.name "Your Name" +# Include postgres and redis on test images +RUN --mount=type=tmpfs,target=/var/log \ + apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install \ + postgresql-${PG_MAJOR} postgresql-contrib-${PG_MAJOR} postgresql-${PG_MAJOR}-pgvector +RUN /tmp/install-redis + RUN chown -R discourse . &&\ chown -R discourse /var/run/postgresql &&\ bundle config unset deployment &&\