diff options
author | wu.zhihui <wu.zhihui1@zte.com.cn> | 2016-07-15 11:40:54 +0800 |
---|---|---|
committer | wu.zhihui <wu.zhihui1@zte.com.cn> | 2016-07-16 09:50:53 +0800 |
commit | 69135eca899c6bd99682e1be0f914f98232263cc (patch) | |
tree | 7de1cf239b7ea9facf990ba648b47c8a7d6692b9 /jjb | |
parent | 82655b7d380504d0820df0079a93374c004365a0 (diff) |
Mount a local image store directory to qtip container.
Use docker run with parameter -v.
The image file QTIP_CentOS.qcow2 is downloaded each time.
To save the execution time of CI, mount this file to a local
directory of qtip container.
Change-Id: I86350e4af872001a74d37d1e8d481c565be0de28
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/qtip/qtip-ci-jobs.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/qtip/qtip-ci-jobs.yml b/jjb/qtip/qtip-ci-jobs.yml index 36f026d7c..068b273f7 100644 --- a/jjb/qtip/qtip-ci-jobs.yml +++ b/jjb/qtip/qtip-ci-jobs.yml @@ -94,8 +94,10 @@ echo "Qtip: Start Docker and prepare environment" envs="INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} -e NODE_NAME=${NODE_NAME}" suite="TEST_CASE=all" + dir_imgstore="${HOME}/imgstore" + img_volume="${dir_imgstore}:/home/opnfv/imgstore" docker pull opnfv/qtip:latest - cmd=" docker run -id -e $envs -e $suite opnfv/qtip:latest /bin/bash" + cmd=" docker run -id -e $envs -e $suite -v ${img_volume} opnfv/qtip:latest /bin/bash" echo "Qtip: Running docker run command: ${cmd}" ${cmd} docker ps -a |