aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2018-01-21 14:31:46 +0000
committerMaryam Tahhan <maryam.tahhan@intel.com>2018-01-22 11:50:53 +0000
commitadff3b393f0e345c4611b836cc7c11f968498d76 (patch)
treef09b31c33cf452e964706d9b123cc1fb9cfc8004
parent7a803394c9b74aa0af41ceb16c6d2d735cca7382 (diff)
docker: barometer-collectd openstack plugin deps
Update the the barometer-collectd container to install the python dependencies for the openstack plugins. Change-Id: If8ba14066aff5f0257a400ece642a8d478600c77 Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
-rw-r--r--docker/barometer-collectd/Dockerfile2
-rwxr-xr-xsystems/centos/7/build_base_machine.sh4
2 files changed, 5 insertions, 1 deletions
diff --git a/docker/barometer-collectd/Dockerfile b/docker/barometer-collectd/Dockerfile
index dd3a8c0b..585e5d05 100644
--- a/docker/barometer-collectd/Dockerfile
+++ b/docker/barometer-collectd/Dockerfile
@@ -17,6 +17,8 @@ RUN echo "collectd_exec ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
WORKDIR ${openstack_plugins}
RUN make
+RUN pip install --upgrade pip
+RUN pip install -r ${openstack_plugins}/collectd-openstack-plugins/requirements.txt
COPY run_collectd.sh /run_collectd.sh
RUN chmod +x /run_collectd.sh
diff --git a/systems/centos/7/build_base_machine.sh b/systems/centos/7/build_base_machine.sh
index 18539315..68735714 100755
--- a/systems/centos/7/build_base_machine.sh
+++ b/systems/centos/7/build_base_machine.sh
@@ -2,7 +2,7 @@
#
# Build a base machine for CentOS distro
#
-# Copyright 2017 OPNFV
+# Copyright 2017-2018 OPNFV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -57,4 +57,6 @@ net-snmp-devel
# install epel release required for git-review
epel-release
+libvirt-python
+python2-pip
" | grep -v ^#)