-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alpine docker image doesn't run entrypoint as root
Set USER directrive in the Dockerfile to the consul-template user created to run consul-template. Also make the UID/GID used for the consul-template user and group explicit and overrideable. The values used, if not overridden, are the same as the default values adduser and addgroup would have used (so no change to actual values). Made this change as some organizations security policies require it. The only reason it wasn't done this way before was to run a chown on the (possibly) bind mounted directories and this is a bad practice anyways (who knows who the user matches on the external system). Only change the alpine image this way as the other 2 (scratch and light) purposely do as little as possible so they don't even create the user. Fixes #1321
- Loading branch information
Showing
4 changed files
with
45 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters