File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11FROM 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
25RUN \
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
912ENV PROTOC_VER=21.8
1013RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-x86_64.zip && \
You can’t perform that action at this time.
0 commit comments