quarkusio / quarkus-images

Set of container images delivered for Quarkus
Apache License 2.0
110 stars 75 forks source link

Increase in quarkus mandrel images - version 21.2.x #220

Closed gansheer closed 1 year ago

gansheer commented 1 year ago

The apache/camel-k project using the quarkus mandrel quarkus/ubi-quarkus-mandrel java 11 image as parent image its own. We observed an increase in the size of this image on the 21.2.x version from ~320MB to ~560MB coupled with changes in the layers (june 2022) :

Could you please provide some inputs on the reason for this increase in size and the change in layers ?

The camel-k project issue : apache/camel-k/issues/3925

cescoffier commented 1 year ago

I've checked the latest image and the content of /tmp is 176Kb, so that's not explaining the size difference.

What's important to notice is the size of the mandrel directory (/opt/mandrel): 437Mb.

cescoffier commented 1 year ago

The jump in size happened between 22.0 and 22.1. With 22.1, we started handling ARM images and we had to stop (for some other technical reason) so squash the layers. This is the reason for the size difference.

Note that not squashing only increases the download times when the image is not present. Subsequent updates will rely on the cached layers.

gansheer commented 1 year ago

Thank you for this information.