makefile: switch to cgroupsv2-aware kaniko build

as a consequence, we no longer need to override using "--force".
works with both recent podman and docker (>=v20.x)

[skip ci]
This commit is contained in:
surtur 2021-10-19 21:31:46 +02:00
parent b2ee470ff1
commit c42387d7ee
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -5,10 +5,10 @@ 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)
kanikoexecutorimg = gcr.io/kaniko-project/executor:debug
kanikoexecutorimg = gcr.io/kaniko-project/executor@sha256:6ecc43ae139ad8cfa11604b592aaedddcabff8cef469eda303f1fb5afe5e3034
kanikowdir = /src
kanikocontext = .
kanikoargs = -f=$(dfile) -c=$(kanikocontext) --use-new-run --snapshotMode=redo --no-push --force
kanikoargs = -f=$(dfile) -c=$(kanikocontext) --use-new-run --snapshotMode=redo --no-push
hadolintimg = hadolint/hadolint:v1.23.0-8-gb01c5a9-alpine
hadolintargs = run --rm -i -v $$PWD/.hadolint.yaml:/root/.config/hadolint.yaml