Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-8436

More efficient "nobody" mechanism when building docker image

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: DC/OS 1.12.0, DC/OS 1.10.9
    • Component/s: None
    • Labels:
      None
    • Story Points:
      0
    • Build artifact:
      Marathon-v1.7.174

      Description

      It turns out that running "chown nobody:nogroup /marathon" causes docker to create an additional layer with a copy of all the files. This adds an additional 170 MB to our uncompressed image size (70 MB compressed).

      We should update the docker build script so that we use the ADD --chown option (supported with newer sbt-native-packager plug-in versions) (see the documentation https://docs.docker.com/engine/reference/builder/)

        Attachments

          Activity

            People

            • Assignee:
              tharper Tim Harper
              Reporter:
              tharper Tim Harper
              Team:
              Orchestration Team
              Watchers:
              Mergebot, Tim Harper
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: