Skip to content

Commit 9c7ce71

Browse files
AchoArnoldCopilot
andcommitted
fix: use cockroach sql for healthcheck instead of curl
The CockroachDB Docker image does not include curl. Use 'cockroach sql --execute=SELECT 1' for the healthcheck instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fed39a7 commit 9c7ce71

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

tests/docker-compose.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@ services:
66
- "26257:26257"
77
- "8081:8080"
88
healthcheck:
9-
test: ["CMD", "curl", "-f", "http://localhost:8080/health?ready=1"]
9+
test:
10+
[
11+
"CMD",
12+
"cockroach",
13+
"sql",
14+
"--insecure",
15+
"--host=localhost",
16+
"--execute=SELECT 1;",
17+
]
1018
interval: 5s
1119
timeout: 5s
1220
retries: 10

0 commit comments

Comments
 (0)