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