aboutsummaryrefslogtreecommitdiffstats
path: root/docker/barometer-ves/start_ves_app.sh
diff options
context:
space:
mode:
authorGordon Kelly <gordon.kelly@intel.com>2018-01-19 16:13:45 +0000
committerMaryam Tahhan <maryam.tahhan@intel.com>2018-01-23 11:50:02 +0000
commit2f5bdd402affef56c340a9ece577036d8183e8fe (patch)
treeae561e5b48c79c9a5f015df814e4dbc23ec7343a /docker/barometer-ves/start_ves_app.sh
parent04c4011bf6dab58da8365eca9388e6cacbdf8734 (diff)
docker: update ves image to load yaml and config files
Update ves image to load yaml and config files from /opt/ves/ directory and rename host yaml file. Change-Id: I3caf51150d10db08b8ef1c20a53c320b27a6acb8 Signed-off-by: gordonkelly <gordon.kelly@intel.com>
Diffstat (limited to 'docker/barometer-ves/start_ves_app.sh')
-rw-r--r--docker/barometer-ves/start_ves_app.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/docker/barometer-ves/start_ves_app.sh b/docker/barometer-ves/start_ves_app.sh
index d61078db..f859bc45 100644
--- a/docker/barometer-ves/start_ves_app.sh
+++ b/docker/barometer-ves/start_ves_app.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2018 OPNFV and Intel Corporation
+#Copyright 2018 OPNFV and Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -16,7 +16,12 @@
YAML_FILE="$1"
+if [ -z "${ves_kafka_host}" ]
+then
+ ves_kafka_host=localhost
+fi
+
#wait for kafka service to be available
-while ! nc localhost 9092 < /dev/null; do sleep 1; done
+while ! nc $ves_kafka_host 9092 < /dev/null; do sleep 1; done
-python ves_app.py --events-schema="$YAML_FILE" --config=ves_app_config.conf
+python ves_app.py --events-schema="./yaml/$YAML_FILE" --config="./config/ves_app_config.conf"