UBI 8 OpenJDK 17 JAVA_OPTS overwrites JAVA_OPTS_APPEND

Solution Verified - Updated -

Issue

  • UBI OpenJDK ubi8/openjdk-17:1.15-1 image JAVA_OPTS overwrite JAVA_OPTS_APPEND
  • UBI OpenJDK ubi8/openjdk-17:1.15-1 image image ignores JAVA_OPTS_APPEND
oc new-app --context-dir=getting-started --name=quickstart --image-stream=test/openjdk-17:1.17-2~https://github.com/quarkusio/quarkus-quickstarts.git#3.2  --build-env='JAVA_OPTS=-Xmx1024M' --build-env='JAVA_OPTS_APPEND=-Dbox=fox'
  • UBI OpenJDK ubi8/openjdk-17:1.15-1 breaks backward with previous versions on JAVA_OPTS environment variable, which differs from ubi8/openjdk-17 behavior

Environment

  • Red hat OpenShift Container Platform (OCP)
    • 4.x
  • OpenJDK 17
    • Image ubi8/openjdk-17:1.15-1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content