[matrix] redoit
This commit is contained in:
parent
b21ec4f504
commit
d56dbacde6
6 changed files with 75 additions and 189 deletions
37
alpine/matrix/scripts/install-pip.sh
Normal file
37
alpine/matrix/scripts/install-pip.sh
Normal file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
|
||||
apk --no-cache add --virtual .synapse-build \
|
||||
build-base \
|
||||
git \
|
||||
libevent-dev \
|
||||
libffi-dev \
|
||||
libjpeg-turbo-dev \
|
||||
libressl-dev \
|
||||
libxslt-dev \
|
||||
linux-headers \
|
||||
python3-dev \
|
||||
py3-pip \
|
||||
zlib-dev
|
||||
|
||||
pip3 install --upgrade pip setuptools
|
||||
pip3 install https://github.com/matrix-org/synapse/tarball/master
|
||||
|
||||
apk del .synapse-build
|
||||
|
||||
# Runtime packages.
|
||||
apk --no-cache add \
|
||||
libjpeg-turbo \
|
||||
libmagic \
|
||||
libressl2.7-libssl \
|
||||
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
|
||||
|
||||
rm -rf /etc/apk \
|
||||
/root/.cache \
|
||||
/root/.config \
|
||||
/var/cache/*
|
|
@ -1,46 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
apk --no-cache add --virtual .synapse-build \
|
||||
build-base \
|
||||
git \
|
||||
libevent-dev \
|
||||
libffi-dev \
|
||||
libjpeg-turbo-dev \
|
||||
libressl-dev \
|
||||
libxslt-dev \
|
||||
linux-headers \
|
||||
python3-dev \
|
||||
yarn \
|
||||
zlib-dev
|
||||
|
||||
pip3 install --upgrade pip setuptools
|
||||
pip3 install https://github.com/matrix-org/synapse/tarball/master
|
||||
|
||||
IRC_DIR=/usr/lib/matrix-appservice-irc/
|
||||
mkdir ${IRC_DIR}
|
||||
cd ${IRC_DIR}
|
||||
yarn add matrix-appservice-irc
|
||||
ln -s ${IRC_DIR}/node_modules/matrix-appservice-irc/bin/matrix-appservice-irc /usr/local/bin/matrix-appservice-irc
|
||||
|
||||
apk del .synapse-build
|
||||
|
||||
# Runtime packages.
|
||||
apk --no-cache add \
|
||||
libjpeg-turbo \
|
||||
libmagic \
|
||||
libressl2.7-libssl \
|
||||
nodejs \
|
||||
python3
|
||||
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 {} +
|
||||
find /usr -name "*yarn*" -exec rm -rf {} +
|
||||
find / -name "*node-gyp*" -exec rm -rf {} +
|
||||
|
||||
apk del alpine-keys
|
||||
apk del alpine-keys alpine-baselayout
|
||||
|
||||
rm -rf /etc/apk \
|
||||
/etc/ssl \
|
||||
/etc/terminfo \
|
||||
/etc/synapse \
|
||||
/root/.cache \
|
||||
/root/.config \
|
||||
/root/.npm \
|
||||
/var/cache/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue