summaryrefslogtreecommitdiffstats
path: root/src/fuel-plugin/pre_build_hook
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2016-12-01 17:43:35 -0500
committerGuo Ruijing <ruijing.guo@intel.com>2016-12-12 10:44:43 -0800
commit9a00ce2a39b9c62f1e3605fea3f2642e17b44d24 (patch)
tree818fa69be4addcda0e3cdee46c81b9fda70766fa /src/fuel-plugin/pre_build_hook
parent791bf2a756c8d4e7e7b2937481ee2d8d5d95fb97 (diff)
Build collectd in ubuntu 16.04 docker
Change-Id: Icd74de46b2ca61eb4e5137a2af4448f52750d7f8 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_hook15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/fuel-plugin/pre_build_hook b/src/fuel-plugin/pre_build_hook
index 9a539934..c0d35d4f 100755
--- a/src/fuel-plugin/pre_build_hook
+++ b/src/fuel-plugin/pre_build_hook
@@ -13,18 +13,19 @@ 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 ${DIR}/build; mkdir -p ${DIR}/build; cd ${DIR}/build;
+ rm -rf collectd-ceilometer-plugin
git clone https://github.com/openstack/collectd-ceilometer-plugin
cd collectd-ceilometer-plugin
- git checkout 73372f2eb86c81f12bc10b392f75050a401107db
+ git checkout 73372f2eb86c81f12bc10b392f75050a401107db
tar cfvz ${DIR}/repositories/ubuntu/collectd-ceilometer.tgz . --exclude=collectd-ceilometer.tgz
+ cd ..; rm -rf collectd-ceilometer-plugin
- # support collectd with dpdk
- cd ${DIR}/build; ../build-collectd.sh
- cp *.deb ${DIR}/repositories/ubuntu
-
- rm -rf ${DIR}/build
+ # build collectd
+ cd ${DIR}
+ sudo docker build -t collectd_build .
+ sudo docker run -v${DIR}/repositories/ubuntu:/build -t collectd_build /build-collectd.sh
;;
*) echo "Not supported system"; exit 1;;
esac