maubot: create needed maubot dirs on initcontainer

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
Ryan Lercho 2023-08-16 16:36:47 +10:00
parent 22192881ae
commit d59a2f8fb4
2 changed files with 7 additions and 1 deletions

View file

@ -26,6 +26,13 @@ spec:
app: maubot app: maubot
deploymentconfig: maubot deploymentconfig: maubot
spec: spec:
initContainers:
- image: maubot:latest
volumeMounts:
- name: maubot-storage
mountPath: /maubot
command:
- mkdir -p /maubot/plugins /maubot/trash /maubot/logs /maubot/crypto
containers: containers:
- name: maubot - name: maubot
image: maubot:latest image: maubot:latest

View file

@ -12,7 +12,6 @@ spec:
source: source:
dockerfile: |- dockerfile: |-
FROM fedora:38 FROM fedora:38
RUN mkdir -p /maubot/plugins /maubot/trash /maubot/logs /maubot/crypto
RUN dnf -y install python3-pip && dnf -y clean all RUN dnf -y install python3-pip && dnf -y clean all
RUN pip install maubot[encryption] RUN pip install maubot[encryption]
WORKDIR /maubot WORKDIR /maubot