Conversation
|
|
||
| # Copy tools code as nuodb user | ||
| USER 1000:1000 | ||
| USER 1000:0 |
There was a problem hiding this comment.
what's the reason we are assigning the root group?
There was a problem hiding this comment.
1000:0 is the default uid:gid for the nuodb user. The root group is used because of details with how OpenShift manages permissions.
There was a problem hiding this comment.
I thought the point of using pynuoadmin was to have the backup hooks use the python API directly and not go through the CLI. Is that coming in a separate PR?
There was a problem hiding this comment.
The backup hooks server uses nuocmd which is why we wanted to pull pynuoadmin (it delivers the nuocmd executable as well). We are planning to change the backup hooks so use python library directly instead of creating subprocess but this is a separate work.
Added pynuoadmin in
nuodb/nuodb-sidecarDocker image. This is required sothat the backup hooks server can pause/resume archiving using
nuocmd. Bydefault all Python modules installed by
pipgo into/home/nuodb/.localdirectory. Setup the shell so that required environment variables for executing
nuocmdare exported.