Add ability to run augur container as a non-root user #3131
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR provides the ability to run the augur backend container as an arbitrary non-root user. This is important for running on OpenShift where the userid is not known until runtime, and containers are not permitted to run as uid 0.
The majority of the changes are related to moving R/W files such as config and log files out of the source tree and into paths that will have data volumes mounted. The
docker-compose.yml
was updated to provide the required volumes.File permissions during the build process were also updated so that non-root users will have read access.
I also changed the build steps for
scorecard
andscc
to directlygo install
them instead of manually checking out the repo and runninggo build
on the local copy.This PR fixes #3107
Notes for Reviewers
/tmp
directory). I'm happy to modify this PR to that model if you can provide some guidance about what's important to keep and what is ephemeral.Signed commits