From 1ef59469a060fe66b5f25ab4b2901637e4c1d4c2 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Mon, 10 Jan 2022 22:01:52 -0500 Subject: [PATCH] poc matrix --- testdata/Dockerfile | 15 +++++++++++++++ testdata/credentials.json | 1 + 2 files changed, 16 insertions(+) create mode 100644 testdata/Dockerfile create mode 100644 testdata/credentials.json diff --git a/testdata/Dockerfile b/testdata/Dockerfile new file mode 100644 index 0000000..ec49870 --- /dev/null +++ b/testdata/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.8.12-slim-bullseye + +WORKDIR /tmp/install +RUN apt -y update && apt -y install libolm-dev build-essential libolm3 +RUN apt -y install wget curl pkg-config +RUN apt -y install libdbus-glib-1-dev libgirepository1.0-dev +RUN pip3 install --user --upgrade matrix-nio[e2e] markdown +RUN wget -O - https://raw.githubusercontent.com/8go/matrix-commander/master/requirements.txt | grep -v dbus | grep -v notify > ./requirements.txt +RUN pip3 install -r ./requirements.txt +WORKDIR /bin +RUN wget -O - https://raw.githubusercontent.com/8go/matrix-commander/master/matrix-commander.py | grep -v import.*magic | grep -v import.*dbus | grep -v import.*notify > ./matrix-commander.py && chmod +x ./matrix-commander.py +WORKDIR /cwd + +#CMD ["/bin/matrix-commander.py"] +ENTRYPOINT ["/bin/matrix-commander.py"] diff --git a/testdata/credentials.json b/testdata/credentials.json new file mode 100644 index 0000000..8939446 --- /dev/null +++ b/testdata/credentials.json @@ -0,0 +1 @@ +{"homeserver": "https://matrix-client.matrix.org", "device_id": "TGNIOGKATZ", "user_id": "@breellocaldev:matrix.org", "room_id": "!vVwjXhWXMxZtOwexKa:matrix.org", "access_token": "syt_YnJlZWxsb2NhbGRldg_HTewKMMePdEcLvceAKEz_2fHsHa"} \ No newline at end of file