diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-09 11:30:03 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-09 11:30:03 +0200 |
| commit | 3669a99e1c8a3d7ef1be42a5703c96cc8d31f0d7 (patch) | |
| tree | 0d479a5eb8ccfbc77ad75ed63d9a5b6f75ba9ddc /f3s/git-server | |
| parent | 1ad002ea626fb70db757c45634bbc013675e2419 (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.
Diffstat (limited to 'f3s/git-server')
| -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 |
