Skip to content

Provide an option like JAVA_OPTS_APPEND also for Quarkus based Keycloak.X container. #9188

@dasniko

Description

@dasniko

Description

For Keycloak.X it's currently not possible to add custom Java properties on startup by just providing the ones you want to set without overriding the complete default JAVA_OPTS set in kc.sh|.bat. This makes it hard to adjust the environment to custom needs without modifying the kc.sh script, which makes updates more complex.
I therefore love to see a possibility to set additional JAVA_OPTS without overriding the defaults.

Discussion

#8654 (comment)

Motivation

In the legacy, Wildfly-based Keycloak Docker container, there is an environment variable named JAVA_OPTS_APPEND, which allows us to append various Java options to the default configured ones.

This is currently missing for Keycloak.X.
Using JAVA_TOOL_OPTIONS does not work for overriding the default set JAVA_OPTS in the kc.sh|bat script, e.g. it is currently not possible to set custom -Xmx and -Xms properties.

Details

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions