mount a ubuntu 16.04 image into qtip container 51/53851/1
authorzhihui wu <wu.zhihui1@zte.com.cn>
Thu, 15 Mar 2018 08:07:24 +0000 (16:07 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Thu, 15 Mar 2018 08:07:24 +0000 (16:07 +0800)
Downloading image time can be saved.

Change-Id: I71de2cd14bdc0f279a75bfeffe959a603e8a7026
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
tests/ci/compute/docker-compose.yaml
tests/ci/utils/start_services.sh

index b6bdf13..896908d 100644 (file)
@@ -16,3 +16,4 @@ services:
     env_file: ${ENV_FILE}
     volumes:
       - ${SSH_CREDENTIALS}:/root/.ssh
+      - ${IMAGE_DIR}:/tmp
index c212957..602a999 100644 (file)
@@ -19,6 +19,7 @@ OPNFV_RELEASE=${OPNFV_RELEASE:-}
 EOF
 
 export SSH_CREDENTIALS=${SSH_CREDENTIALS:-/root/.ssh}
+export IMAGE_DIR=${IMAGE_DIR:-$HOME/tmp}
 
 TMPFILE=`mktemp /tmp/qtip.XXXXXX` || exit 1
 curl https://git.opnfv.org/releng/plain/utils/fetch_os_creds.sh | bash -s -- \