Deploy meetbot plugins when building in Ansible

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2023-10-09 14:05:12 +02:00
parent 60243e6cb4
commit 23faf440bc
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
4 changed files with 12 additions and 24 deletions

View file

@ -26,8 +26,6 @@ spec:
- name: config
mountPath: /config
readOnly: true
- name: maubot-storage
mountPath: /maubot
- name: meetbot-logs
mountPath: /meetbot_logs
- name: ipa-config-volume
@ -66,9 +64,6 @@ spec:
- name: config
configMap:
name: config
- name: maubot-storage
persistentVolumeClaim:
claimName: maubot-storage
- name: meetbot-logs
persistentVolumeClaim:
claimName: meetbot-logs

View file

@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: maubot-storage
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: ocs-storagecluster-cephfs

View file

@ -12,8 +12,18 @@ spec:
source:
dockerfile: |-
FROM fedora:38
RUN dnf -y install python3-pip python3-gssapi && dnf -y clean all
RUN dnf -y install python3-pip python3-gssapi git && dnf -y clean all
RUN pip install maubot[encryption] python-slugify httpx httpx_gssapi jinja2 fedora-messaging meetbot-messages
RUN \
curl https://raw.githubusercontent.com/fedora-infra/matrix-bots/main/install-plugins-from-git.py -o /usr/local/bin/install-maubot-plugins && \
chmod +x /usr/local/bin/install-maubot-plugins && \
mkdir /maubot && \
for plugin in maubot-fedora maubot-adminclient; do \
install-maubot-plugins -o /maubot -b staging https://github.com/fedora-infra/${plugin}; \
done && \
install-maubot-plugins -o /maubot \
https://github.com/jkhsjdhjs/maubot-webhook.git \
https://github.com/GregSutcliffe/maubot-meetings.git
WORKDIR /maubot
ENV KRB5_CONFIG=/etc/ipa/krb5.conf
ENTRYPOINT /usr/bin/python3 -m maubot -c /config/config.yml

View file

@ -61,12 +61,6 @@ logging:
normal:
format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: normal
filename: /maubot/maubot.log
maxBytes: 10485760
backupCount: 10
console:
class: logging.StreamHandler
formatter: colored
@ -79,4 +73,4 @@ logging:
level: WARN
root:
level: WARN
handlers: [file, console]
handlers: [console]