Closed paulomorgado closed 1 month ago
Thanks for creating the issue. Do you know in which version the port for the health check was changed? The module uses version 21. We will need the wait strategy to distinguish between the old and new versions.
@HofmeisterAn,
Thanks for creating the issue. Do you know in which version the port for the health check was changed? The module uses version 21. We will need the wait strategy to distinguish between the old and new versions.
I couldn't find that information.
I just pulled the 24.0.5 and 25.0.0 and the change seems to be starting with 25.0.0.
https://www.keycloak.org/server/management-interface states that there's a configuration for that:
http-management-port
Port of the management interface. CLI:--http-management-port
Env:KC_HTTP_MANAGEMENT_PORT
Available only when Management interface is enabled
I just did some limited testing and it seems to work on port 8080, if you add:
.WithEnvironment("KC_HTTP_MANAGEMENT_PORT", "8080")
Edit: The test passed, but the health endpoints are not responding on port 8080. I'm not that experienced in Keycloak. 😄
Testcontainers version
3.9.0
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host arch
x64
.NET version
8.0.300
Docker version
Docker info
What happened?
When using "quay.io/keycloak/keycloak:25.0.1" image, the container is never detected as started because the health endpoint is on port 9000 and not on port 8080.
Relevant log output
No response
Additional information
As a workaround, I'm using this: