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 &&\