mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 11:25:40 +00:00
tests: generate homeserver on build
This commit is contained in:
@@ -2,15 +2,16 @@
|
|||||||
# "from synapse._scripts.register_new_matrix_user import request_registration"
|
# "from synapse._scripts.register_new_matrix_user import request_registration"
|
||||||
FROM matrixdotorg/synapse
|
FROM matrixdotorg/synapse
|
||||||
|
|
||||||
# This variable defaults to /data which is a volume made to keep data.
|
# The config dir defaults to /data which is a volume made to keep data.
|
||||||
# Here, we want to trash those (and avoid the permission issues) by using something else
|
# Here, we want to trash those (and avoid the permission issues) by using something else
|
||||||
ENV SYNAPSE_CONFIG_DIR=/srv
|
ENV SYNAPSE_CONFIG_DIR=/srv SYNAPSE_SERVER_NAME=tests SYNAPSE_REPORT_STATS=no
|
||||||
|
|
||||||
# Generate keys for synapse
|
# Generate configuration and keys for synapse
|
||||||
WORKDIR $SYNAPSE_CONFIG_DIR
|
WORKDIR $SYNAPSE_CONFIG_DIR
|
||||||
ADD tests/homeserver.yaml .
|
RUN chown -R 991:991 . \
|
||||||
RUN python -m synapse.app.homeserver --config-path homeserver.yaml --generate-keys
|
&& /start.py generate \
|
||||||
RUN chown -R 991:991 .
|
&& sed -i 's=/data=/srv=;s=8008=80=;s=#sup=sup=;' homeserver.yaml \
|
||||||
|
&& python -m synapse.app.homeserver --config-path homeserver.yaml --generate-keys
|
||||||
|
|
||||||
RUN pip install --no-cache-dir markdown matrix-nio httpx coverage
|
RUN pip install --no-cache-dir markdown matrix-nio httpx coverage
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user