okernel: made image building container use '--no-cache' option

Signed-off-by: Theo Koulouris <theo.koulouris@hpe.com>
This commit is contained in:
Theo Koulouris 2017-10-30 15:25:59 +00:00
parent 611d3cb6fd
commit 10fc7997af

View File

@ -13,7 +13,7 @@ KERNEL_VERSION=$(KERNEL)
IMAGE_VERSION=$(KERNEL_VERSION) IMAGE_VERSION=$(KERNEL_VERSION)
LATEST=0 LATEST=0
else else
$(error Error, valid okernel kernel versions begin with "ok-") $(error Error, please specify a valid okernel kernel version beginning with "ok-")
endif endif
else else
KERNEL_VERSION=linux-okernel KERNEL_VERSION=linux-okernel
@ -38,7 +38,7 @@ endif
.PHONY: image push tag kvmod .PHONY: image push tag kvmod
image: $(DEPS) image: $(DEPS)
BUILD=$$( tar cf - $^ | docker build -f $< $(PROXY_ARG) --build-arg DEBUG=$(DEBUG) --build-arg KERNEL_VERSION=$(KERNEL_VERSION) -q -t $(IMAGE):build - ) && [ -n "$$BUILD" ] && echo "Built $$BUILD" && echo "$$BUILD" > build_info BUILD=$$( tar cf - $^ | docker build --no-cache -f $< $(PROXY_ARG) --build-arg DEBUG=$(DEBUG) --build-arg KERNEL_VERSION=$(KERNEL_VERSION) -q -t $(IMAGE):build - ) && [ -n "$$BUILD" ] && echo "Built $$BUILD" && echo "$$BUILD" > build_info
default: tag default: tag