From 71f85539a17c7f8aafef75ef31176d8048329017 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 26 Apr 2021 22:20:08 +0200 Subject: [PATCH] makefile: hotfix 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. as seen in: https://git.dotya.ml/wanderer/docker-fedora-hugo/commit/d728f4cd6066e314687174db3730990fc9030ddd [skip ci] --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index aa5f1b6..a255c26 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