Preserve some dsop packages from being removed.
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
- Checkout this branch locally
- Clone the repos using
clone.sh
- Sync the repo1 dev branches with our 15-10 release branch using
sync-branch.sh development 15-10-stable
- Run
release-helper v15.10.0-ubi8
- Check the Dockerfile in
repo1/gitlab-rails/Dockerfile
and confirm that the microdnf remove in the bootsnap area does not removelibtirpc
orlibnsl2
any longer.