-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docker] support for custom GITEA_CUSTOM env var #6608
[docker] support for custom GITEA_CUSTOM env var #6608
Conversation
NOTE: The default value for GITEA_CUSTOM is `/data/gitea`. Signed-off-by: Jakob Ackermann <[email protected]>
Signed-off-by: Jakob Ackermann <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #6608 +/- ##
=========================================
- Coverage 41.4% 41.4% -0.01%
=========================================
Files 441 441
Lines 59736 59736
=========================================
- Hits 24734 24733 -1
- Misses 31762 31764 +2
+ Partials 3240 3239 -1
Continue to review full report at Codecov.
|
@das7pad sorry I didn't see your PR previously. I will look at it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will work the first time you change GITEA_CUSTOM but not later
The `GITEA_CUSTOM` environment variable is set globally in the `Dockerfile` and for ssh-sessions in `/data/git/.ssh/environment`. Signed-off-by: Jakob Ackermann <[email protected]>
…-custom # Conflicts: # docker/root/etc/profile.d/gitea.sh
This PR adds support for a custom
GITEA_CUSTOM
environment variable in a docker container.The current version has this path hardcoded to
/data/gitea
.Environment changes trigger a recreation of the container and reset the profile script in
/etc/profile.d/gitea.sh
. It is safe to replace the default path instead of the full line.The additional ssh-environment in
/data/git/.ssh/environment
is located in the users volume. Environment changes do not reset this file. This patch keeps additional variables a user may have placed there.The additional
chown
on the initial config is needed to support paths like/etc/gitea
and such, which are not writable by the git/run-user by default.