summaryrefslogtreecommitdiffstats
path: root/ci/build_rpm/build_rpms.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-02-07Resolve build silent failureZhijiang Hu1-1/+24
1) Add "-f" to docker rmi command, otherwise we encountered "Error response from daemon: conflict: unable to remove repository ..." 2) Remove "2>&1" to get error message printed out if present. 3) Add cleanup_container, otherwise we got "Error response from daemon: Conflict. The name "/daisy" is already in use by container" Change-Id: Ic5cecb34699c6fbe0d3af45be38633d35bdfc89f Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
2017-01-05Run docker from dockerhubJulien1-31/+5
1. Use the build image in releng; 2. Pull down the newest image and run; 3. Delete unused codes; wait from docker image build(26449) and upload in the dockerhub Change-Id: I72b072aff6cd905b426451768dc51d17eee6c0a3 Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
2017-01-03Fix bug in removing docker containers and imagesAlex Yang1-3/+2
1. "unexpected unclosed action in range" occurs in "docker inspect -f $ops ..." 2. "No such image" occurs in "docker rmi ..." Change-Id: I1a1ae9441beb3739585c8f2dcb63029b16c0c2fe Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
2016-12-12Move Dockerfile to ./docker pathJulien1-1/+1
According to other projects(releng/jjb/releng/opnfv-docker.yml), all the Dockerfiles are put in ./docker path. The daisy docker build procedure will be seperated from daisy bin file build procedure. The daisy docker will be directly used during the bin build procedure. It will help to safe the build time. A seperate job will be created in Jenkins to monitor the Docker changes and will build the docker image. Change-Id: Ib68ec3657d7296041aa9dc99f8e578cb0466679f Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
2016-12-12Miss call cleanup_docker_imageJulien1-2/+1
1. The function 'cleanup_docker_image' is not called by mistake. 2. Use 'docker run --rm' means: docker will automatically delete the containers. It's not necessary to call it in the end of bash file. according to the log: 'No containers to cleanup.' Change-Id: I67b9ff3ed193467669b80d5a19e36fd077af537d Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
2016-12-07bash formatJulien1-39/+36
1. use 4 header spaces instead of 8 2. keep max line width less than 80 3. don't mix use header tab and header space according pep8 4. for we use -x debug switch, no necessary to echo debug info Change-Id: I1cb4adf0fcfdad3bc015213ae4ad9b822748dd82 Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
2016-11-15add map with local and docker path /home/cacheYao Lu1-1/+1
Change-Id: I7f3ad5c7c7f70a14b7efd6e27c9958b1e396eef0 Signed-off-by: Yao Lu <lu.yao135@zte.com.cn>
2016-11-14rename daisy bin with gerrit numberYao Lu1-1/+3
Change-Id: I5314a0ba1a7885c334ea939c91eaa6ece074cb0d Signed-off-by: Yao Lu <lu.yao135@zte.com.cn>
2016-11-01Automatically remove the container when it exitsZhijiang1-3/+48
Change-Id: I7ce146ef4dc8717e782600750660dddf45e3047f Signed-off-by: Zhijiang <hu.zhijiang@zte.com.cn>
2016-10-14add build script for daisy4nfvJing Sun1-0/+19
Change-Id: I53daa25a87f04b2e0d4988d095a8d99535489dac Signed-off-by: Jing Sun <sun.jing22@zte.com.cn>