Compare commits
3 Commits
v0.2.0-rc2
...
v0.2.0-rc3
| Author | SHA1 | Date | |
|---|---|---|---|
| 42d54dac5b | |||
| 767a51f994 | |||
| 313b5e5d07 |
+8
-8
@@ -7,12 +7,14 @@ COPY . /opt/mautrixtelegram
|
|||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
py3-virtualenv \
|
py3-virtualenv \
|
||||||
|
py3-pillow \
|
||||||
|
py3-aiohttp \
|
||||||
|
py3-lxml \
|
||||||
|
py3-magic \
|
||||||
|
py3-numpy \
|
||||||
|
py3-asn1crypto \
|
||||||
|
py3-sqlalchemy \
|
||||||
build-base \
|
build-base \
|
||||||
zlib-dev \
|
|
||||||
jpeg-dev \
|
|
||||||
libxslt-dev \
|
|
||||||
libxml2-dev \
|
|
||||||
libmagic \
|
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@@ -21,9 +23,7 @@ RUN apk add --no-cache \
|
|||||||
&& cd /opt/mautrixtelegram \
|
&& cd /opt/mautrixtelegram \
|
||||||
&& cp -r docker/root/* / \
|
&& cp -r docker/root/* / \
|
||||||
&& rm docker -rf \
|
&& rm docker -rf \
|
||||||
&& virtualenv -p /usr/bin/python3 .venv \
|
&& pip3 install -r requirements.txt -r optional-requirements.txt
|
||||||
&& source .venv/bin/activate \
|
|
||||||
&& pip install -r requirements.txt -r optional-requirements.txt
|
|
||||||
|
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ function fixperms {
|
|||||||
|
|
||||||
# Go into env
|
# Go into env
|
||||||
cd /opt/mautrixtelegram
|
cd /opt/mautrixtelegram
|
||||||
source .venv/bin/activate
|
export FFMPEG_BINARY=/usr/bin/ffmpeg
|
||||||
|
|
||||||
# Replace database path in alembic.ini
|
# Replace database path in alembic.ini
|
||||||
sed -i "s#sqlite:///mautrix-telegram.db#sqlite:////data/mautrix-telegram.db#" alembic.ini
|
sed -i "s#sqlite:///mautrix-telegram.db#sqlite:////data/mautrix-telegram.db#" alembic.ini
|
||||||
@@ -28,7 +28,7 @@ if [[ ! -f /data/config.yaml ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f /data/registration.yaml ]]; then
|
if [[ ! -f /data/registration.yaml ]]; then
|
||||||
python -m mautrix_telegram -g -c /data/config.yaml -r /data/registration.yaml
|
python3 -m mautrix_telegram -g -c /data/config.yaml -r /data/registration.yaml
|
||||||
echo "Didn't find a registration file."
|
echo "Didn't find a registration file."
|
||||||
echo "Generated ode for you."
|
echo "Generated ode for you."
|
||||||
echo "Copy that over to synapses app service directory."
|
echo "Copy that over to synapses app service directory."
|
||||||
@@ -36,7 +36,5 @@ if [[ ! -f /data/registration.yaml ]]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export FFMPEG_BINARY=/usr/bin/ffmpeg
|
|
||||||
|
|
||||||
fixperms
|
fixperms
|
||||||
exec su-exec ${UID}:${GID} python -m mautrix_telegram -c /data/config.yaml
|
exec su-exec ${UID}:${GID} python3 -m mautrix_telegram -c /data/config.yaml
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
__version__ = "0.2.0rc2"
|
__version__ = "0.2.0rc3"
|
||||||
__author__ = "Tulir Asokan <tulir@maunium.net>"
|
__author__ = "Tulir Asokan <tulir@maunium.net>"
|
||||||
|
|||||||
Reference in New Issue
Block a user