#!/bin/sh | |
/wait-for-elasticsearch | |
echo "** Creating Gerrit index" | |
curl -XPUT "http://$ES_USER:$ES_PWD@elasticsearch:9200/gerrit?pretty" -H 'Content-Type: application/json' | |
echo "** Importing Kibana setting from: " | |
for file in `ls -v /*.json`; | |
do echo "--> $file"; | |
/usr/lib/node_modules/elasticdump/bin/elasticdump \ | |
--output=http://$ES_USER:$ES_PWD@elasticsearch:9200/.kibana \ | |
--input=$file \ | |
--type=data \ | |
--headers '{"Content-Type": "application/json"}'; | |
done; |