Skip to content
Snippets Groups Projects
  1. Jan 05, 2022
  2. Nov 01, 2021
  3. Oct 21, 2021
  4. Jul 08, 2021
  5. Jun 07, 2021
  6. May 05, 2021
  7. Apr 14, 2021
    • Andrew Morgan's avatar
      Add a dockerfile for running a set of Synapse worker processes (#9162) · 7e460ec2
      Andrew Morgan authored
      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`). 
      7e460ec2
    • Andrew Morgan's avatar
      Add note to docker docs explaining platform support (#9801) · f16c6cf5
      Andrew Morgan authored
      Context is in https://github.com/matrix-org/synapse/issues/9764#issuecomment-818615894.
      
      I struggled to find a more official link for this. The problem occurs when using WSL1 instead of WSL2, which some Windows platforms (at least Server 2019) still don't have. Docker have updated their documentation to paint a much happier picture now given WSL2's support.
      
      The last sentence here can probably be removed once WSL1 is no longer around... though that will likely not be for a very long time.
      f16c6cf5
  8. Mar 16, 2021
  9. Feb 22, 2021
  10. Oct 11, 2020
  11. Aug 24, 2020
  12. Jul 17, 2020
  13. Feb 18, 2020
  14. Nov 22, 2019
  15. Oct 28, 2019
  16. Sep 19, 2019
    • Michael Kaye's avatar
      Docker: support SYNAPSE_WORKER envvar (#6058) · 2def5ea0
      Michael Kaye authored
      * Allow passing SYNAPSE_WORKER envvar
      
      * changelog.d
      
      * Document SYNAPSE_WORKER.
      
      Attempting to imply that you don't need to change this default
      unless you're in worker mode.
      
      Also aware that there's a bigger problem of attempting to document
      a complete working configuration of workers using docker, as we
      currently only document to use `synctl` for worker mode, and synctl
      doesn't work that way in docker.
      2def5ea0
  17. Aug 28, 2019
  18. Jul 02, 2019
  19. Jun 27, 2019
  20. Jun 26, 2019
  21. Jun 13, 2019
  22. May 22, 2019
  23. Apr 25, 2019
  24. Apr 04, 2019
  25. Mar 29, 2019
  26. Mar 07, 2019
  27. Feb 05, 2019
  28. Sep 16, 2018
  29. Aug 03, 2018
  30. Aug 02, 2018
  31. Jul 17, 2018
  32. May 17, 2018
Loading