Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12284

Reduce Docker container image size

    XMLWordPrintable

    Details

    • Sprint:
      Horizon 2020 - May 27, Horizon 2020 - June 10

      Description

      During the built of our container images, we copy the RPM files into the container image and install them locally. This has the side effect the RPM files are added as a layer with the copy command and can't be removed. This bloats the container image additional with 645 MB (compressed) with the size of the RPMs in the /tmp folder.

      A solution to solve this problem is installing the RPMs not from the local filesystem and install them instead from an URL.

      The problematic part is this line here:

      COPY ./rpms /tmp/rpms
      

      When installing from a remote URL the RPMs are not added as a layer in the image.

        Attachments

          Activity

            People

            Assignee:
            ranger Benjamin Reed
            Reporter:
            indigo Ronny Trommer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: