Allow configure .gitconfig #255

Closed
opened 2021-11-23 17:35:34 +00:00 by viceice · 1 comment
viceice commented 2021-11-23 17:35:34 +00:00 (Migrated from gitea.com)

Currently the .gitconfig on rootless image isn't persisted, so we can't add any new settings, like this:

[uploadpack]
  allowfilter = true

Also the image is curtrently based on alpine v3.13, because of some docker trouble. That Version only has git v2.30.2, so we can't use the new git environment variables.

A workaround to persist the config is to mount /data/git to /var/lib/gitea/git

extraVolumeMounts:
  # override home to allow configure static git config
  - name: data
    subPath: git
    mountPath: /var/lib/gitea/git
Currently the `.gitconfig` on rootless image isn't persisted, so we can't add any new settings, like this: ```ini [uploadpack] allowfilter = true ``` Also the image is curtrently based on alpine v3.13, because of some docker trouble. That Version only has git v2.30.2, so we can't use the new git environment variables. A workaround to persist the config is to mount `/data/git` to `/var/lib/gitea/git` ```yaml extraVolumeMounts: # override home to allow configure static git config - name: data subPath: git mountPath: /var/lib/gitea/git ``` - Superceeds #254 - https://git-scm.com/docs/git-config#Documentation/git-config.txt-GITCONFIGCOUNT - https://docs.gitea.io/en-us/clone-filters/
pat-s commented 2023-07-17 19:58:01 +00:00 (Migrated from gitea.com)

This is now supported since Gitea 1.20 (https://blog.gitea.com/release-of-1.20.0/#-configure-git-through-your-appini-24860). Given the many options that could be set, I'd argue it's best to do it via env vars (in deployment.env) and to not add a dedicated section to values.yaml.

This is now supported since Gitea 1.20 (https://blog.gitea.com/release-of-1.20.0/#-configure-git-through-your-appini-24860). Given the many options that could be set, I'd argue it's best to do it via env vars (in `deployment.env`) and to not add a dedicated section to `values.yaml.`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunny/helm-chart#255
No description provided.