-
Bug
-
Resolution: Done
-
Minor
-
AMQ 7.7.0.OPR.2.GA
-
None
-
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
- is related to
-
ENTMQBR-2885 Provide Init Containers For Container Image
- Closed