Skip to content

Commit 65eb53c

Browse files
author
Toby McLaughlin
committed
Workaround for issue elastic#15
1 parent bbecd83 commit 65eb53c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

scripts/setup-beat.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ set -euo pipefail
55
beat=$1
66
es_url=http://elastic:${ELASTIC_PASSWORD}@elasticsearch:9200
77

8+
9+
until curl -s http://kibana:5601; do
10+
sleep 2
11+
done
12+
sleep 5
13+
814
# Load the sample dashboards for the Beat.
915
# REF: https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-sample-dashboards.html
10-
until ${beat} setup \
16+
${beat} setup \
1117
-E setup.kibana.host=kibana \
1218
-E setup.kibana.username=elastic \
1319
-E setup.kibana.password=${ELASTIC_PASSWORD}
14-
do
15-
sleep 2
16-
echo Retrying...
17-
done

0 commit comments

Comments
 (0)