Skip to content

Commit fb07954

Browse files
committed
init protobuf-4 generator
1 parent f4e97f4 commit fb07954

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
protobuf:
2-
docker build -f generate-protobuf.Dockerfile . -t ydb-python-sdk-proto-generator-env
1+
protobuf-3:
2+
docker build -f generate-protobuf.Dockerfile . -t ydb-python-sdk-proto-generator-env-3 --build-arg GRPCIO_VER=1.39.0 --build-arg PY_PROTOBUF_VER=3.20.3
3+
docker run --rm -it -v $${PWD}:$${PWD} -w $${PWD} ydb-python-sdk-proto-generator-env python generate_protoc.py
4+
5+
protobuf-4:
6+
docker build -f generate-protobuf.Dockerfile . -t ydb-python-sdk-proto-generator-env-4
37
docker run --rm -it -v $${PWD}:$${PWD} -w $${PWD} ydb-python-sdk-proto-generator-env python generate_protoc.py

generate-protobuf.Dockerfile

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
FROM python:3.9.15
2+
ENV GRPCLIB_VER=0.4.3
3+
ARG GRPCIO_VER=1.50.0
4+
ARG PY_PROTOBUF_VER=4.21.9
25
RUN \
36
python -m pip install --upgrade pip && \
4-
python -m pip install grpcio==1.39.0 && \
5-
python -m pip install grpclib && \
6-
python -m pip install protobuf==3.20.3 && \
7-
python -m pip install grpcio-tools==1.38.0
7+
python -m pip install grpcio==${GRPCIO_VER} && \
8+
python -m pip install grpclib==${GRPCLIB_VER} && \
9+
python -m pip install grpcio-tools==${GRPCIO_VER} && \
10+
python -m pip install protobuf==${PY_PROTOBUF_VER}
811

912
ENV PROTOC_VER=21.8
1013
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-x86_64.zip && \

0 commit comments

Comments
 (0)