Complete python gRPC library and container (#6)

This commit is contained in:
2023-01-09 19:32:49 -07:00
parent ead0aeff2e
commit 359cef9180
17 changed files with 377 additions and 76 deletions
+17 -1
View File
@@ -2,6 +2,22 @@
# Delete generated code
rm -rf python/cursorius_pipeline_api_v2/proto
mkdir -p python/cursorius_pipeline_api_v2/proto
# Generate grpc code
# Generate python grpc code
poetry -C "$PWD/python" install
poetry -C python run \
python -m grpc_tools.protoc \
-I"api/v2" \
--python_out=./python/cursorius_pipeline_api_v2 \
--pyi_out=./python/cursorius_pipeline_api_v2 \
--grpc_python_out=./python/cursorius_pipeline_api_v2 \
api/v2/*
# Generate go grpc code
buf generate
# Build python docker container
pushd python
docker build . -t cursorius-pipeline:v2
popd