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

Commit

Permalink
Complement: use SQLite by default (#13075)
Browse files Browse the repository at this point in the history
If no database is configured explicitly, use sqlite.

This means that you don't have to pass any variables into the image.
  • Loading branch information
richvdh authored Jun 16, 2022
1 parent 0ef1307 commit 1e0044e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/13075.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Merge the Complement testing Docker images into a single, multi-purpose image.
2 changes: 1 addition & 1 deletion docker/complement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ so **please don't use this image for a production server**.
This multi-purpose image is built on top of `Dockerfile-workers` in the parent directory
and can be switched using environment variables between the following configurations:

- Monolithic Synapse with SQLite (`SYNAPSE_COMPLEMENT_DATABASE=sqlite`)
- Monolithic Synapse with SQLite (default, or `SYNAPSE_COMPLEMENT_DATABASE=sqlite`)
- Monolithic Synapse with Postgres (`SYNAPSE_COMPLEMENT_DATABASE=postgres`)
- Workerised Synapse with Postgres (`SYNAPSE_COMPLEMENT_DATABASE=postgres` and `SYNAPSE_COMPLEMENT_USE_WORKERS=true`)

Expand Down
2 changes: 1 addition & 1 deletion docker/complement/conf/start_for_complement.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ case "$SYNAPSE_COMPLEMENT_DATABASE" in
export START_POSTGRES=true
;;

sqlite)
sqlite|"")
# Configure supervisord not to start Postgres, as we don't need it
export START_POSTGRES=false
;;
Expand Down

0 comments on commit 1e0044e

Please sign in to comment.