Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-70913

Revert Dockerfile hacks to reduce layers

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • rhel-9.6
    • rhel-9.6
    • toolbox-container
    • None
    • None
    • 3
    • rhel-display-tools-accessibility
    • 17
    • 26
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • DESKTOP Cycle #3 10.0 phase, DESKTOP Cycle #4 10.0 phase, DESKTOP Cycle #5 10.0 phase
    • Unspecified Release Note Type - Unknown
    • None

      The UBI-based toolbox image always had its layers squashed with something similar to:

      $ podman build --squash ...
      

      That was initially not happening after the move to Konflux.

      Compare these older images:

      $ skopeo inspect --format '{{ len .LayersData }}' docker://registry.access.redhat.com/ubi8/toolbox:8.10
      2
      $ skopeo inspect --format '{{ len .LayersData }}' docker://registry.access.redhat.com/ubi9/toolbox:9.4
      2
      

      ... with this one that was built with Konflux:

      $ skopeo inspect --format '{{ len .LayersData }}' docker://registry.access.redhat.com/ubi9/toolbox:9.5
      4
      

      An attempt was made to hack the Dockerfile of the above image like this to reduce the number of layers, but they were still double than they used to be.

      Recently, the Konflux configuration was tweaked to squash the layers, which seems to have worked. Therefore, it will be good to remove the Dockerfile hacks to retain the same style as used in the other RHEL branches. Using the same style everywhere makes it easier to quickly check if all the images are synchronized.

              dray@redhat.com Debarshi Ray
              dray@redhat.com Debarshi Ray
              Debarshi Ray Debarshi Ray
              Petr Schindler Petr Schindler
              Malhar Jivrajani Malhar Jivrajani
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: