You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use JAVA_OPTS_APPEND to append options in Dockerfile
Per Jonathan Dowland:
In the Red Hat OpenJDK container images, the Env JAVA_OPTS configuration
parameter is supposed to override all JVM tuning options generated by
the run script. The related parameter JAVA_OPTS_APPEND is used to add to
the script-generated parameters.
In image versions including :1.14 to :1.16, a bug prevented it from
behaving as intended: JAVA_OPTS did not override all tuning parameters,
only some of them.
This was noticed in
<quarkusio#35863>
Version :1.17 and newer of the ubi8/openjdk-17 container image changes
the behaviour of JAVA_OPTS to properly override all run script
parameters.
Switch to using JAVA_OPTS_APPEND instead of JAVA_OPTS. Take the
opportunity to update to the latest base image version (:1.17).
Note: The Fabric8 run-java script behaves differently: JAVA_OPTIONS
appends, and neither JAVA_OPTS nor JAVA_OPTS_APPEND are supported.
This commit does not touch Dockerfiles using the fabric8 run-java.
Co-authored-by: Jonathan Dowland <[email protected]>
Copy file name to clipboardExpand all lines: independent-projects/tools/base-codestarts/src/main/resources/codestarts/quarkus/tooling/dockerfiles/base/Dockerfile-layout.include.qute
0 commit comments