mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-15 19:56:11 +00:00
proto: update the mechanism for generating protos from spec repo (#7269)
This pull request updates the `protocgen.sh` script to insert the `go_package` option to all of the downloaded proto files. A related pull request into the spec repo removes this options from the .proto files: https://github.com/tendermint/spec/pull/358 This pull requests, along with the related spec PR, aim to move the creation of the `tendermintdev/docker-build-proto` container into the spec repo. This change also relies on several fixes to that container that are made in the PR into the spec repo.
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
FROM bufbuild/buf:latest as buf
|
||||
|
||||
FROM golang:1.14-alpine3.11 as builder
|
||||
|
||||
RUN apk add --update --no-cache build-base curl git upx && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
ENV GOLANG_PROTOBUF_VERSION=1.3.1 \
|
||||
GOGO_PROTOBUF_VERSION=1.3.2
|
||||
|
||||
RUN GO111MODULE=on go get \
|
||||
github.com/golang/protobuf/protoc-gen-go@v${GOLANG_PROTOBUF_VERSION} \
|
||||
github.com/gogo/protobuf/protoc-gen-gogo@v${GOGO_PROTOBUF_VERSION} \
|
||||
github.com/gogo/protobuf/protoc-gen-gogofaster@v${GOGO_PROTOBUF_VERSION} && \
|
||||
mv /go/bin/protoc-gen-go* /usr/local/bin/
|
||||
|
||||
|
||||
FROM alpine:edge
|
||||
|
||||
WORKDIR /work
|
||||
|
||||
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
|
||||
apk add --update --no-cache clang && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
COPY --from=builder /usr/local/bin /usr/local/bin
|
||||
COPY --from=buf /usr/local/bin /usr/local/bin
|
||||
Reference in New Issue
Block a user