Skip to content

Preserve some dsop packages from being removed.

DJ Mountney requested to merge preserve-packages into master

Summary

DSOPs base image ends up pulling in python3 again here: https://repo1.dso.mil/dsop/redhat/ubi/ubi8-minimal/-/blob/development/Dockerfile#L16

Which means we need to avoid removing packages that python3 depends on, as microdnf will happily remove them and then immediately break due to the broken dependencies.

This MR allows us to specific a list of packages to keep, and have them trimmed from microdnf remove calls.

How to test

  1. Checkout this branch locally
  2. Clone the repos using clone.sh
  3. Sync the repo1 dev branches with our 15-10 release branch using sync-branch.sh development 15-10-stable
  4. Run release-helper v15.10.0-ubi8
  5. Check the Dockerfile in repo1/gitlab-rails/Dockerfile and confirm that the microdnf remove in the bootsnap area does not remove libtirpc or libnsl2 any longer.

Merge request reports