From 082ba0b7ef89cb578f62887a5bcdec04e30e3551 Mon Sep 17 00:00:00 2001 From: Jiri Stransky Date: Fri, 20 Nov 2020 11:11:18 +0100 Subject: [PATCH] Dev: Do not use cache when building toolbox image When running `make toolbox-build` to refresh the toolbox image, the build is typically skipped if the image has been already built locally before. Make sure we always rebuild by using `--no-cache`. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d928c157..b7e6a6e8 100644 --- a/Makefile +++ b/Makefile @@ -154,7 +154,7 @@ toolbox-build: if [ "$${REUSE_TOOLBOX:-0}" -eq "0" ]; then \ echo "Building the toolbox container image"; \ cd toolbox && \ - podman build --format docker --build-arg NO_VAGRANT=$(NO_VAGRANT) -t localhost/os_migrate_toolbox:latest . && \ + podman build --no-cache --format docker --build-arg NO_VAGRANT=$(NO_VAGRANT) -t localhost/os_migrate_toolbox:latest . && \ podman tag localhost/os_migrate_toolbox:latest localhost/os_migrate_toolbox:$$(date "+%Y_%m_%d"); \ else \ echo "Reusing the toolbox container image"; \