Add docker-compose health checker to make sure that gateway start up completely before running integrated tests
@@ -109,8 +109,18 @@ services:
condition: service_healthy
ports:
- 9195:9195
+ healthcheck:
+ test: [ "CMD", "wget", "http://shenyu-integrated-test-http:9195/http/test/path/123?name=Tom" ]
+ timeout: 2s
+ retries: 30
networks:
- shenyu
+ health-checker:
+ container_name: health-checker
+ image: hello-world
+ depends_on:
+ shenyu-integrated-test-http:
+ condition: service_healthy
networks:
shenyu:
