Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-6868

spike: reduce size of rhdh-hub image and its source image

    • Icon: Task Task
    • Resolution: Obsolete
    • Icon: Major Major
    • 1.8.0
    • 1.7.0
    • Build, Dynamic Plugins
    • None
    • RHDH Core Platform 3272, RHDH COPE 3273

      Followup investigation from RHIDP-4014:

      After moving to cachi2, the rhdh-hub image is now 2x larger (650 -> 1.3g), and the source image is now 5x larger (528.6 MiB -> 2.6GiB)

      Need to see what we can safely delete from the images to improve performance.

      This should be explored in 1.7 and if possible backported to 1.6 so we don't have a 2x size regression going from 1.5 -> 1.6.

      $➔ podman run -it --rm --entrypoint /bin/bash --user root -v .:/host-mount quay.io/rhdh/rhdh-hub-rhel9:1.7-11   -c "du -shc dynamic-plugins node_modules packages"
      
      1.1G	dynamic-plugins
      4.2G	node_modules << ouch
      455M	packages
      5.6G	total
      
      $➔ podman run -it --rm --entrypoint /bin/bash --user root -v .:/host-mount quay.io/rhdh/rhdh-hub-rhel9:1.7-5   -c "du -shc dynamic-plugins node_modules packages"
      
      1.6G	dynamic-plugins
      601M	node_modules
      50M	packages
      2.2G	total
      

              cjerolim Christoph Jerolimov
              nickboldt Nick Boldt
              RHDH Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: