<div dir="ltr">From experience in the field, i&#39;ve not had any customers complain / comment on the size of images as of yet - been on OpenShift engagements for over a  year now.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 1:38 PM, Matt Wringe <span dir="ltr">&lt;<a href="mailto:mwringe@redhat.com" target="_blank">mwringe@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">----- Original Message -----<br>
&gt; From: &quot;Heiko W.Rupp&quot; &lt;<a href="mailto:hrupp@redhat.com">hrupp@redhat.com</a>&gt;<br>
&gt; To: &quot;Discussions around Hawkular development&quot; &lt;<a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a>&gt;<br>
&gt; Sent: Wednesday, 1 February, 2017 7:19:34 AM<br>
&gt; Subject: Re: [Hawkular-dev] Docker image size does matter<br>
&gt;<br>
&gt; On 1 Feb 2017, at 12:29, Jiri Kremser wrote:<br>
&gt;<br>
&gt; &gt; base image with JRE 8 and Alpine linux: 76.8 MB<br>
&gt;<br>
&gt; Yes, alpine is only 3-4 MB that is great.<br>
<br>
</span>Please also take into consideration that minimal docker images do not contain common commands and can be a pain if you need to go into the container and run commands.<br>
<br>
Trying to debug issues when you don&#39;t have access to basic commands can be a bit frustrating. Especially if you are not root and cannot just install binaries in the container.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; &gt; I also removed<br>
&gt; &gt; 9.2M  /opt/jboss/wildfly/docs<br>
&gt;<br>
&gt; Makes sense.<br>
&gt;<br>
&gt;<br>
&gt; &gt; What also helped was squashing all the image layers into 1. This makes<br>
&gt; &gt; the<br>
&gt; &gt; download faster and possibly the image smaller. When applying<br>
&gt; &gt; docker-squash<br>
&gt; &gt; [1] to the current h-services image it saves ~50megs<br>
&gt;<br>
&gt; This is a bit of a false friend as docker pull only transfers layers it<br>
&gt; does not yet have.<br>
&gt;<br>
&gt; E.g<br>
&gt;<br>
&gt; $ docker pull pilhuhn/hawkular-services:0.<wbr>30.0.Final<br>
&gt; 0.30.0.Final: Pulling from pilhuhn/hawkular-services<br>
&gt; 08d48e6f1cff: Already exists<br>
&gt; 664e6a3041e6: Already exists<br>
&gt; 2f8461e7022b: Already exists<br>
&gt; 9500f4548bd3: Already exists<br>
&gt; 69e2e5217a47: Already exists<br>
&gt; cf95509fd4ad: Downloading [======&gt;<br>
&gt;       ] 10.75 MB/89.61 MB<br>
&gt;<br>
&gt; So what you say is true for the first download, but afterwards all<br>
&gt; the base layers of wf + jdk + ... are present. With stripping<br>
&gt; into 1 layer there is no chance of caching.<br>
&gt; Situation of course changes when the base layer is updated<br>
&gt;<br>
&gt;<br>
&gt; &gt; I am aware that this probably wont fly with some RH policy that we<br>
&gt; &gt; should<br>
&gt; &gt; base our SW on Fedora/RHEL base OS images, but I am gonna use them for<br>
&gt; &gt; development and because I often run out of space because of Docker.<br>
&gt;<br>
&gt; I like those alpine images and use them for private stuff,<br>
&gt; but for Hawkular upstream I think we should use something<br>
&gt; that is close for downstream so minimise the moving parts.<br>
&gt; ______________________________<wbr>_________________<br>
&gt; hawkular-dev mailing list<br>
&gt; <a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br>
&gt;<br>
______________________________<wbr>_________________<br>
hawkular-dev mailing list<br>
<a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br>
</div></div></blockquote></div><br></div>