diff options
author | Maryam Tahhan <maryam.tahhan@intel.com> | 2016-12-14 11:19:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-14 11:19:02 +0000 |
commit | 9864e17ff636d7fffe39e0a4b68a370ab7cb9f58 (patch) | |
tree | 5b82bcdd054d968616a67709e0e790b49196ec17 /src/fuel-plugin/pre_build_hook | |
parent | 60fa6b4a1116e361a6dbda516679610165dc320d (diff) | |
parent | 9a00ce2a39b9c62f1e3605fea3f2642e17b44d24 (diff) |
Merge "Build collectd in ubuntu 16.04 docker"
Diffstat (limited to 'src/fuel-plugin/pre_build_hook')
-rwxr-xr-x | src/fuel-plugin/pre_build_hook | 15 |
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 |