From 3669a99e1c8a3d7ef1be42a5703c96cc8d31f0d7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 9 Jan 2026 11:30:03 +0200 Subject: Override cgit entrypoint to skip chown/chmod The cgit image entrypoint always tries to chown /var/cache/cgit which fails with permission errors. Override the entrypoint to directly: 1. Spawn fcgiwrap as nginx user 2. Start nginx in foreground This skips the problematic chown/chmod and template substitution. --- f3s/git-server/helm-chart/templates/deployment.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/f3s/git-server/helm-chart/templates/deployment.yaml b/f3s/git-server/helm-chart/templates/deployment.yaml index 0fa3620..0f4d1bd 100644 --- a/f3s/git-server/helm-chart/templates/deployment.yaml +++ b/f3s/git-server/helm-chart/templates/deployment.yaml @@ -66,6 +66,11 @@ spec: # Container 2: CGit Web UI - name: cgit image: joseluisq/alpine-cgit:latest + command: ["/bin/sh", "-c"] + args: + - | + spawn-fcgi -u nginx -g nginx -s /var/run/fcgiwrap.sock -n -- /usr/bin/fcgiwrap & + exec nginx -g 'daemon off;' ports: - containerPort: 8080 name: http -- cgit v1.2.3