summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docker/Dockerfile14
1 files changed, 7 insertions, 7 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index b64dd805..f2005682 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,17 +1,17 @@
FROM centos:7
RUN yum update -y
RUN yum install -y which sudo
+RUN yum install -y git
ENV DOCKER y
-COPY systems /systems
-COPY src /src
-COPY 3rd_party /3rd_party
-COPY mibs /mibs
+ENV repos_dir /src
-WORKDIR /systems
+RUN git config --global http.sslVerify false
+WORKDIR ${repos_dir}
+RUN git clone https://gerrit.opnfv.org/gerrit/barometer
+WORKDIR ${repos_dir}/barometer/systems
RUN sh ./build_base_machine.sh
RUN useradd -ms /bin/bash collectd_exec
RUN echo "collectd_exec ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
-WORKDIR /src
-COPY docker/run_collectd.sh /run_collectd.sh
+COPY run_collectd.sh /run_collectd.sh
RUN chmod +x /run_collectd.sh