aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuel-plugin/pre_build_hook
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2016-12-18 19:31:42 -0500
committerGuo Ruijing <ruijing.guo@intel.com>2016-12-27 20:06:41 -0500
commit6c8273116b62d5fc6a85b6914930756f81f7175b (patch)
tree70b4bf5a0f03af8ea138f1a81f17ac44a10dc45e /src/fuel-plugin/pre_build_hook
parentdb7cec29b6a71c0eb0a5a3bcb1e20c4fac73d804 (diff)
build collectd with pqos
1. can build collectd with pqos 2. ceilometer with collectd basic functionality work as expected 3. todo: need to verify pqos work as expected Change-Id: I9f992de6ef5d8c0ea97a30162dd916bcd3accb34 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/fuel-plugin/pre_build_hook')
-rwxr-xr-xsrc/fuel-plugin/pre_build_hook18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/fuel-plugin/pre_build_hook b/src/fuel-plugin/pre_build_hook
index c0d35d4f..d264d0bf 100755
--- a/src/fuel-plugin/pre_build_hook
+++ b/src/fuel-plugin/pre_build_hook
@@ -13,19 +13,23 @@ DIR="$(dirname `readlink -f $0`)"
function build_pkg {
case $1 in
ubuntu)
- cd ${DIR}
- rm -rf ${DIR}/repositories/ubuntu; mkdir -p ${DIR}/repositories/ubuntu
- rm -rf collectd-ceilometer-plugin
+ sudo rm -rf ${DIR}/build; mkdir -p ${DIR}/build
+
+ cd ${DIR}/build
git clone https://github.com/openstack/collectd-ceilometer-plugin
cd collectd-ceilometer-plugin
git checkout 73372f2eb86c81f12bc10b392f75050a401107db
- tar cfvz ${DIR}/repositories/ubuntu/collectd-ceilometer.tgz . --exclude=collectd-ceilometer.tgz
- cd ..; rm -rf collectd-ceilometer-plugin
# build collectd
cd ${DIR}
- sudo docker build -t collectd_build .
- sudo docker run -v${DIR}/repositories/ubuntu:/build -t collectd_build /build-collectd.sh
+ sudo docker build -t collectd_build .
+ sudo docker run -v ${DIR}:/fuel-plugin -t collectd_build /fuel-plugin/build-collectd.sh
+
+ rm -rf ${DIR}/repositories/ubuntu; mkdir -p ${DIR}/repositories/ubuntu
+ cd ${DIR}/build
+ mv *.deb ${DIR}/repositories/ubuntu
+ tar cfvz ${DIR}/repositories/ubuntu/collectd-ceilometer.tgz .
+ cd ..; sudo rm -rf ${DIR}/build
;;
*) echo "Not supported system"; exit 1;;
esac