From c032cadb1e645bf60cfd9276ed2660cc602a0e25 Mon Sep 17 00:00:00 2001 From: Qiaowei Ren Date: Thu, 18 Jan 2018 12:39:37 +0800 Subject: build package This patch is to build debian/centos package. Currently it only can build ceph package and only support debian package building from ceph official repo. Change-Id: I702a1d28dd0101156bc3267d93510133db122613 Signed-off-by: Qiaowei Ren --- ci/build_interface.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 ci/build_interface.sh (limited to 'ci/build_interface.sh') diff --git a/ci/build_interface.sh b/ci/build_interface.sh new file mode 100755 index 0000000..343b84d --- /dev/null +++ b/ci/build_interface.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +type=$1 + +tmp_build_dir=/root/stor4nfv +build_dir=/opt/stor4nfv +tmp_output_dir=$tmp_build_dir/build_output +output_dir=$build_dir/build_output +cp -r $build_dir $tmp_build_dir + +cd $tmp_build_dir +# Build ceph packages +./ci/ceph_build.sh build_output $type + +if [ $type == "centos" ];then + # Move Ceph Rpm builds from tmp_output_dir to output_dir + mv $tmp_output_dir/*.rpm $output_dir +elif [ $type == "ubuntu" ];then + # Move Ceph Debian builds from tmp_output_dir to output_dir + mv $tmp_output_dir/*.deb $output_dir +fi -- cgit 1.2.3-korg