summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Smith <aasmith@redhat.com>2017-12-05 15:11:49 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-05 15:11:49 +0000
commit6089d43b047d35dd54502224547dbcf733f90921 (patch)
tree1cc684e95687e1c94834fcfb53c6b6546d762a63
parent5db64f8811b062d37ef6181fc69f503924f6ff6b (diff)
parentfa15dd6e448dab90ddc6a88d8877e966b0872941 (diff)
Merge "dockerfile: update for OPNFV docker build"
-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