From e69078b2b65c0e34fd56499bbe34da882dc6e009 Mon Sep 17 00:00:00 2001 From: Greg Sheremeta Date: Thu, 13 Jun 2024 16:10:09 -0400 Subject: [PATCH] fix(kubernetes_platform): fix api-generator docker mount for SELinux (#10890) On Fedora, which runs SELinux, mounting the container to the local filesystem results in permission issues because the labels mismatch: `make: stat: Makefile: Permission denied` To fix this, change the directory mount to use the `-v` syntax and add the `:z` option at the end. Ref: https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label Signed-off-by: Greg Sheremeta --- kubernetes_platform/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes_platform/Makefile b/kubernetes_platform/Makefile index 0b1fc750200..4aa791039d9 100644 --- a/kubernetes_platform/Makefile +++ b/kubernetes_platform/Makefile @@ -25,7 +25,7 @@ clean: clean-go clean-python golang: proto/*.proto docker run --interactive --rm \ --user $$(id -u):$$(id -g) \ - --mount type=bind,source="$$(pwd)/..",target=/go/src/github.com/kubeflow/pipelines \ + -v "$$(pwd)/..":"/go/src/github.com/kubeflow/pipelines":z \ $(PREBUILT_REMOTE_IMAGE) \ sh -c 'cd /go/src/github.com/kubeflow/pipelines/kubernetes_platform && make generate-go-in-container'