From 630de5f71d613f2db56f13a02e1ea410b3210c2f Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Wed, 13 Jan 2016 17:43:51 +0100 Subject: 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 --- jjb/opnfv/opnfv-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.2.3-korg