Skip to content

reproducible_builds: ensure that umask doesn't affect the container build #3

Open

Description

@praiskup
  • 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/usr directory created by ADD root / command, this affects the whole image (/usr directory 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.

Activity

  1. changed the title [-]Ensure that `umask` doesn't affect the container build[/-] [+]reproducible_builds: ensure that `umask` doesn't affect the container build[/+] on Apr 6, 2017
  2. omron93 commented on Apr 6, 2017

    @omron93
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions