diff options
author | Zhijiang Hu <hu.zhijiang@zte.com.cn> | 2017-01-03 08:03:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-03 08:03:41 +0000 |
commit | 13cc3ddd97f1242caa30101db78e56dc5c9a413f (patch) | |
tree | c6d4e25057377272f620413d84f0e14ddb1d493b /ci | |
parent | fb13e959d63ac821b312751d6eae3d1eacda522e (diff) | |
parent | 3c01f7eed2c8265fcf26801b4d18914cc2925294 (diff) |
Merge "fix "No space" error in docker building"
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/build_rpm/build_rpms_docker.sh | 15 |
1 files changed, 9 insertions, 6 deletions
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 |