Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Conversation

@BBBosp
Copy link
Contributor

@BBBosp BBBosp commented Mar 30, 2021

Added environmental variables PUID and PGID that can be used to match container user and host user to same ID # for easy file management.
To do This I added gosu to the installed packages and added commands to the entrypoint.
Also updated docker-compose.yaml and docker run examples to include the new environmental variables. Need to add instructions to the readme on how to use.

BBBosp added 6 commits March 18, 2021 22:06
fixed volume mapping in docker run example.
This docker-compose.yaml will function exactly like the example docker run command.
Added environmental variables PUID and PGID that can be used to match container user and hoser user to same ID # for easy file management.
To do This I added gosu to the installed packages and added commands to the entrypoint.
Also updated docker-compose.yaml and docker run examples to include the new environmental variables. Need to add instructions to the readme on how to use.
added PUID and PGID functionality to docker run example.
@BBBosp
Copy link
Contributor Author

BBBosp commented Mar 30, 2021

Codacy says don't finish dockerfile with USER root but for this feature root is needed to groupmod and usermod in the entrypoint.sh. the command gosu is then used to step down to linuxgsm user for the rest of entrypoint as reccomended here : https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user

@BBBosp BBBosp closed this Apr 1, 2021
@BBBosp BBBosp deleted the feat-UserPermissions branch April 2, 2021 02:09
@BBBosp BBBosp mentioned this pull request Apr 2, 2021
@jusito jusito mentioned this pull request Dec 1, 2021
18 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant