Skip to content

Commit b47c50e

Browse files
authored
fix: Healthcheck used by diracx container in integration tests
1 parent c87ae5e commit b47c50e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/CI/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ services:
261261
/entrypoint.sh bash -xc 'uvicorn --factory diracx.routers:create_app --host=0.0.0.0'
262262
263263
healthcheck:
264-
test: ["CMD", "/entrypoint.sh", "curl", "-f", "http://localhost:8000/.well-known/openid-configuration"]
264+
test: ["CMD", "/opt/conda/bin/python", "-c", 'import requests; requests.get("http://localhost:8000/.well-known/openid-configuration").raise_for_status()']
265265
interval: 5s
266266
timeout: 2s
267267
retries: 15

0 commit comments

Comments
 (0)