Skip to content

Commit e2562b8

Browse files
Add grpc-gateway/openapiv2 v2.15.2 plugins (#391)
1 parent 0dd2033 commit e2562b8

10 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# syntax=docker/dockerfile:1.4
2+
FROM golang:1.20.1-bullseye AS build
3+
RUN --mount=type=cache,target=/go/pkg/mod \
4+
CGO_ENABLED=0 \
5+
go install -ldflags="-s -w" -trimpath github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.15.2
6+
7+
FROM scratch
8+
COPY --from=build --link /etc/passwd /etc/passwd
9+
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-grpc-gateway .
10+
USER nobody
11+
ENTRYPOINT [ "/protoc-gen-grpc-gateway" ]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: v1
2+
name: buf.build/grpc-ecosystem/gateway
3+
plugin_version: v2.15.2
4+
source_url: https://github.com/grpc-ecosystem/grpc-gateway
5+
description: gRPC to JSON proxy generator following the gRPC HTTP spec.
6+
output_languages:
7+
- go
8+
deps:
9+
- plugin: buf.build/protocolbuffers/go:v1.28.1
10+
- plugin: buf.build/grpc/go:v1.2.0
11+
spdx_license_id: BSD-3-Clause
12+
license_url: https://github.com/grpc-ecosystem/grpc-gateway/blob/v2.15.2/LICENSE.txt
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# syntax=docker/dockerfile:1.4
2+
FROM golang:1.20.1-bullseye AS build
3+
RUN --mount=type=cache,target=/go/pkg/mod \
4+
CGO_ENABLED=0 \
5+
go install -ldflags="-s -w" -trimpath github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.15.2
6+
7+
FROM scratch
8+
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
9+
COPY --from=build --link /go/bin/protoc-gen-openapiv2 /
10+
USER nobody
11+
ENTRYPOINT [ "/protoc-gen-openapiv2" ]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: v1
2+
name: buf.build/grpc-ecosystem/openapiv2
3+
plugin_version: v2.15.2
4+
source_url: https://github.com/grpc-ecosystem/grpc-gateway
5+
description: Generates OpenAPI definitions for Protobuf services.
6+
spdx_license_id: BSD-3-Clause
7+
license_url: https://github.com/grpc-ecosystem/grpc-gateway/blob/v2.15.2/LICENSE.txt
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:i/zjVkZaxoFgKQESrbFwisCaDNzRLPWmUND0XCR+IlI=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:SybfdW8LTRLCVcNSux9/dP9iFEQFhWbADwdaILiM0EY=

0 commit comments

Comments
 (0)