This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop.git


The following commit(s) were added to refs/heads/master by this push:
     new e9d2bc8  HOP-2668 : Docker: Integration tests - need healthchecks for 
dependencies (#705)
e9d2bc8 is described below

commit e9d2bc8b296bf02ea4e23cce7c4b997b1cc34612
Author: Matt Casters <[email protected]>
AuthorDate: Fri Mar 26 09:33:26 2021 +0100

    HOP-2668 : Docker: Integration tests - need healthchecks for dependencies 
(#705)
    
    * HOP-2668 : Docker: Integration tests - need healthchecks for dependencies
---
 docker/integration-tests/docker-compose-ci.yaml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/docker/integration-tests/docker-compose-ci.yaml 
b/docker/integration-tests/docker-compose-ci.yaml
index ef3fc7f..2476fd1 100644
--- a/docker/integration-tests/docker-compose-ci.yaml
+++ b/docker/integration-tests/docker-compose-ci.yaml
@@ -47,6 +47,11 @@ services:
             - database.env
         ports:
           - "5432"
+        healthcheck:
+          test: [ "CMD-SHELL", "pg_isready -U postgres" ]
+          interval: 10s
+          timeout: 5s
+          retries: 5
     neo4j:
       image: neo4j:latest
       ports:
@@ -58,8 +63,18 @@ services:
       image: mongo:latest
       ports:
         - "27017"
+      healthcheck:
+        test: echo 'db.runCommand("ping").ok' | mongo 127.0.0.1:27017/test 
--quiet
+        interval: 10s
+        timeout: 10s
+        retries: 5
     cassandra:
       image: cassandra:latest
       ports:
         - "9042"
         - "9160"
+      healthcheck:
+        test: ["CMD-SHELL", "[ $$(nodetool statusgossip) = running ]"]
+        interval: 10s
+        timeout: 5s
+        retries: 50
\ No newline at end of file

Reply via email to