https://github.com/grafana/grafana
Raw File
Tip revision: 69883ccb527ae58e38723f02013874ab0910fe8c authored by Ying WANG on 26 May 2021, 13:47:18 UTC
Merge remote-tracking branch 'origin/main' into 27535
Tip revision: 69883cc
wait-for-grafana
#!/bin/bash
set -eo pipefail

. e2e/variables

HOST=${HOST:-$DEFAULT_HOST}
PORT=${PORT:-$DEFAULT_PORT}

echo -e "Waiting for grafana-server to finish starting, host=$HOST, port=$PORT"

timeout 60 bash -c 'until nc -z $0 $1; do sleep 1; done' $HOST $PORT
back to top