From 5072af4b0cda16aa21d7ae7b5e5002ed233c0e75 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Thu, 29 Sep 2022 20:32:54 +0200 Subject: [PATCH] Feat: add ci and docker conifig --- .dockerignore | 2 ++ .woodpecker.yml | 12 ++++++++++++ Dockerfile | 5 +++-- src/requirements.txt | 3 ++- 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .dockerignore create mode 100644 .woodpecker.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..d75edea --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +venv +__pycache__ \ No newline at end of file diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..d360315 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,12 @@ +pipeline: + build-and-publish: + image: plugins/docker + settings: + registry: git.makerlab-murnau.de + repo: git.makerlab-murnau.de/MakerLab/matrix-bot + auto_tag: true + dockerfile: Dockerfile + username: + from_secret: gitea_username + password: + from_secret: gitea_password \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index a50f265..b4d08b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ FROM python:3-alpine -RUN apk --no-cache add build-base openldap-dev python2-dev python3-dev -RUN pip3 install -r requirements.txt +RUN apk --no-cache add build-base openldap-dev python3-dev COPY src/* ./ +RUN pip3 install -r requirements.txt + ENTRYPOINT [ "python3", "main.py" ] \ No newline at end of file diff --git a/src/requirements.txt b/src/requirements.txt index cc9cbd1..b7c7ff6 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -1,3 +1,4 @@ python-ldap==3.4.3 coloredlogs==15.0.1 -matrix-nio==0.19.0 \ No newline at end of file +matrix-nio==0.19.0 +matrix-synapse-admin==0.7.0 \ No newline at end of file