-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a grpc/gateway plugin. Fixes #152.
- Loading branch information
Showing
6 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source: | ||
goproxy: | ||
name: github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM golang:1.19.5-bullseye AS build | ||
RUN --mount=type=cache,target=/go/pkg/mod \ | ||
CGO_ENABLED=0 \ | ||
go install -ldflags="-s -w" -trimpath github.com/grpc-ecosystem/grpc-gateway/v2/[email protected] | ||
|
||
FROM scratch | ||
COPY --from=build --link /etc/passwd /etc/passwd | ||
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-grpc-gateway . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-grpc-gateway" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: v1 | ||
name: buf.build/grpc-ecosystem/gateway | ||
plugin_version: v2.15.0 | ||
source_url: https://github.com/grpc/grpc-gateway | ||
description: gRPC to JSON proxy generator following the gRPC HTTP spec. | ||
output_languages: | ||
- go | ||
deps: | ||
- plugin: buf.build/protocolbuffers/go:v1.28.1 | ||
- plugin: buf.build/grpc/go:v1.2.0 | ||
spdx_license_id: BSD-3-Clause | ||
license_url: https://github.com/grpc-ecosystem/grpc-gateway/blob/v2.15.0/LICENSE.txt |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/grpc-ecosystem/gateway/v2.15.0/eliza/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/grpc-ecosystem/gateway/v2.15.0/petapis/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= |