diff options
Diffstat (limited to 'docker/barometer-ves/Dockerfile')
-rw-r--r-- | docker/barometer-ves/Dockerfile | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/docker/barometer-ves/Dockerfile b/docker/barometer-ves/Dockerfile index 869a587f..27b3cbd3 100644 --- a/docker/barometer-ves/Dockerfile +++ b/docker/barometer-ves/Dockerfile @@ -18,18 +18,22 @@ 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 repos_dir /src -ENV ves_dir barometer/3rd_party/collectd-ves-app/ves_app -WORKDIR ${repos_dir} +ENV VES_DIR /opt/ves +ENV REPOS_DIR /src + +RUN mkdir -p ${VES_DIR}/yaml +RUN mkdir -p ${VES_DIR}/config +WORKDIR ${REPOS_DIR} RUN git clone https://gerrit.opnfv.org/gerrit/barometer -WORKDIR ${ves_dir} -COPY start_ves_app.sh ${ves_dir}/start_ves_app.sh -RUN chmod +x ${ves_dir}/start_ves_app.sh +COPY ./start_ves_app.sh ${VES_DIR}/ +RUN cp -rf barometer/3rd_party/collectd-ves-app/ves_app/* ${VES_DIR} +WORKDIR ${VES_DIR} +RUN chmod 755 ${VES_DIR}/start_ves_app.sh -ENTRYPOINT ["./barometer/3rd_party/collectd-ves-app/ves_app/start_ves_app.sh"] +ENTRYPOINT ["./start_ves_app.sh"] CMD ["host.yaml"] |