Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Dockerfile for tests: align comments with current behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Velten <mathieuv@matrix.org>
  • Loading branch information
Mathieu Velten committed Sep 22, 2022
1 parent 1a1abdd commit d0fff51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.d/13867.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Align comments with current behavior for the Docker build used for testing purpose.
8 changes: 4 additions & 4 deletions docker/complement/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

ARG SYNAPSE_VERSION=latest

# first of all, we create a base image with a postgres server and database,
# which we can copy into the target image. For repeated rebuilds, this is
# much faster than apt installing postgres each time.
# First of all, we copy postgres server from the official postgres image,
# since for repeated rebuilds, this is much faster than apt installing
# postgres each time.
#
# This trick only works because (a) the Synapse image happens to have all the
# shared libraries that postgres wants, (b) we use a postgres image based on
# the same debian version as Synapse's docker image (so the versions of the
# shared libraries match).

# now build the final image, based on the Synapse image.
# We also initialize the database itself at build and not runtime for speed reason.

FROM matrixdotorg/synapse-workers:$SYNAPSE_VERSION
# copy the postgres installation over from the image we built above
Expand Down

0 comments on commit d0fff51

Please sign in to comment.