From: jose.lausuch Date: Wed, 13 Jan 2016 16:43:51 +0000 (+0100) Subject: test: add --no-cache flag when building docker images X-Git-Tag: brahmaputra.1.0~233^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=630de5f71d613f2db56f13a02e1ea410b3210c2f;p=releng.git test: add --no-cache flag when building docker images Sometimes, if the docker leftovers are not properly removed, there is some cache that the build uses. This will force to build from scratch without using any existing image (no cache) Change-Id: Ifb19b2fc01da938cf46eb18d62a5877cf0a560e5 Signed-off-by: jose.lausuch --- diff --git a/jjb/opnfv/opnfv-docker.sh b/jjb/opnfv/opnfv-docker.sh index a18ad0f89..da62681d9 100644 --- a/jjb/opnfv/opnfv-docker.sh +++ b/jjb/opnfv/opnfv-docker.sh @@ -91,7 +91,7 @@ echo "Tag version to be build and pushed: $DOCKER_TAG" # Start the build echo "Building docker image: $DOCKER_REPO_NAME:$DOCKER_TAG..." -docker build -t $DOCKER_REPO_NAME:$DOCKER_TAG . +docker build -t --no-cache $DOCKER_REPO_NAME:$DOCKER_TAG . echo "Creating tag 'latest'..." docker tag $DOCKER_REPO_NAME:$DOCKER_TAG $DOCKER_REPO_NAME:latest