From e547c768d4ff872a360604ecb957b0cd05ef70dd Mon Sep 17 00:00:00 2001 From: Adrien Touzouli Date: Mon, 18 Mar 2024 16:32:40 +0100 Subject: [PATCH] feat: install s3_storage_provider module --- Dockerfile | 7 ++++++- README.md | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a45a665..3666a74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,8 @@ FROM matrixdotorg/synapse:v1.102.0 -COPY ./custom-synapse/html-templates/*.html /usr/local/lib/python3.11/site-packages/synapse/res/templates/ \ No newline at end of file +ARG S3_MEDIA_MODULE_VERSION=v1.4.0 + +COPY ./html-templates/*.html /usr/local/lib/python3.11/site-packages/synapse/res/templates/ + +ADD https://raw.githubusercontent.com/matrix-org/synapse-s3-storage-provider/${S3_MEDIA_MODULE_VERSION}/s3_storage_provider.py /usr/local/lib/python3.11/site-packages/s3_storage_provider.py +RUN pip install --no-cache-dir boto3==1.34.64 diff --git a/README.md b/README.md index d18eebc..b69a782 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,10 @@ This repo is meant to build and publish a customized version of [Synapse](https: The docker image is published to [Docker Hub](https://hub.docker.com/r/eimisans/eimis-synapse). The version will be : `v[SYNAPSE_VERSION]-[EIMIS_INCREMENTAL_NUMBER]` -Included modules projects are present in sub directories: +Files and modules included in the image -- -- +- [Synaspe S3 storage provider](https://github.com/matrix-org/synapse-s3-storage-provider) +- Html templates ## Try it out locally