fix: use /api/v1/health for server health checks (not /actuator/health)
Some checks failed
CI / build (push) Successful in 49s
CI / docker (push) Successful in 30s
SonarQube Analysis / sonarqube (push) Failing after 1m24s

The server's /actuator/health requires auth. The public health endpoint
is /api/v1/health (same as compose-managed server's Docker HEALTHCHECK).
Also increased health check retries/timeout and added startPeriod.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-09 23:43:46 +02:00
parent 00476c974f
commit 5ed33807d8
2 changed files with 5 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ public class ServerApiClient {
@SuppressWarnings("unchecked")
public ServerHealthResponse getHealth(String serverEndpoint) {
try {
String url = serverEndpoint + "/actuator/health";
String url = serverEndpoint + "/api/v1/health";
var resp = RestClient.create().get().uri(url)
.header("Authorization", "Bearer " + getAccessToken())
.header("X-Cameleer-Protocol-Version", "1")

View File

@@ -167,10 +167,11 @@ public class DockerTenantProvisioner implements TenantProvisioner {
.withEnv(env)
.withHostConfig(hostConfig)
.withHealthcheck(new HealthCheck()
.withTest(List.of("CMD-SHELL", "wget -q -O- http://localhost:8081/actuator/health || exit 1"))
.withTest(List.of("CMD-SHELL", "curl -sf http://localhost:8081/api/v1/health || exit 1"))
.withInterval(5_000_000_000L)
.withTimeout(3_000_000_000L)
.withRetries(12))
.withTimeout(5_000_000_000L)
.withRetries(30)
.withStartPeriod(15_000_000_000L))
.exec();
// Connect to traefik network with DNS alias