Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-644

RPM builds only work with Docker for Mac

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Minor
    • Resolution: Done
    • None
    • 0.3.1
    • None

    Description

      Currently using the rpm-docker container for building Metron RPMs will only work on Docker for Mac due to permissions issues on the SOURCE/* and SPEC/* files.

      When using docker-machine (e.g. boot2docker) or a local docker install on Linux, the build fails due to "Bad owner/group." After some research, this apparently occurs due to the uid/gid of the files not being a valid user and/or group in the container OS.

      I'd like to avoid changing permissions on these files to root, so that the developer can maintain non-root ownership of the files in his/her development environment. To do that, I propose adding a few checks to the build.sh script to:

      1. check if the owner of the SPEC/metron.spec file exists in the container OS
      2. if not, create that user
      3. once the build is complete, change ownership of the build files (e.g. RPMs) to the original owner

      Attachments

        Issue Links

          Activity

            People

              kylerichardson Kyle Richardson
              kylerichardson Kyle Richardson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: