File tree 2 files changed +13
-6
lines changed
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
3
7
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 1
1
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
2
5
RUN \
3
6
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}
8
11
9
12
ENV PROTOC_VER=21.8
10
13
RUN 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