- Apr 12, 2022
-
-
David Robertson authored
The requirements file generated by `poetry export` isn't correctly processed by `pip install -r requirements.txt`. It contains twisted and treq, both pinned to 22.2.0. When `pip` installs treq, it notices that `Twisted[tls]` is required. It then tries to acquire the latest twisted release, only to fail (because this hash isn't listed in the requirements file).From e.g. https://github.com/matrix-org/synapse/runs/5977154990?check_suite_focus=true > ``` > #15 9.204 Collecting Twisted[tls]>=18.7.0 > #15 9.205 ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not: > #15 9.205 Twisted[tls]>=18.7.0 from https://files.pythonhosted.org/packages/db/99/38622ff95bb740bcc991f548eb46295bba62fcb6e907db1987c4d92edd09/Twisted-22.4.0-py3-none-any.whl#sha256=f9f7a91f94932477a9fc3b169d57f54f96c6e74a23d78d9ce54039a7f48928a2 (from treq==22.2.0->-r /synapse/requirements.txt (line 724)) > #15 ERROR: executor failed running [/bin/sh -c pip install --prefix="/install" --no-warn-script-location -r /synapse/requirements.txt]: exit code: 1 > ``` The underlying pip issue is https://github.com/pypa/pip/issues/9644. A comment notes that one can avoid this behaviour with by `pip install`ing with the `--no-deps` flag. Let us do so. (At first glance, the problem looks like https://github.com/python-poetry/poetry/issues/5311, but that was a bug in `poetry install`; this is `poetry export`, whose behaviour is fine AFAICS).
-
- Apr 07, 2022
-
-
David Robertson authored
-
- Mar 04, 2022
-
-
David Robertson authored
-
- Mar 02, 2022
-
-
David Robertson authored
* Two scripts are basically entry_points already * Move and rename scripts/* to synapse/_scripts/*.py * Delete sync_room_to_group.pl * Expose entry points in setup.py * Update linter script and config * Fixup scripts & docs mentioning scripts that moved Co-authored-by:
Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
-
- Mar 01, 2022
-
-
Andrew Morgan authored
-
- Feb 15, 2022
-
-
Richard van der Hoff authored
The driver for this is to stop Complement complaining about it, but as far as I can tell it was pointless and needed to go away anyway. I'm a bit unclear about what exactly VOLUME does, but I think what it means is that, if you don't override it with an explicit -v argument, then docker run will create a temporary volume, and copy things into it. The temporary volume is then deleted when the container finishes. That only sounds useful if your image has something to copy into it (otherwise you may as well just use the default root filesystem), and our image notably doesn't copy anything into /data. So... this wasn't doing anything, except annoying Complement?
-
- Jan 12, 2022
-
-
Richard van der Hoff authored
Having spent much of the last week attempting to run complement tests from somewhere with damp string instead of internet... something had to be done.
-
- May 05, 2021
-
-
Christopher May-Townsend authored
* Add healthcheck startup delay by 5secs and reduced interval check to 15s to reduce waiting time for docker aware edge routers bringing an instance online
-
- Apr 08, 2021
-
-
Johannes Wienke authored
They don't make any sense on the intermediate builder image. The final images needs them to be of use for anyone. Signed-off-by:
Johannes Wienke <languitar@semipol.de>
-
- Mar 26, 2021
-
-
Eric Eastwood authored
Make pip install faster in Docker build for [Complement](https://github.com/matrix-org/complement) testing. If files have changed in a `COPY` command, Docker will invalidate all of the layers below. So I changed the order of operations to install all dependencies before we `COPY synapse /synapse/synapse/`. This allows Docker to use our cached layer of dependencies even when we change the source of Synapse and speed up builds dramatically! `53.5s` -> `3.7s` builds
🤘 As an alternative, I did try using BuildKit caches but this still took 30 seconds overall on that step. 15 seconds to gather the dependencies from the cache and another 15 seconds to `Installing collected packages`. Fix https://github.com/matrix-org/synapse/issues/9364 -
Erik Johnston authored
-
- Mar 22, 2021
-
- Mar 16, 2021
-
-
Mathieu Velten authored
Co-authored-by:
Will Hunt <willh@matrix.org> Co-authored-by:
Erik Johnston <erik@matrix.org>
-
- Feb 15, 2021
-
-
Dan Callahan authored
This is needed to build the cryptography library, since it does not provide wheels for ARMv7. Fixes #9403 Signed-off-by:
Dan Callahan <danc@element.io>
-
- Dec 04, 2020
-
-
Jordan Bancino authored
This removes the version pin of the `prometheus_client` dependency, in direct response to #8831. If merged, this will close #8831 As far as I can tell, no other changes are needed, but as I'm no synapse expert, I'm relying heavily on CI and maintainer reviews for this. My very primitive test of synapse with prometheus_client v0.9.0 on my home server didn't bring up any issues, so we'll see what happens. Signed-off-by: Jordan Bancino
-
- Nov 17, 2020
-
-
Andrew Morgan authored
Short-term fix for https://github.com/matrix-org/synapse/issues/8766.
-
- Nov 02, 2020
-
-
Dan Callahan authored
This bumps us closer to current Python without going all the way to 3.9. Fixes #8674 Signed-off-by:
Dan Callahan <danc@element.io>
-
- Aug 26, 2020
-
-
Christopher May-Townsend authored
Signed-off-by:
Christopher May-Townsend <chris@maytownsend.co.uk>
-
- Aug 24, 2020
-
-
Christopher May-Townsend authored
-
- Jul 17, 2020
-
-
Christopher May-Townsend authored
As mentioned in #7397, switching to a debian base should help with multi-arch work to save time on compiling. This is unashamedly based on #6373, but without the extra functionality. Switch python version back to generic 3.7 to always pull the latest. Essentially, keeping this as small as possible. The image is bigger though unfortunately.
-
- Jul 06, 2020
-
-
Juho Vanhanen authored
* Add libwebp dependency to Dockerfile Signed-off-by:
Juho Vanhanen <juho@vanhanen.io>
-
- May 03, 2020
-
-
Cédric Laubacher authored
-
- Feb 12, 2020
-
-
Richard van der Hoff authored
-
- Jul 12, 2019
-
-
Slavi Pantaleev authored
Alpine Linux 3.8 is still supported, but it seems like it's quite outdated now. While Python should be the same on both, all other libraries, etc., are much newer in Alpine 3.9 and 3.10. Signed-off-by:
Slavi Pantaleev <slavi@devture.com>
-
- Jul 02, 2019
-
-
Amir Zarrinkafsh authored
Signed-off-by:
Amir Zarrinkafsh <nightah@me.com>
-
- Jun 25, 2019
-
-
Richard van der Hoff authored
Python 3.7 is apparently faster than 3.6, and should be mature enough.
-
- Jun 18, 2019
-
-
Richard van der Hoff authored
Fixes #5467.
-
- Feb 05, 2019
-
-
Richard van der Hoff authored
Also: * Fix wrapping in docker readme * Clean up some docs on the docker image * a workaround for #4554
-
Richard van der Hoff authored
There are two reasons this is a good thing: * first, it means that you don't end up with stuff kicking around your working copy ending up in the build image by mistake (which can upset the pip install process) * second: it means that the docker image cache is more effective, and we can reuse docker images when iterating on the docker stuff.
-
- Jan 09, 2019
-
-
Richard van der Hoff authored
-
- Oct 01, 2018
-
-
Richard van der Hoff authored
Rewrite the dockerfile as a multistage build: this means we can get rid of a whole load of cruft which we don't need.
-
- Sep 25, 2018
-
-
Jan Christian Grünhage authored
-
- Sep 20, 2018
-
-
Jan Christian Grünhage authored
-
- Sep 10, 2018
-
-
Jan Christian Grünhage authored
-
Mathijs van Gorcum authored
-
Mathijs van Gorcum authored
-
- Aug 09, 2018
-
-
Jan Christian Grünhage authored
-
- Aug 02, 2018
-
-
Michael Kaye authored
This addresses #3224
-
- Jul 19, 2018
-
-
Benedikt Heine authored
This matches docker best practices. Signed-off-by:
Benedikt Heine <bebe@bebehei.de>
-
- May 18, 2018
-
-
Paul Tötterman authored
Signed-off-by:
Paul Tötterman <paul.totterman@iki.fi>
-