podgrab
podgrab copied to clipboard
Adds support for PUID/PGID to Docker.
Adds support for changing the UID and GID at runtime by executing the app from a wrapper script that creates a container user with the appropriate UID/GID. Also updates the documentation to reflect the two new variables. I built an image based on this that's available for testing at spencerhughes/podgrab.
Fixes for #16 #12
no user creation needed if you use su-exec and specify the UID and GID directly
apk add su-exec
su-exec ${PUID:-1000}:${PGID:-1000} app
you could set ENV=1000 instead of using default value in bash variable
you can also user -u in docker cli or user: in compose
Oh cool I didn't know about su-exec, I'll update the branch to use that methodology instead.
EDIT: ok the branch has been updated to use su-exec. I also forgot to chown the app folders so I fixed that too.
Hi
Sorry for the delay. Got tied up with some work. Thanks a lot for this. Let me test this locally and merge this.
Hey
Any chance to have this merged? This option seems necessary to make Podgrab work with NFS shares (or at least to make it work in my setup 😛).