Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-4078

AMQ Broker Init image has 945MiB size (too large)

XMLWordPrintable

    • False
    • False
    • User Experience
    • Undefined

      AMQ Broker Init Image has 945 MiB size.

       

      Artifacts I have tested: registry-proxy.engineering.redhat.com/rh-osbs/amq-broker-7-amq-broker-77-init:0.2-2

       

      The output of investigation issue:

      • attachment amq-broker-7-amq-broker-77-init_0.2-2.json (dive tool)

      Reason

      After investigation and look to .dockerfile we have missed any yum cleanup.

      RUN yum install -y git
      
      RUN yum install -y rh-python36 rh-python36-python-jinja2 rh-python36-PyYAML
      

      Instead of the best practices: 

      RUN yum install -y git && \
          yum clean all && \
          rm -rf /var/cache/yum
      RUN yum install -y rh-python36 rh-python36-python-jinja2 rh-python36-PyYAML && \
          yum clean all && \
          rm -rf /var/cache/yum
      

       

      In the future, we can prevent this by rewrite Dockerfile to CEKIT

            dbruscin Domenico Francesco Bruscino
            dlenoch@redhat.com Dominik Lenosi
            Dominik Lenosi Dominik Lenosi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: