Skip to content

Ability to set custom GID and UID #118

@Mistra

Description

@Mistra

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions