CCI-MOC / xdmod-cntr

A project to prototype the use of XDMOD with OpenStack and OpenShift on the MOC
1 stars 5 forks source link

Correct implementation of yum cache cleanup #152

Closed larsks closed 1 year ago

larsks commented 1 year ago

Correct implementation of yum cache cleanup

Running the yum cleanup in a separate layer only increases the size of the image. In order to clean the yum cache and have it reduce the final image size we must do it in the same layer that populates it.

We should also perform a cache cleanup in each subsequent layer that performs yum operations.

Image size before this change: 3.3GB Image size after this change: 2.6GB