3 RUN yum install -y which sudo
7 ENV openstack_plugins /src/barometer/src/collectd-openstack-plugins
8 RUN git config --global http.sslVerify false
11 RUN git clone https://gerrit.opnfv.org/gerrit/barometer
12 WORKDIR ${repos_dir}/barometer/systems
13 RUN sh ./build_base_machine.sh
15 RUN useradd -ms /bin/bash collectd_exec
16 RUN echo "collectd_exec ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
18 WORKDIR ${openstack_plugins}
20 RUN pip install --upgrade pip
21 RUN pip install -r ${openstack_plugins}/collectd-openstack-plugins/requirements.txt
23 COPY run_collectd.sh /run_collectd.sh
24 RUN chmod +x /run_collectd.sh