-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM fedora:26 | ||
MAINTAINER Jiri Stransky <[email protected]> | ||
|
||
RUN yum -y update; yum clean all | ||
|
||
COPY build.sh /root/build.sh | ||
RUN /root/build.sh | ||
|
||
COPY files / | ||
|
||
EXPOSE 8448 | ||
|
||
USER synapse | ||
|
||
CMD ["/usr/local/bin/container_synapse"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
yum -y install matrix-synapse | ||
yum clean all | ||
|
||
groupmod -g 408448 synapse | ||
usermod -u 408448 synapse | ||
chown -R synapse: /var/lib/synapse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
python2 -m synapse.app.homeserver -c /var/lib/synapse/config/server.yml |