diff --git a/pkg/apis/manager/health/build.sh b/pkg/apis/manager/health/build.sh index a12a86887ff..30ee41189a1 100755 --- a/pkg/apis/manager/health/build.sh +++ b/pkg/apis/manager/health/build.sh @@ -20,5 +20,8 @@ set -e cd "$(dirname "$0")" proto="health.proto" -docker run -i --rm -v "$PWD:$PWD" -w "$PWD" znly/protoc --python_out=plugins=grpc:./python --go_out=plugins=grpc:. -I. $proto -docker run -i --rm -v "$PWD:$PWD" -w "$PWD" znly/protoc --plugin=protoc-gen-grpc=/usr/bin/grpc_python_plugin --python_out=./python --grpc_out=./python -I. $proto + +# TODO (andreyvelich): Temporarily disable gRPC code generation since znly/protoc doesn't work on ARM machines. +# Track migration to buf in https://github.com/kubeflow/katib/issues/2141 +# docker run -i --rm -v "$PWD:$PWD" -w "$PWD" znly/protoc --python_out=plugins=grpc:./python --go_out=plugins=grpc:. -I. $proto +# docker run -i --rm -v "$PWD:$PWD" -w "$PWD" znly/protoc --plugin=protoc-gen-grpc=/usr/bin/grpc_python_plugin --python_out=./python --grpc_out=./python -I. $proto diff --git a/pkg/apis/manager/v1beta1/build.sh b/pkg/apis/manager/v1beta1/build.sh index f0cb24e1cb7..17689a3bf2d 100755 --- a/pkg/apis/manager/v1beta1/build.sh +++ b/pkg/apis/manager/v1beta1/build.sh @@ -21,9 +21,11 @@ cd "$(dirname "$0")" proto="api.proto" -docker run -i --rm -v "$PWD:$PWD" -w "$PWD" znly/protoc --python_out=plugins=grpc:./python --go_out=plugins=grpc:. -I. $proto -docker run -i --rm -v "$PWD:$PWD" -w "$PWD" znly/protoc --plugin=protoc-gen-grpc=/usr/bin/grpc_python_plugin --python_out=./python --grpc_out=./python -I. $proto +# TODO (andreyvelich): Temporarily disable gRPC code generation since znly/protoc doesn't work on ARM machines. +# Track migration to buf in https://github.com/kubeflow/katib/issues/2141 +# docker run -i --rm -v "$PWD:$PWD" -w "$PWD" znly/protoc --python_out=plugins=grpc:./python --go_out=plugins=grpc:. -I. $proto +# docker run -i --rm -v "$PWD:$PWD" -w "$PWD" znly/protoc --plugin=protoc-gen-grpc=/usr/bin/grpc_python_plugin --python_out=./python --grpc_out=./python -I. $proto -docker build -t protoc-gen-doc gen-doc/ -docker run --rm -v "$PWD/gen-doc:/out" -v "$PWD:/apiprotos" protoc-gen-doc --doc_opt=markdown,api.md -I /protobuf -I /apiprotos $proto -docker run --rm -v "$PWD/gen-doc:/out" -v "$PWD:/apiprotos" protoc-gen-doc --doc_opt=html,index.html -I /protobuf -I /apiprotos $proto +# docker build -t protoc-gen-doc gen-doc/ +# docker run --rm -v "$PWD/gen-doc:/out" -v "$PWD:/apiprotos" protoc-gen-doc --doc_opt=markdown,api.md -I /protobuf -I /apiprotos $proto +# docker run --rm -v "$PWD/gen-doc:/out" -v "$PWD:/apiprotos" protoc-gen-doc --doc_opt=html,index.html -I /protobuf -I /apiprotos $proto