Skip to content

Commit

Permalink
Image building
Browse files Browse the repository at this point in the history
  • Loading branch information
jistr committed Sep 12, 2017
1 parent 8226a61 commit 72da570
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
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"]
10 changes: 10 additions & 0 deletions build.sh
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
3 changes: 3 additions & 0 deletions files/usr/local/bin/container_synapse
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

0 comments on commit 72da570

Please sign in to comment.