From 73f6ca735e00902f9b71a9110eb97c7b008d8e94 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Thu, 24 Aug 2017 18:57:51 +0800 Subject: Skip container and docker image clean up - This helps to use the cache on CI pod and reduce build time. - Dangling containers and docker images will be cleaned up in a separate periodic job. Change-Id: Ifa756714698c71b8dde0cbe089661936e94e8a17 Signed-off-by: Yujun Zhang --- tests/ci/storperf/containers.sh | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'tests/ci/storperf/containers.sh') diff --git a/tests/ci/storperf/containers.sh b/tests/ci/storperf/containers.sh index 02a947da..26d582bf 100755 --- a/tests/ci/storperf/containers.sh +++ b/tests/ci/storperf/containers.sh @@ -11,20 +11,6 @@ clean_containers() { echo "QTIP: Cleanup existing qtip and storperf containers" docker-compose -f qtip-storperf-docker-compose.yaml down - - for name in qtip storperf-master storperf-swaggerui storperf-httpfrontend storperf-reporting - do - container=$(docker ps -a | grep "opnfv/${name}:${DOCKER_TAG}" | awk '{print $1}') - if [[ ! -z "$container" ]]; then - echo "QTIP: Removing any existing $name container" - docker rm -v $container - fi - - if [[ $(docker images opnfv/${name}:${DOCKER_TAG} | wc -l) -gt 1 ]]; then - echo "QTIP: Removing docker image opnfv/$name :$DOCKER_TAG..." - docker rmi opnfv/${name}:${DOCKER_TAG} - fi - done } -- cgit 1.2.3-korg