Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Commit 7b4c2e2

Browse files
Added script to copy grafana DBs from the test server
Signed-off-by: Lukasz Gryglicki <lukaszgryglicki@o2.pl>
1 parent 020d353 commit 7b4c2e2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

devel/get_grafana_dbs.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
host=`hostname`
3+
if [ $host = "cncftest.io" ]
4+
then
5+
all="k8s prometheus opentracing fluentd linkerd grpc coredns containerd rkt cni envoy jaeger notary tuf rook all cncf"
6+
else
7+
all="k8s prometheus opentracing fluentd linkerd grpc coredns containerd rkt cni envoy jaeger notary tuf rook"
8+
fi
9+
for proj in $all
10+
do
11+
echo "wget grafana.$proj.db"
12+
rm -f grafana.$proj.db 2>/dev/null
13+
wget https://cncftest.io/grafana.$proj.db || exit 1
14+
ls -l grafana.$proj.db
15+
cp grafana.$proj.db /var/lib/grafana.$proj/grafana.db || exit 2
16+
done
17+
echo 'OK'
18+

0 commit comments

Comments
 (0)