@@ -111,6 +111,15 @@ RUN mkdir -p ${GOPATH}/src/github.com/TheThingsIndustries/protoc-gen-gogottn &&
111
111
go build -ldflags '-w -s' -o /protoc-gen-gogottn-out/protoc-gen-gogottn . && \
112
112
install -Ds /protoc-gen-gogottn-out/protoc-gen-gogottn /out/usr/bin/protoc-gen-gogottn
113
113
114
+ ARG PROTOC_GEN_GOVALIDATORS_VERSION
115
+ RUN mkdir -p ${GOPATH}/src/github.com/mwitkow/go-proto-validators && \
116
+ curl -sSL https://api.github.com/repos/mwitkow/go-proto-validators/tarball/v${PROTOC_GEN_GOVALIDATORS_VERSION} | tar xz --strip 1 -C ${GOPATH}/src/github.com/mwitkow/go-proto-validators && \
117
+ cd ${GOPATH}/src/github.com/mwitkow/go-proto-validators && \
118
+ mkdir /go-proto-validators-out && \
119
+ go build -ldflags '-w -s' -o /go-proto-validators-out ./... && \
120
+ install -Ds /go-proto-validators-out/protoc-gen-govalidators /out/usr/bin/protoc-gen-govalidators && \
121
+ install -D ./validator.proto /out/usr/include/github.com/mwitkow/go-proto-validators/validator.proto
122
+
114
123
ARG PROTOC_GEN_GQL_VERSION
115
124
RUN mkdir -p ${GOPATH}/src/github.com/danielvladco/go-proto-gql && \
116
125
curl -sSL https://api.github.com/repos/danielvladco/go-proto-gql/tarball/v${PROTOC_GEN_GQL_VERSION} | tar xz --strip 1 -C ${GOPATH}/src/github.com/danielvladco/go-proto-gql && \
@@ -136,15 +145,6 @@ RUN mkdir -p ${GOPATH}/src/github.com/envoyproxy/protoc-gen-validate && \
136
145
install -Ds /protoc-gen-validate-out/protoc-gen-validate /out/usr/bin/protoc-gen-validate && \
137
146
install -D ./validate/validate.proto /out/usr/include/github.com/envoyproxy/protoc-gen-validate/validate/validate.proto
138
147
139
- ARG GO_PROTO_VALIDATORS_VERSION
140
- RUN mkdir -p ${GOPATH}/src/github.com/mwitkow/go-proto-validators && \
141
- curl -sSL https://api.github.com/repos/mwitkow/go-proto-validators/tarball/v${GO_PROTO_VALIDATORS_VERSION} | tar xz --strip 1 -C ${GOPATH}/src/github.com/mwitkow/go-proto-validators && \
142
- cd ${GOPATH}/src/github.com/mwitkow/go-proto-validators && \
143
- mkdir /go-proto-validators-out && \
144
- go build -ldflags '-w -s' -o /go-proto-validators-out ./... && \
145
- install -Ds /go-proto-validators-out/protoc-gen-govalidators /out/usr/bin/protoc-gen-govalidators && \
146
- install -D ./validator.proto /out/usr/include/github.com/mwitkow/go-proto-validators/validator.proto
147
-
148
148
ARG GRPC_GATEWAY_VERSION
149
149
RUN mkdir -p ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway && \
150
150
curl -sSL https://api.github.com/repos/grpc-ecosystem/grpc-gateway/tarball/v${GRPC_GATEWAY_VERSION} | tar xz --strip 1 -C ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway && \
@@ -160,6 +160,7 @@ RUN mkdir -p ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway && \
160
160
mkdir -p /out/usr/include/google/rpc && \
161
161
install -D $(find ./third_party/googleapis/google/rpc -name '*.proto' ) -t /out/usr/include/google/rpc
162
162
163
+
163
164
FROM rust:${RUST_VERSION}-slim as rust_builder
164
165
RUN apt-get update && apt-get install -y musl-tools curl
165
166
RUN rustup target add x86_64-unknown-linux-musl
@@ -195,6 +196,7 @@ RUN mkdir -p /grpc-swift && \
195
196
patchelf --set-interpreter /protoc-gen-swift/ld-linux-x86-64.so.2 /protoc-gen-swift/${p}; \
196
197
done
197
198
199
+
198
200
FROM google/dart:${DART_VERSION} as dart_builder
199
201
RUN apt-get update && apt-get install -y musl-tools curl
200
202
@@ -204,6 +206,7 @@ RUN mkdir -p /dart-protobuf && \
204
206
cd /dart-protobuf/protoc_plugin && pub install && dart2native --verbose bin/protoc_plugin.dart -o protoc_plugin && \
205
207
install -D /dart-protobuf/protoc_plugin/protoc_plugin /out/usr/bin/protoc-gen-dart
206
208
209
+
207
210
FROM alpine:${ALPINE_VERSION} as packer
208
211
RUN apk add --no-cache curl
209
212
0 commit comments