From 556b0c1151437af335b73c8f958d02525ca8f60f 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 | 7 +++---- 2 files changed, 9 insertions(+), 5 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..8f20eda 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,15 @@ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/eimis-ans/eimis-synapse-image/publish.yml?label=publish&logo=github&branch=main) ![GitHub License](https://img.shields.io/github/license/eimis-ans/eimis-synapse-image) - This repo is meant to build and publish a customized version of [Synapse](https://github.com/element-hq/synapse/). A instant messaging server implementing [Matrix](https://matrix.org/) protocol. 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