Rework the build and include coturn and riot web
This commit is contained in:
parent
d56dbacde6
commit
d9214e47b5
11 changed files with 84 additions and 42 deletions
13
alpine/matrix/scripts/install-matrix.sh
Normal file
13
alpine/matrix/scripts/install-matrix.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
apk --no-cache add --no-scripts --no-commit-hooks synapse
|
||||
|
||||
find /usr -name "__pycache__" -exec rm -rf {} +
|
||||
find /usr -name "*.pyc" -exec rm {} +
|
||||
|
||||
apk del alpine-keys
|
||||
|
||||
rm -rf /etc/apk \
|
||||
/root/.cache \
|
||||
/root/.config \
|
||||
/var/cache/*
|
|
@ -13,21 +13,20 @@ apk --no-cache add --virtual .synapse-build \
|
|||
py3-pip \
|
||||
zlib-dev
|
||||
|
||||
pip3 install --upgrade pip setuptools
|
||||
pip3 install --upgrade --force pip setuptools
|
||||
pip3 install https://github.com/matrix-org/synapse/tarball/master
|
||||
|
||||
apk del .synapse-build
|
||||
|
||||
# Runtime packages.
|
||||
# Runtime packages
|
||||
apk --no-cache add \
|
||||
libjpeg-turbo \
|
||||
libmagic \
|
||||
libressl2.7-libssl \
|
||||
libressl \
|
||||
python3
|
||||
|
||||
find /usr -name "__pycache__" -exec rm -rf {} +
|
||||
find /usr -name "*.pyc" -exec rm {} +
|
||||
find /usr -name "*yarn*" -exec rm -rf {} +
|
||||
|
||||
apk del alpine-keys
|
||||
|
||||
|
|
10
alpine/matrix/scripts/install-riot.sh
Normal file
10
alpine/matrix/scripts/install-riot.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
apk --no-cache add --no-scripts --no-commit-hooks riot-web nginx
|
||||
|
||||
apk del alpine-keys
|
||||
|
||||
rm -rf /etc/apk \
|
||||
/root/.cache \
|
||||
/root/.config \
|
||||
/var/cache/*
|
15
alpine/matrix/scripts/install-turn.sh
Normal file
15
alpine/matrix/scripts/install-turn.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
apk add --no-cache --purge -uU \
|
||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \
|
||||
coturn sqlite-libs
|
||||
|
||||
find /usr -name "__pycache__" -exec rm -rf {} +
|
||||
find /usr -name "*.pyc" -exec rm {} +
|
||||
|
||||
apk del alpine-keys
|
||||
|
||||
rm -rf /etc/apk \
|
||||
/root/.cache \
|
||||
/root/.config \
|
||||
/var/cache/*
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
apk --no-cache add --no-scripts --no-commit-hooks --initramfs-diskless-boot synapse
|
||||
|
||||
find /usr -name "__pycache__" -exec rm -rf {} +
|
||||
find /usr -name "*.pyc" -exec rm {} +
|
||||
|
||||
apk del alpine-keys alpine-baselayout
|
||||
|
||||
rm -rf /etc/apk \
|
||||
/etc/ssl \
|
||||
/etc/terminfo \
|
||||
/etc/synapse \
|
||||
/root/.cache \
|
||||
/root/.config \
|
||||
/var/cache/*
|
Loading…
Add table
Add a link
Reference in a new issue