From 29cc45e4537ec81382e99872e2a786a159fec407 Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Sun, 26 Jan 2025 18:25:22 +0100 Subject: [PATCH] chore: add fs.write privilege to /tmp when building images --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6f47677f1..84e91257f 100644 --- a/Makefile +++ b/Makefile @@ -15,19 +15,19 @@ endif buildDockerImages: ifdef BUILD_MULTIARCH - docker buildx bake kroki companion-images --set "*.cache-from=$(CACHE_FROM)" --set "*.cache-to=$(CACHE_TO)" --set "*.platform=linux/arm64,linux/amd64" + docker buildx bake --allow=fs.write=/tmp kroki companion-images --set "*.cache-from=$(CACHE_FROM)" --set "*.cache-to=$(CACHE_TO)" --set "*.platform=linux/arm64,linux/amd64" else - docker buildx bake kroki companion-images --set "*.cache-from=$(CACHE_FROM)" --set "*.cache-to=$(CACHE_TO)" + docker buildx bake --allow=fs.write=/tmp kroki companion-images --set "*.cache-from=$(CACHE_FROM)" --set "*.cache-to=$(CACHE_TO)" endif publishDockerImages: ifndef RELEASE_VERSION $(error RELEASE_VERSION is undefined) endif - docker buildx bake -f docker-bake.hcl -f docker-bake-release.hcl kroki companion-images --push --set "*.platform=linux/arm64,linux/amd64" + docker buildx bake --allow=fs.write=/tmp -f docker-bake.hcl -f docker-bake-release.hcl kroki companion-images --push --set "*.platform=linux/arm64,linux/amd64" smokeTests: - TAG=smoketests docker buildx bake kroki companion-images --load --set "*.cache-from=$(CACHE_FROM)" --set "*.cache-to=$(CACHE_TO)" + TAG=smoketests docker buildx bake --allow=fs.write=/tmp kroki companion-images --load --set "*.cache-from=$(CACHE_FROM)" --set "*.cache-to=$(CACHE_TO)" @docker compose --file "$(TESTS_DIR)/docker-compose.yaml" up --build --detach \ && echo \ && docker compose --file "$(TESTS_DIR)/docker-compose.yaml" ps \