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

Squash the image layers with Konflux

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

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

      None

      Show
      None
    • Yes
    • DESKTOP Cycle #3 10.0 phase, DESKTOP Cycle #4 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's 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
      

      It will be good if we can get Konflux to squash the layers as with the previous build system, because hacking the Dockerfile like this to reduce the number of layers doesn't scale. As the Dockerfile gets more and more sophisticated, it becomes more and more difficult to avoid the layers while retaining readability.

              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:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: