Adds osm-mon-collector to install script of MON Dockerfile 89/6889/1
authorBenjamin Diaz <bdiaz@whitestack.com>
Thu, 15 Nov 2018 13:31:08 +0000 (10:31 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Thu, 15 Nov 2018 13:31:08 +0000 (10:31 -0300)
Exposes port 8000 in MON Dockerfile.
Adds additional env var defaults to Dockerfile.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
docker/MON/Dockerfile
docker/MON/scripts/runInstall.sh

index 5b9da33..6a42717 100644 (file)
@@ -51,7 +51,12 @@ ENV DATABASE sqlite:///mon_sqlite.db
 ENV OS_NOTIFIER_URI localhost:8662
 ENV OS_DEFAULT_GRANULARITY 300
 ENV REQUEST_TIMEOUT 10
+ENV OSMMON_LOG_LEVEL INFO
+ENV OSMMON_KAFKA_LOG_LEVEL INFO
+ENV OSMMON_VCA_HOST localhost
+ENV OSMMON_VCA_SECRET secret
+ENV OSMMON_VCA_USER admin
 
-EXPOSE 8662
+EXPOSE 8662 8000
 
 CMD /bin/bash scripts/runInstall.sh
index 236aa3d..29695f0 100755 (executable)
@@ -22,5 +22,5 @@
 ##
 /bin/bash /mon/osm_mon/plugins/vRealiseOps/vROPs_Webservice/install.sh
 python3 /usr/lib/python3/dist-packages/osm_mon/plugins/OpenStack/Aodh/notifier.py &
-python3 ./usr/lib/python3/dist-packages/osm_mon/core/message_bus/common_consumer.py
-
+python3 /usr/lib/python3/dist-packages/osm_mon/core/message_bus/common_consumer.py
+osm-mon-collector