Skip to content

Commit

Permalink
Bypass SELinux label system with :z
Browse files Browse the repository at this point in the history
Without a label, the security system might prevent the processes running inside the container from using the content
  • Loading branch information
razo7 committed May 22, 2023
1 parent d00d4bd commit cac234e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ endif
# -w /home/go/src/github.com/medik8s/self-node-remediation-operator = working dir
# -e ... = some env vars, especially set cache to a user writable dir
# --entrypoint /bin bash ... -c = run bash -c on start; that means the actual command(s) need be wrapped in double quotes, see e.g. check target which will run: bash -c "make test"
export DOCKER_GO=docker run --rm -v $$(pwd):/home/go/src/github.com/medik8s/$(OPERATOR_NAME)-operator \
export DOCKER_GO=docker run --rm -v $$(pwd):/home/go/src/github.com/medik8s/$(OPERATOR_NAME)-operator:z \
-u $$(id -u) -w /home/go/src/github.com/medik8s/$(OPERATOR_NAME)-operator \
-e "GOPATH=/go" -e "GOFLAGS=-mod=vendor" -e "XDG_CACHE_HOME=/tmp/.cache" \
-e "VERSION=$(VERSION)" -e "IMAGE_REGISTRY=$(IMAGE_REGISTRY)" \
Expand Down
5 changes: 2 additions & 3 deletions pkg/peerhealth/peerhealth.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pkg/peerhealth/peerhealth_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cac234e

Please sign in to comment.