Skip to content

Commit

Permalink
Update the protobuf and grpcio lib version
Browse files Browse the repository at this point in the history
-- Changed the libbrotbuf-dev to buster lightly version libprotobuf17
-- Change the grpcio 1.26.0 to 1.39.0
  • Loading branch information
mlok-nokia committed Oct 21, 2021
1 parent 8291266 commit c61d380
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
python3-distutils \
python3-pip \
cron \
libprotobuf-dev \
libprotobuf17 \
libgrpc++ \
haveged \
jq
Expand Down
8 changes: 4 additions & 4 deletions dockers/docker-platform-monitor/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ RUN pip2 install 'setuptools==40.8.0'
# contains 'enum' as part of the standard library. Installing enum34 there will
# cause conflicts.
RUN pip2 install enum34 \
grpcio==1.26.0 \
grpcio-tools==1.26.0
grpcio==1.39.0 \
grpcio-tools==1.39.0

RUN pip3 install grpcio==1.26.0 \
grpcio-tools==1.26.0
RUN pip3 install grpcio==1.39.0 \
grpcio-tools==1.39.0

# Barefoot platform vendors' sonic_platform packages import the Python 'thrift' library
RUN pip2 install thrift==0.13.0
Expand Down
8 changes: 4 additions & 4 deletions files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip2 install ipaddr
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install ipaddr

# Install Python module for grpcio and grpcio-toole
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install "grpcio==1.26.0"
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install "grpcio-tools==1.26.0"
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install "grpcio==1.26.0"
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install "grpcio-tools==1.26.0"
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install "grpcio==1.39.0"
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install "grpcio-tools==1.39.0"
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install "grpcio==1.39.0"
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install "grpcio-tools==1.39.0"

# Install SwSS SDK Python 3 package
# Note: the scripts will be overwritten by corresponding Python 2 package
Expand Down

0 comments on commit c61d380

Please sign in to comment.