Skip to content

Commit

Permalink
Build an image with the 2.0.0b4 version of betterproto
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-milkey committed Mar 7, 2022
1 parent de1f681 commit 05ee25f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.1-dev
1.0.2
13 changes: 7 additions & 6 deletions build/protoc-go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ FROM golang:1.16
RUN apt-get update && \
apt-get install -y unzip python3 python3-pip

RUN curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.17.1/protoc-3.17.1-linux-x86_64.zip && \
unzip -o protoc-3.17.1-linux-x86_64.zip -d /usr/local bin/protoc && \
unzip -o protoc-3.17.1-linux-x86_64.zip -d /usr/local include/* && \
rm -rf protoc-3.17.1-linux-x86_64.zip
RUN curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip && \
unzip -o protoc-3.19.4-linux-x86_64.zip -d /usr/local bin/protoc && \
unzip -o protoc-3.19.4-linux-x86_64.zip -d /usr/local include/* && \
rm -rf protoc-3.19.4-linux-x86_64.zip

RUN go get -u google.golang.org/protobuf/cmd/protoc-gen-go && \
RUN export GO111MODULE=off && \
go get -u google.golang.org/protobuf/cmd/protoc-gen-go && \
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc && \
go get -u github.com/gogo/protobuf/proto && \
go get -u github.com/gogo/protobuf/gogoproto && \
Expand All @@ -32,7 +33,7 @@ RUN mkdir -p /go/src/github.com/google /go/src/github.com/p4lang && \
mv protoc-gen-grpc-web-1.2.1-linux-x86_64 /usr/local/bin/protoc-gen-grpc-web && \
chmod +x /usr/local/bin/protoc-gen-grpc-web

RUN pip3 install --pre "betterproto[compiler]"
RUN python3 -m pip install -U build markupsafe==2.0.1 betterproto[compiler]==2.0.0b4

WORKDIR "/go/src/github.com/"

Expand Down

0 comments on commit 05ee25f

Please sign in to comment.