From 3e2596d7a83104c8b4f49a4c4d1e08b83148bff1 Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 21 Apr 2022 16:43:13 +0200 Subject: [PATCH] makefile: fix mounting volumes under SELinux --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0629f41..af45c18 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ dtag = immawanderer/fedora-minimal:testbuild dargs = build -t $(dtag) --no-cache --pull - < $(dfile) cleanargs = image rm -f $(dtag) pruneargs = system prune -af -dargskaniko = run --rm -it -w=$(kanikowdir) -v $$PWD:$(kanikowdir):ro +dargskaniko = run --rm -it -w=$(kanikowdir) -v $$PWD:$(kanikowdir):z kanikoexecutorimg = gcr.io/kaniko-project/executor:v1.8.1-debug kanikowdir = /src kanikocontext = . @@ -13,7 +13,7 @@ vcs_ref = $$(git rev-parse --short HEAD) build_date= $$(date -u +"%Y-%m-%dT%H:%M:%SZ") hadolintimg = ghcr.io/hadolint/hadolint hadolinttag = v2.10.0-alpine -hadolintargs = run --rm -i -v $$PWD:/src:ro --workdir=/src +hadolintargs = run --rm -i -v $$PWD:/src:z --workdir=/src .PHONY: hadolint build kaniko clean test prune