mirror of https://github.com/watcha-fr/synapse
Tag:
Branch:
Tree:
15c2a6a106
1.103.0-whithout-watcha
code_spécifique_watcha
dependabot/cargo/log-0.4.22
dependabot/cargo/pyo3-0.20.3
dependabot/cargo/regex-1.10.5
dependabot/cargo/serde-1.0.203
dependabot/cargo/serde_json-1.0.119
dependabot/github_actions/actions/download-artifact-4
dependabot/github_actions/actions/upload-artifact-4
dependabot/github_actions/dawidd6/action-download-artifact-3.1.4
dependabot/github_actions/dtolnay/rust-toolchain-1.90.0
dependabot/github_actions/peaceiris/actions-mdbook-2.0.0
dependabot/pip/black-24.4.2
dependabot/pip/pyopenssl-24.1.0
dependabot/pip/ruff-0.5.0
dependabot/pip/twine-5.1.1
dependabot/pip/types-pyopenssl-24.1.0.20240425
feature/create-public-share-link-for-partners
watcha-develop
watcha-lyon-poc
watcha-postgres
watcha-synapse-1.63
v1.103.0
watcha-20220615T155606-8744bec
watcha-20220725T103522-5872653
watcha-20221004T210552-cacf559
watcha-20230516T105835-c98c0fb
watcha-20240528T102955-d92e2cc
watcha-20240614T172257-24baa2e
watcha-20240614T175901-2a6e961
watcha-20240620T111818-dd05b05
watcha-20241016T151951-01924e1
watcha-20241018T114602-58c3d94
watcha-20241018T120039-526886c
watcha-20241018T142133-44f41d8
watcha-20241018T155526-6c49551
watcha-20241021T110133-142020a
watcha-20241021T112738-efc6ace
watcha-20241107T150249-3a569c8
watcha-build-20211216T025348-lyon-poc-95ba3a8
${ noResults }
1 Commits (15c2a6a1067f57707688cc59f2efa7ff0000dcd2)
Author | SHA1 | Message | Date |
---|---|---|---|
Andrew Morgan |
7e460ec2a5
|
Add a dockerfile for running a set of Synapse worker processes (#9162)
This PR adds a Dockerfile and some supporting files to the `docker/` directory. The Dockerfile's intention is to spin up a container with: * A Synapse main process. * Any desired worker processes, defined by a `SYNAPSE_WORKERS` environment variable supplied at runtime. * A redis for worker communication. * A nginx for routing traffic. * A supervisord to start all worker processes and monitor them if any go down. Note that **this is not currently intended to be used in production**. If you'd like to use Synapse workers with Docker, instead make use of the official image, with one worker per container. The purpose of this dockerfile is currently to allow testing Synapse in worker mode with the [Complement](https://github.com/matrix-org/complement/) test suite. `configure_workers_and_start.py` is where most of the magic happens in this PR. It reads from environment variables (documented in the file) and creates all necessary config files for the processes. It is the entrypoint of the Dockerfile, and thus is run any time the docker container is spun up, recreating all config files in case you want to use a different set of workers. One can specify which workers they'd like to use by setting the `SYNAPSE_WORKERS` environment variable (as a comma-separated list of arbitrary worker names) or by setting it to `*` for all worker processes. We will be using the latter in CI. Huge thanks to @MatMaul for helping get this all working 🎉 This PR is paired with its equivalent on the Complement side: https://github.com/matrix-org/complement/pull/62. Note, for the purpose of testing this PR before it's merged: You'll need to (re)build the base Synapse docker image for everything to work (`matrixdotorg/synapse:latest`). Then build the worker-based docker image on top (`matrixdotorg/synapse:workers`). |
4 years ago |