jboss-openshift / cct_module

CEKit modules shared by OpenShift container images
Apache License 2.0
45 stars 79 forks source link

ubi-clean module #406

Closed jmtd closed 3 years ago

jmtd commented 3 years ago

This is a new module that removes a static list of RPMs.

The list of RPMs was determined by executing the following within the currently-shipped ubi8/openjdk-11, on a host without redhat entitlements (important):

rpm -qa --queryformat "%{NAME}\n" \
    | while read pkg; do microdnf repoquery $pkg 2>/dev/null | grep -q $pkg || echo $pkg; done

Unfortunately we cannot run this at container build-time, because it relies upon non-UBI RPMs not being in a configured dnf repository.

jmtd commented 3 years ago

I'm targetting the 0.41.x branch since that's what the shipped openjdk images are consuming.