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: d728f4cd60

[skip ci]
This commit is contained in:
surtur 2021-04-23 13:12:23 +02:00
parent 9415138735
commit 735dd5a91b
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -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