Py2 to Py3 migration updates for VES App and the Dockerfile 63/69263/1
authorjabirkkclt <jabir.kanhira.kadavathu@intel.com>
Fri, 6 Dec 2019 12:02:59 +0000 (04:02 -0800)
committerjabirkkclt <jabir.kanhira.kadavathu@intel.com>
Fri, 6 Dec 2019 12:04:13 +0000 (04:04 -0800)
Signed-off-by: jabirkkclt <jabir.kanhira.kadavathu@intel.com>
Change-Id: I2e4934518f46afb060748ab08fd2ea9bfc0271d6

docker/barometer-ves/Dockerfile
docker/barometer-ves/start_ves_app.sh

index e36ef84..27b3cbd 100644 (file)
@@ -18,9 +18,9 @@ RUN yum update -y && \
                    git \
                    nc
 
-RUN yum install -y python-pip
-RUN pip install pyyaml \
-                kafka-python
+RUN yum install -y python3 python3-pip
+RUN pip3 install pyyaml \
+                 kafka-python
 
 
 ENV VES_DIR /opt/ves
index f859bc4..0ac756c 100644 (file)
@@ -24,4 +24,4 @@ fi
 #wait for kafka service to be available
 while ! nc $ves_kafka_host  9092  < /dev/null; do sleep 1;  done
 
-python ves_app.py --events-schema="./yaml/$YAML_FILE" --config="./config/ves_app_config.conf"
+python3 ves_app.py --events-schema="./yaml/$YAML_FILE" --config="./config/ves_app_config.conf"