-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running bes with a particular uid #36
Comments
By the way, I could not say what best practice is, but thredds-docker uses the upstream tomcat container image mechanism to set the UID: https://github.com/Unidata/tomcat-docker#configurable-tomcat-uid-and-gid |
I've made a clean fork and starting writing code. I have something working but perhaps not complete and only minimally tested. Here is a patch. The same changes are needed for multiple entrypoint.sh files, probably only in the hyrax-snapshot directory (but I can't build that as I can't access the snapshot). Rather than press on and make a PR that will be unacceptable, I'm posting this and asking what to do next.
|
I have a need to run bes with a particular uid to fit in with our storage setup.
I have a couple of ideas but would like to get any changes upstream so they can be more generally useful.
BTW I think the rpm install creates the bes user with the next available uid.
The front-running idea is to run 'usermod -u NNN bes' in the entrypoint where NNN is passed in as an environment variable (maybe BES_UID).
Does that seem a good idea and valuable to the project? Its a pretty simple code change.
BTW setting the tomcat UID may also be desirable and might matter for logging but not for reading data. Likewise setting the ncWMS2 user would seem good.
regards,
Gareth
The text was updated successfully, but these errors were encountered: