summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2016-06-20 21:17:32 +0000
committerGuo Ruijing <ruijing.guo@intel.com>2016-06-20 21:21:54 +0000
commitfd77b5d48782e67306c3763dc1908f0fb342c51d (patch)
treed59c26ddd438d90181185cd98389eefe9e6d12ac
parentf04f64e8b3052dd18875d2255f102bc972f0a04b (diff)
Fix docker volume issue in ovs build
Change-Id: I9c87cb6e204b80df72020cac0297c27f603fb109 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Notes
Notes (review): Code-Review+2: Ruijing <ruijing.guo@intel.com> Workflow+1: Ruijing <ruijing.guo@intel.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 21 Jun 2016 05:31:16 +0000 Reviewed-on: https://review.openstack.org/331945 Project: openstack/fuel-plugin-ovs Branch: refs/heads/master
-rwxr-xr-xpre_build_hook19
1 files changed, 11 insertions, 8 deletions
diff --git a/pre_build_hook b/pre_build_hook
index c11860a..63cf7b4 100755
--- a/pre_build_hook
+++ b/pre_build_hook
@@ -13,15 +13,18 @@ function build_pkg {
13 cd ${DIR}/ovs_build 13 cd ${DIR}/ovs_build
14 sudo docker build -t ovs_build . 14 sudo docker build -t ovs_build .
15 15
16 rm -rf ${DIR}/deb; mkdir -p ${DIR}/deb; chmod 777 ${DIR}/deb; cd ${DIR}/deb 16 DEB_DIR=${DIR}/deb-ovs-dpdk
17 sudo docker run -v ${DIR}/deb:/deb -t ovs_build /ovs_build/build-ovs-dpdk.sh 17 rm -rf ${DEB_DIR}; mkdir -p ${DEB_DIR}; chmod 777 ${DEB_DIR};
18 tar czvf ../repositories/ubuntu/ovs-dpdk.tar.gz .; cd .. 18 sudo docker run -v ${DEB_DIR}:/deb -t ovs_build /ovs_build/build-ovs-dpdk.sh
19 cd ${DEB_DIR}; tar czvf ../repositories/ubuntu/ovs-dpdk.tar.gz .;
20 cd ..; rm -rf ${DEB_DIR}
21
22 DEB_DIR=${DIR}/deb-ovs-nsh-dpdk
23 rm -rf ${DEB_DIR}; mkdir -p ${DEB_DIR}; chmod 777 ${DEB_DIR};
24 sudo docker run -v ${DEB_DIR}:/deb -t ovs_build /ovs_build/build-ovs-nsh-dpdk.sh
25 cd ${DEB_DIR}; tar czvf ../repositories/ubuntu/ovs-nsh-dpdk.tar.gz .;
26 cd ..; rm -rf ${DEB_DIR}
19 27
20 rm -rf ${DIR}/deb; mkdir -p ${DIR}/deb; chmod 777 ${DIR}/deb; cd ${DIR}/deb
21 sudo docker run -v ${DIR}/ovs-nsh:/deb -t ovs_build /ovs_build/build-ovs-nsh-dpdk.sh
22 tar czvf ../repositories/ubuntu/ovs-nsh-dpdk.tar.gz .; cd ..
23
24 rm -rf ${DIR}/deb;
25 ;; 28 ;;
26 *) echo "Not supported system"; exit 1;; 29 *) echo "Not supported system"; exit 1;;
27 esac 30 esac