Skip to content

Commit e957176

Browse files
FIX: include postgres and redis on test images (#993)
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.
1 parent f2a4bca commit e957176

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

image/discourse_test/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ ENV LANG en_US.UTF-8
1010
RUN sudo -E -u discourse -H git config --global user.email "you@example.com" &&\
1111
sudo -E -u discourse -H git config --global user.name "Your Name"
1212

13+
# Include postgres and redis on test images
14+
RUN --mount=type=tmpfs,target=/var/log \
15+
apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
16+
postgresql-${PG_MAJOR} postgresql-contrib-${PG_MAJOR} postgresql-${PG_MAJOR}-pgvector
17+
RUN /tmp/install-redis
18+
1319
RUN chown -R discourse . &&\
1420
chown -R discourse /var/run/postgresql &&\
1521
bundle config unset deployment &&\

0 commit comments

Comments
 (0)