From 94c1c031aa94e515d32dbe3df1d4b698f5abc4ec Mon Sep 17 00:00:00 2001 From: Bassam Tabbara Date: Mon, 14 Nov 2016 11:41:56 -0800 Subject: [PATCH] build: add rebuild option to build container this will always build the container from scratch and avoid caching in docker --- build/cross-image/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/cross-image/Makefile b/build/cross-image/Makefile index c3d99d1cc..7b86ef0ee 100644 --- a/build/cross-image/Makefile +++ b/build/cross-image/Makefile @@ -19,7 +19,10 @@ VERSION := $(shell cat version) CONTAINER := quay.io/rook/cross-build:$(VERSION) build: Dockerfile entrypoint.sh - @docker build ${BUILD_ARGS} -t $(CONTAINER) --pull $(CURDIR) + @docker build ${BUILD_ARGS} -t $(CONTAINER) $(CURDIR) + +rebuild: Dockerfile entrypoint.sh + @docker build --no-cache --pull ${BUILD_ARGS} -t $(CONTAINER) $(CURDIR) publish: build docker push $(CONTAINER)