Ensure agent-services waits for API server to be ready (#129)

This commit is contained in:
Mal Miller 2022-03-31 09:10:45 +01:00 committed by GitHub
parent bf65ea7bd0
commit abd65e103e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,6 +154,8 @@ services:
- /opt/clearml/agent:/root/.clearml
depends_on:
- apiserver
entrypoint: >
bash -c "curl --retry 10 --retry-delay 10 --retry-connrefused 'http://apiserver:8008/debug.ping' && /usr/agent/entrypoint.sh"
networks:
backend: