diff options
author | 2016-12-29 23:57:42 +0800 | |
---|---|---|
committer | 2016-12-29 23:57:42 +0800 | |
commit | 3c01f7eed2c8265fcf26801b4d18914cc2925294 (patch) | |
tree | cd8f1f751ec0bd14497f6b3294b336667a31c197 /ci/build_rpm/build_rpms_docker.sh | |
parent | 8752e2341e766f547377ac184f3e338613491162 (diff) |
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 <yangyang1@zte.com.cn>
Diffstat (limited to 'ci/build_rpm/build_rpms_docker.sh')
-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 |