From 310c4fdd0bc4b725c243e49fbe7d2213e2aa7abc Mon Sep 17 00:00:00 2001
From: "Adrian A. Baumann"
Date: Tue, 27 Jan 2026 11:35:08 +0100
Subject: [PATCH] Changed user-id to 99 to comply with NFS-mount
---
Dockerfile | 2 +-
argocd/deployment.yaml | 4 +++-
pages/templates/base.html | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 40859f2..e60bdc4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,7 +8,7 @@ COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
FROM python:3.15-rc-slim-trixie
-RUN useradd -m -r appuser && \
+RUN useradd -m -r -u 99 appuser && \
mkdir /app && \
chown -R appuser /app
diff --git a/argocd/deployment.yaml b/argocd/deployment.yaml
index d7aac9c..c53b903 100644
--- a/argocd/deployment.yaml
+++ b/argocd/deployment.yaml
@@ -19,13 +19,15 @@ spec:
initContainers:
- name: loader
image: git.baumann.gr/adebaumann/vui-data-loader:0.11
+ securityContext:
+ runAsUser: 99
command: [ "sh","-c","if [ ! -f /data/db.sqlite3 ] || [ ! -s /data/db.sqlite3 ]; then cp preload/preload.sqlite3 /data/db.sqlite3 && echo 'Database copied from preload'; else echo 'Existing database preserved'; fi" ]
volumeMounts:
- name: data
mountPath: /data
containers:
- name: web
- image: git.baumann.gr/adebaumann/vui:0.984
+ image: git.baumann.gr/adebaumann/vui:0.985
imagePullPolicy: Always
securityContext:
runAsUser: 99
diff --git a/pages/templates/base.html b/pages/templates/base.html
index 9d0d7ac..9ade369 100644
--- a/pages/templates/base.html
+++ b/pages/templates/base.html
@@ -219,7 +219,7 @@
-
Version {{ version|default:"0.984" }}
+
Version {{ version|default:"0.985" }}