From d728f4cd6066e314687174db3730990fc9030ddd Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 21 Apr 2021 22:27:22 +0200 Subject: [PATCH] makefile: fix for kaniko on cgroup v2 hosts This is a temporary workaround that enables kaniko to run on cgroup v2 enabled hosts. Due to an upstream issue, kaniko fails to detect that it is indeed being run from a container. Solution introduced here is to force kaniko to run regardless. ref: https://github.com/GoogleContainerTools/kaniko/issues/1592 [skip ci] --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 81d1508..3f520ae 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ dargskaniko = run --rm -it -w=$(kanikowdir) -v $$PWD:$(kanikowdir) kanikoexecutorimg = gcr.io/kaniko-project/executor kanikowdir = /src kanikocontext = . -kanikoargs = -f=$(dfile) -c=$(kanikocontext) --use-new-run --snapshotMode=redo --no-push +kanikoargs = -f=$(dfile) -c=$(kanikocontext) --use-new-run --snapshotMode=redo --no-push --force .PHONY: build kaniko clean test prune