Proposal: Parse app.ini in entrypoint and create all necessary folders in docker entrypoint, even if they are different from /data/gitea #4491
Labels
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
[x]
):Description
gitea/docker/usr/bin/entrypoint does this:
for FOLDER in /data/gitea/conf /data/gitea/log /data/git /data/ssh; do mkdir -p ${FOLDER} done
So it creates the folders with root permissions (it changes user to git later on in docker/etc/s6/gitea/setup)
my log-location in app.ini:
"Normal" configs are still in /data-Folder
/tmpdata/gitea (or /tmpdata/gitea/log) is not there when starting gitea (and won't be created in entrypoint), when running it tries to create the folder, at least it seems so (but obviously with git-user) and dies:
Problem: I have to manually chown tmpdata on my host, if tmpdata would be a normal mountpoint this wouldn't be a problem, but I have to do this on a named volume (and therefore /var/lib/docker/volumes/gitserver_tmpdata/_data), which is quite unusual
Proposal: parse app.ini in entrypoint and create all necessary folders in docker entrypoint (even if they are different from /data/gitea). May be done toghether with #4425
My user within container is (as stated in the docker-compose.yml examples) git, and I dared to change it (to root), cause I dind't know if any side effects could occur:
The text was updated successfully, but these errors were encountered: