update readme and dockerfile to use latest version of protoc

This commit is contained in:
OlivierDehaene 2023-02-10 15:49:09 +01:00
parent e39302c3e5
commit 189fba28d1
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,10 @@
FROM rust:1.67 as router-builder
RUN apt-get update && apt-get install -y protobuf-compiler && rm -rf /var/lib/apt/lists/*
RUN PROTOC_ZIP=protoc-21.12-linux-x86_64.zip && \
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v21.12/$PROTOC_ZIP && \
unzip -o $PROTOC_ZIP -d /usr/local bin/protoc && \
unzip -o $PROTOC_ZIP -d /usr/local 'include/*' && \
rm -f $PROTOC_ZIP
WORKDIR /usr/src

View File

@ -154,7 +154,11 @@ You may also need to install Protoc.
On Linux:
```shell
sudo apt install -y protobuf-compiler
PROTOC_ZIP=protoc-21.12-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v21.12/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
```
On MacOS, using Homebrew: