From cf8bc0061324ca38baebb07837a50c9362201135 Mon Sep 17 00:00:00 2001 From: Scrublord MacBad Date: Thu, 23 Apr 2026 18:34:45 +0200 Subject: [PATCH] fix: use init-container to copy docs from ConfigMap to nginx html --- apps/production/element-server-suite.yaml | 29 +++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/apps/production/element-server-suite.yaml b/apps/production/element-server-suite.yaml index c93df8d..54a8423 100644 --- a/apps/production/element-server-suite.yaml +++ b/apps/production/element-server-suite.yaml @@ -61,16 +61,37 @@ spec: enabled: true ingress: host: axion1337.chat + podAnnotations: + # Force pod restart bei ConfigMap Änderungen + checksum/config: "element-web-docs" additional: + initContainers: + - name: copy-docs + image: busybox:1.36 + command: + - sh + - -c + - | + mkdir -p /html/docs/setup + cp /config/README-Element-Setup.md /html/docs/setup/ + cp /config/element-setup-windows.cmd /html/docs/setup/ + cp /config/element-setup-macos.command /html/docs/setup/ + cp /config/element-setup-linux.sh /html/docs/setup/ + chmod 644 /html/docs/setup/* + volumeMounts: + - name: element-web-docs + mountPath: /config + - name: html-docs + mountPath: /html volumes: - name: element-web-docs configMap: name: ess-element-web-docs - defaultMode: 0644 + - name: html-docs + emptyDir: {} volumeMounts: - - name: element-web-docs - mountPath: /usr/share/nginx/html/docs/setup - readOnly: true + - name: html-docs + mountPath: /usr/share/nginx/html/docs # Element Admin elementAdmin: