From ec6070c72235706194ac2b16386492ae6711c101 Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Sun, 28 Dec 2025 21:27:55 +0100 Subject: [PATCH] Create media directory in initContainer --- argocd/deployment.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/argocd/deployment.yaml b/argocd/deployment.yaml index 19a387f..fdfd9f0 100644 --- a/argocd/deployment.yaml +++ b/argocd/deployment.yaml @@ -18,14 +18,14 @@ spec: fsGroupChangePolicy: "OnRootMismatch" initContainers: - name: loader - image: git.baumann.gr/adebaumann/labhelper-data-loader:0.005 - command: [ "sh","-c","cp -n preload/preload.sqlite3 /data/db.sqlite3; chown -R 999:999 /data; ls -la /data; sleep 10; exit 0" ] + image: git.baumann.gr/adebaumann/labhelper-data-loader:0.006 + command: [ "sh","-c","cp -n preload/preload.sqlite3 /data/db.sqlite3; mkdir -p /data/media/cache; chown -R 999:999 /data; ls -la /data; exit 0" ] volumeMounts: - name: data mountPath: /data containers: - name: web - image: git.baumann.gr/adebaumann/labhelper:0.013 + image: git.baumann.gr/adebaumann/labhelper:0.014 imagePullPolicy: Always ports: - containerPort: 8000