diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-09 11:30:03 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-09 19:40:51 +0200 |
| commit | 4378d24067545999a281211d5d8a36595e12e790 (patch) | |
| tree | dce171f932896e9c761646e3e9904d2ab868ae65 | |
| parent | 7d71a61f877015cb9abbcd89f1adacc7ed2b7e3e (diff) | |
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.
| -rw-r--r-- | f3s/git-server/helm-chart/templates/deployment.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
