You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I stumbled upon the same issue found in ticket #10
I'm not necrobumping a closed issue but here the problem I'm facing is similar. I'm using another user (actually, my user, GID 1000 and UID 1000) to run a Docker image that allows me to retrieve letsencrypt certificates.
The problem with these certificates is that some keys have and (must remain with) permissions set to 400. The only way to read them mounting the folder would be to change the folder user in the host making some automatism more tricky.
Long story short, the problem comes from the fact that GID and UID 9000 is an hardcoded value in the Dockerfile. Would it be possible to allow the image to set a custom UID/GID from the environment for the user ejabberd, keeping 9000 as the default?
I think I can provide a PR for this, in case, would you accept it (ofc after a review)?
Activity
badlop commentedon Dec 30, 2024
Right, in the Dockerfile that builds the
ecscontainer image, the ejabberd files are owned byejabberd:ejabberdwhich have hardcoded IDs9000:9000.Notice that, in the Dockerfile that builds the
ejabberdcontainer image, the files IDs are defined in an argument, and set to9000:9000by default: https://github.com/processone/ejabberd/blob/7d5413ce95f3e9395f8d584469c5e016ebaaa689/.github/container/Dockerfile#L8Yes, if you can provide a PR, I'd be happy to try it and probably merge it.