aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjabirkkclt <jabir.kanhira.kadavathu@intel.com>2019-12-06 04:02:59 -0800
committerEmma Foley <efoley@redhat.com>2019-12-12 10:52:07 +0000
commit200cd063ee7b1a81a6a0757c74c0d9350f6d1da9 (patch)
tree21cd2a66861d8d531b30c49ca7a1b4aa48b91a98
parent7494e8d5f2c269f6f96727b6ef377b701d7c587a (diff)
Py2 to Py3 migration updates for VES App and the Dockerfile
Signed-off-by: jabirkkclt <jabir.kanhira.kadavathu@intel.com> Change-Id: I2e4934518f46afb060748ab08fd2ea9bfc0271d6 (cherry picked from commit 65f5711d5ec9c8236583202a3371dabda07486d3)
-rw-r--r--docker/barometer-ves/Dockerfile6
-rw-r--r--docker/barometer-ves/start_ves_app.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/docker/barometer-ves/Dockerfile b/docker/barometer-ves/Dockerfile
index e36ef848..27b3cbd3 100644
--- a/docker/barometer-ves/Dockerfile
+++ b/docker/barometer-ves/Dockerfile
@@ -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
diff --git a/docker/barometer-ves/start_ves_app.sh b/docker/barometer-ves/start_ves_app.sh
index f859bc45..0ac756c8 100644
--- a/docker/barometer-ves/start_ves_app.sh
+++ b/docker/barometer-ves/start_ves_app.sh
@@ -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"