update containers to work with filebeat

This commit is contained in:
Jose Luis Ruiz
2017-01-28 21:29:26 +01:00
parent 8f05ef3ac6
commit b597b78036
10 changed files with 54 additions and 24 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -e
host="$1"
shift
cmd="$@"
until curl -XGET $host:9200; do
>&2 echo "Elastic is unavailable - sleeping"
sleep 1
done
>&2 echo "Elastic is up - executing command"
exec $cmd