File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1313
1414endef
1515
16+ # Make docker work when running on SELinux Enforcing Systems.
17+ ifeq ($(shell getenforce) ,Enforcing)
18+ USE_MOUNT_OPTION := :Z
19+ else
20+ USE_MOUNT_OPTION :=
21+ endif
22+
1623# Generate all implementations
1724.PHONY : gen-all
1825gen-all : gen-cpp gen-csharp gen-go gen-java gen-objc gen-openapi gen-php gen-python gen-ruby
1926
2027OTEL_DOCKER_PROTOBUF ?= otel/build-protobuf:0.4.0
21- PROTOC := docker run --rm -u ${shell id -u} -v${PWD}:${PWD} -w${PWD} ${OTEL_DOCKER_PROTOBUF} --proto_path=${PWD}
28+ PROTOC := docker run --rm -u ${shell id -u} -v${PWD}:${PWD}$( USE_MOUNT_OPTION ) -w${PWD} ${OTEL_DOCKER_PROTOBUF} --proto_path=${PWD}
2229PROTO_INCLUDES := -I/usr/include/github.com/gogo/protobuf
2330
2431PROTO_GEN_CPP_DIR ?= $(GENDIR ) /cpp
You can’t perform that action at this time.
0 commit comments