From 25df84c1cd8c96382357ae856395b3878df8b69a Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Fri, 6 Dec 2019 10:20:15 +0100 Subject: [PATCH] fix: fix restarting InfluxDB --- .travis.yml | 2 +- scripts/nifi-restart.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 350630e..ca3b4aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,7 +42,7 @@ install: true script: - ./scripts/influxdb-restart.sh - mvn -B clean verify failsafe:integration-test failsafe:verify - - bash <(curl -s https://codecov.io/bash) + - bash <(curl -s https://codecov.io/bash) || true jobs: include: diff --git a/scripts/nifi-restart.sh b/scripts/nifi-restart.sh index cf5203a..1a71885 100755 --- a/scripts/nifi-restart.sh +++ b/scripts/nifi-restart.sh @@ -81,7 +81,8 @@ docker run \ --volume ${SCRIPT_PATH}/../nifi-influx-database-services/src/test/resources/influxdb.conf:/etc/influxdb/influxdb.conf \ ${INFLUXDB_IMAGE} -sleep 5 +echo "Wait to start InfluxDB" +wget -S --spider --tries=20 --retry-connrefused --waitretry=5 http://localhost:8086/ping # # InfluxDB 2.0 @@ -97,7 +98,8 @@ docker run \ --publish 9999:9999 \ ${INFLUXDB_V2_IMAGE} -sleep 5 +echo "Wait to start InfluxDB 2.0" +wget -S --spider --tries=20 --retry-connrefused --waitretry=5 http://localhost:9999/metrics echo echo "Post onBoarding request, to setup initial user (my-user@my-password), org (my-org) and bucket (my-bucket)"