Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build an image with the 2.0.0b4 version of betterproto #186

Merged
merged 1 commit into from
Mar 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2-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