Skip to content

Commit

Permalink
FIXME: Install PFSPresenceRouter in synapse container
Browse files Browse the repository at this point in the history
Note: this builds on top of a pull request branch by https://github.com/anoa

When matrix-org/synapse#9491 is released, switch back to installing SYNAPSE from pypi.
  • Loading branch information
konradkonrad committed Mar 17, 2021
1 parent f17b6d6 commit 175d919
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build/synapse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@ RUN /opt/venv/bin/python -c \
from raiden.constants import Environment; \
print(DEFAULT_MATRIX_KNOWN_SERVERS[Environment.PRODUCTION])' > /known_servers.default.txt

FROM python:3.7
FROM python:3.8
LABEL maintainer="Raiden Network Team <contact@raiden.network>"

ARG SYNAPSE_VERSION

RUN \
python -m venv /synapse-venv && \
/synapse-venv/bin/pip install "matrix-synapse[postgres,redis]==${SYNAPSE_VERSION}"
/synapse-venv/bin/pip install "git+https://github.com/matrix-org/synapse.git@anoa/presence_hook#egg=matrix-synapse[postgres,redis]"

RUN /synapse-venv/bin/pip install psycopg2 coincurve pycryptodome "twisted>=20.3.0" click==7.1.2 docker-py

COPY eth_auth_provider.py /synapse-venv/lib/python3.7/site-packages/
COPY admin_user_auth_provider.py /synapse-venv/lib/python3.7/site-packages/
RUN /synapse-venv/bin/pip install git+https://github.com/raiden-network/raiden-synapse-modules.git@main

COPY eth_auth_provider.py /synapse-venv/lib/python3.8/site-packages/
COPY admin_user_auth_provider.py /synapse-venv/lib/python3.8/site-packages/
COPY synapse-entrypoint.sh /bin/
COPY render_config_template.py /bin/
COPY --from=RAIDEN /known_servers.default.txt /
Expand Down

0 comments on commit 175d919

Please sign in to comment.