3 yum install -y which sudo git && \
5 git config --global http.sslVerify false
9 ENV COLLECTD_FLAVOR stable
11 ENV openstack_plugins /src/barometer/src/collectd-openstack-plugins
14 RUN git clone https://gerrit.opnfv.org/gerrit/barometer
15 WORKDIR ${repos_dir}/barometer/systems
16 RUN sh ./build_base_machine.sh && \
17 useradd -ms /bin/bash collectd_exec && \
18 echo "collectd_exec ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
20 WORKDIR ${openstack_plugins}
22 pip install --upgrade pip && \
23 pip install -r ${openstack_plugins}/collectd-openstack-plugins/requirements.txt
25 COPY run_collectd.sh /run_collectd.sh
26 RUN chmod +x /run_collectd.sh
28 ENTRYPOINT ["/run_collectd.sh"]