docker: rename barometer image and update documentation
[barometer.git] / docker / barometer-collectd / Dockerfile
1 FROM centos:7
2 RUN yum update -y
3 RUN yum install -y which sudo
4 RUN yum install -y git
5 ENV DOCKER y
6 ENV repos_dir /src
7 ENV openstack_plugins /src/barometer/src/collectd-openstack-plugins
8 RUN git config --global http.sslVerify false
9
10 WORKDIR ${repos_dir}
11 RUN git clone https://gerrit.opnfv.org/gerrit/barometer
12 WORKDIR ${repos_dir}/barometer/systems
13 RUN sh ./build_base_machine.sh
14
15 RUN useradd -ms /bin/bash collectd_exec
16 RUN echo "collectd_exec ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
17
18 WORKDIR ${openstack_plugins}
19 RUN make
20
21 COPY run_collectd.sh /run_collectd.sh
22 RUN chmod +x /run_collectd.sh