summaryrefslogtreecommitdiffstats
path: root/src/fuel-plugin/pre_build_hook
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-06-22 08:45:04 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2017-06-22 08:45:23 -0700
commit7dcda31fe01f5fe910033a0ff97eb1ba795ee680 (patch)
tree58d4406453c84fdf6c02e4bcbc18f57449dffd3e /src/fuel-plugin/pre_build_hook
parente81d42edd4199d13d779753d1969f23ba74c98da (diff)
cleanup: remove fuel plugin since fuel@opnfv uses mcp
Change-Id: I1c745106c1db5e69ba698d9076ae6c707dbc37b7 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_hook41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/fuel-plugin/pre_build_hook b/src/fuel-plugin/pre_build_hook
deleted file mode 100755
index d264d0bf..00000000
--- a/src/fuel-plugin/pre_build_hook
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/bash
-
-# Add here any the actions which are required before plugin build
-# like packages building, packages downloading from mirrors and so on.
-# The script should return 0 if there were no errors.
-#!/bin/bash
-
-set -eux
-
-BUILD_FOR=${BUILD_FOR:-ubuntu}
-DIR="$(dirname `readlink -f $0`)"
-
-function build_pkg {
- case $1 in
- ubuntu)
- 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
-
- # build collectd
- cd ${DIR}
- 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
-}
-
-for system in $BUILD_FOR
-do
- build_pkg $system
-done