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
ExtendableKeycloakContainer sets a few buid-time properties unconditionally, preventing me from using withProductionMode()plus--optimized (via withCustomCommand()).
Keycloak won't start due to:
The following build time options have values that differ from what is persisted - the new values will NOT be used until another build is run: kc.https-client-auth, kc.https-management-client-auth, kc.metrics-enabled
I really don't want to rebuild here, I want use my "pre-built" custom docker image (which has all the build-time properties in place).
Motivation
See description.
Details
I'm not sure what's the best way to support --optimized.
There could be a withOptimized() or so. If that's set, any attempt to set buid-time env vars would have to be prevented.
Apart from that I'm not sure why ExtendableKeycloakContainer is setting those properties unconditionally in the first place.
I mean KC_HTTPS_CLIENT_AUTH and KC_HTTPS_MANAGEMENT_CLIENT_AUTH are both none by default anyway. KC_METRICS_ENABLED shouldn't be set like that either (IMHO). Instead of boolean it could be Boolean so that in case of null the env var wouldn't be set.
KC_HEALTH_ENABLED is a bit more tricky because its needed for the default wait strategy. I think its ok to keep setting it if no custom wait strategy is set. It might then make sense to add withHealthCheck(boolean) (and validate agains the wait strategy accordingly).
As far as I'm concerned personally, I wouldn't mind if KC_HEALTH_ENABLED was kept unconditionally because I'm enabling it in Dockerfile anyway.
The text was updated successfully, but these errors were encountered:
PS: I've just realized that there is only withEnabledMetrics() and not withMetrics(boolean) so it might make more sense to only set KC_METRICS_ENABLED if the field is true. 🤷♂️
Description
ExtendableKeycloakContainer
sets a few buid-time properties unconditionally, preventing me from usingwithProductionMode()
plus--optimized
(viawithCustomCommand()
).Keycloak won't start due to:
I really don't want to rebuild here, I want use my "pre-built" custom docker image (which has all the build-time properties in place).
Motivation
See description.
Details
I'm not sure what's the best way to support
--optimized
.There could be a
withOptimized()
or so. If that's set, any attempt to set buid-time env vars would have to be prevented.Apart from that I'm not sure why
ExtendableKeycloakContainer
is setting those properties unconditionally in the first place.I mean
KC_HTTPS_CLIENT_AUTH
andKC_HTTPS_MANAGEMENT_CLIENT_AUTH
are bothnone
by default anyway.KC_METRICS_ENABLED
shouldn't be set like that either (IMHO). Instead ofboolean
it could beBoolean
so that in case ofnull
the env var wouldn't be set.KC_HEALTH_ENABLED
is a bit more tricky because its needed for the default wait strategy. I think its ok to keep setting it if no custom wait strategy is set. It might then make sense to addwithHealthCheck(boolean)
(and validate agains the wait strategy accordingly).As far as I'm concerned personally, I wouldn't mind if
KC_HEALTH_ENABLED
was kept unconditionally because I'm enabling it inDockerfile
anyway.The text was updated successfully, but these errors were encountered: