Skip to content

Install openjdk packages for RHEL UBI (FIPS)

Fabien Catteau requested to merge openjdk-fips into master

What does this MR do?

Change the gemnasium-maven:3-fips image to install OpenJDK using RHEL UBI packages.

  • Install OpenJDK 8, 11, and 17 packages using yum when building the image.
  • Switch b/w these at runtime, based on DS_JAVA_VERSION.
  • Remove asdf-java.
  • Remove image compression.

The Debian-based image gemnasium-maven:3 (default image) is unchanged.

  • It uses asdf-java.
  • /opt/asdf is compressed when building the image, and decompressed when running it.

To make the FIPS image diverge from the default one, build/gemnasium-maven now has one subdirectory per Docker image:

  • debian
  • redhat

What are the relevant issue numbers?

gitlab-org/gitlab#362245 (closed)

Does this MR meet the acceptance criteria?

Edited by Fabien Catteau

Merge request reports