From 3c01f7eed2c8265fcf26801b4d18914cc2925294 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Thu, 29 Dec 2016 23:57:42 +0800 Subject: fix "No space" error in docker building The space of the /root directory in the docker image is only 10G. "No space" occurs in docker building. So the tmp directory should be changed. Change-Id: Idfa831bac88e2b8ea8e4312247611dc9a1dcda65 Signed-off-by: Alex Yang --- ci/build_rpm/build_rpms_docker.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'ci') diff --git a/ci/build_rpm/build_rpms_docker.sh b/ci/build_rpm/build_rpms_docker.sh index be4064d3..62993042 100755 --- a/ci/build_rpm/build_rpms_docker.sh +++ b/ci/build_rpm/build_rpms_docker.sh @@ -12,9 +12,12 @@ OPNFV_ARTIFACT_VERSION=$1 rpm_build_dir=/opt/daisy4nfv rpm_output_dir=$rpm_build_dir/build_output -tmp_rpm_build_dir=/root/daisy4nfv +tmp_rpm_build_dir=/home/cache/daisy4nfv -cp -r $rpm_build_dir $tmp_rpm_build_dir +if [[ -d $tmp_rpm_build_dir ]]; then + rm -fr $tmp_rpm_build_dir +fi +mkdir -p $tmp_rpm_build_dir cd $tmp_rpm_build_dir echo "#########################################################" @@ -32,8 +35,8 @@ do echo -e "\n\n\n*** Starting build attempt # $cnt" git clone https://git.openstack.org/openstack/daisycloud-core - cp $tmp_rpm_build_dir/code/makefile_patch.sh daisycloud-core/tools/setup - cp $tmp_rpm_build_dir/code/install_interface_patch.sh daisycloud-core/tools/setup + cp $rpm_build_dir/code/makefile_patch.sh daisycloud-core/tools/setup + cp $rpm_build_dir/code/install_interface_patch.sh daisycloud-core/tools/setup cd daisycloud-core/make make allrpm rc=$? @@ -48,6 +51,6 @@ do fi done cd .. -mv target/el7/noarch/installdaisy_el7_noarch.bin target/el7/noarch/opnfv-$OPNFV_ARTIFACT_VERSION.bin -cp target/el7/noarch/opnfv-$OPNFV_ARTIFACT_VERSION.bin $rpm_output_dir +mv target/el7/noarch/installdaisy_el7_noarch.bin target/el7/noarch/opnfv-${OPNFV_ARTIFACT_VERSION}.bin +cp target/el7/noarch/opnfv-${OPNFV_ARTIFACT_VERSION}.bin $rpm_output_dir exit $rc -- cgit 1.2.3-korg