Add support for UBI 8 base image to Pbench Server container image build #3582
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
During a side trip trying to get the Pbench 1.0 Server deployed on RHEL 8.9, we tried to build the Server container image on a UBI 8 base instead of the usual UBI 9 one and ran into troubles. This PR makes the build work.
It turns out that -8 uses a different version of EPEL from what -9 uses, so this changes the
container-build.sh
script to add the necessary logic to support that.Also, we tumbled to the fact that the Server no longer depends on
util-linux-core
(which we couldn't locate easily in the -8 EPEL), so this change removes that dependency from the RPM spec file.For the record, this change received only the lightest testing: it passes the CI but mostly because the changes are unused in normal operation. If someone actually tries to use a UBI 8-based Server, they will run into problems because the version of SSL is too old to produce the TLS certificates in the conventional way and the version of Python is 3.6 which is too old to run the Server code.