summaryrefslogtreecommitdiffstats
path: root/jjb/opnfv/opnfv-docker.sh
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-01-13 17:43:51 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2016-01-13 17:43:51 +0100
commit630de5f71d613f2db56f13a02e1ea410b3210c2f (patch)
tree116786de5535af69fbb14507232b355b22470e04 /jjb/opnfv/opnfv-docker.sh
parent66405edc1d81dd5c8ff4103e8328135d9aef1984 (diff)
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 <jose.lausuch@ericsson.com>
Diffstat (limited to 'jjb/opnfv/opnfv-docker.sh')
-rw-r--r--jjb/opnfv/opnfv-docker.sh2
1 files changed, 1 insertions, 1 deletions
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