Skip to content

Commit

Permalink
chore(builder): pin protoc versions
Browse files Browse the repository at this point in the history
This doesn't upgrade versions to avoid changes in the protoc output
which would require updating the generated code.
  • Loading branch information
geyslan committed May 17, 2024
1 parent 8c09548 commit f2d6129
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions builder/Dockerfile.protoc
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
FROM golang:1.21

ARG PROTOC_VERSION="23.4"
ARG PROTOC_ZIP="protoc-${PROTOC_VERSION}-linux-x86_64.zip"

RUN apt update -y && apt install -y unzip
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v23.4/protoc-23.4-linux-x86_64.zip && \
unzip protoc-23.4-linux-x86_64.zip -d /usr/local
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP} && \
unzip ${PROTOC_ZIP} -d /usr/local

RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2 && \
go install github.com/mitchellh/protoc-gen-go-json@master
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1 && \
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0 && \
go install github.com/mitchellh/protoc-gen-go-json@49905733154f04e47d685de62c2cc2b72613b69e # master

WORKDIR /tracee

0 comments on commit f2d6129

Please sign in to comment.