container-common-scripts
container-common-scripts copied to clipboard
reproducible_builds: ensure that `umask` doesn't affect the container build
- git doesn't track file permissions, thus
- git clone initiates the permissions according the user's umask value
- docker build just copies the files as-is into container
- especial problems are with
root/usrdirectory created byADD root /command, this affects the whole image (/usrdirectory might be unreadable)
In RPMs' specfiles, we explicitly set the permissions in %install phase (or by %attr in %files), though there's no such way in Dockerfile.
Related to https://github.com/sclorg/mariadb-container/issues/29