-
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.
Update grpc-ecosystem plugins (#995)
New plugin versions found. Please review. --------- Co-authored-by: mfridman <[email protected]> Co-authored-by: Michael Fridman <[email protected]>
- Loading branch information
1 parent
95e435b
commit a0edb2e
Showing
12 changed files
with
454 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 @@ | ||
* | ||
!Dockerfile | ||
!separate_pkg_additional_imports.patch |
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,18 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM golang:1.21.5-bookworm AS build | ||
|
||
WORKDIR /tmp | ||
RUN git clone --depth 1 --branch v2.19.0 https://github.com/grpc-ecosystem/grpc-gateway.git | ||
COPY --link separate_pkg_additional_imports.patch /tmp/separate_pkg_additional_imports.patch | ||
WORKDIR /tmp/grpc-gateway | ||
RUN git apply /tmp/separate_pkg_additional_imports.patch | ||
WORKDIR /tmp/grpc-gateway/protoc-gen-grpc-gateway | ||
RUN --mount=type=cache,target=/go/pkg/mod \ | ||
CGO_ENABLED=0 \ | ||
go build -ldflags "-s -w" -trimpath | ||
|
||
FROM scratch | ||
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd | ||
COPY --from=build --link /tmp/grpc-gateway/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,22 @@ | ||
version: v1 | ||
name: buf.build/grpc-ecosystem/gateway | ||
plugin_version: v2.19.0 | ||
source_url: https://github.com/grpc-ecosystem/grpc-gateway | ||
integration_guide_url: https://github.com/grpc-ecosystem/grpc-gateway#usage | ||
description: gRPC to JSON proxy generator following the gRPC HTTP spec. | ||
output_languages: | ||
- go | ||
registry: | ||
go: | ||
deps: | ||
- module: github.com/grpc-ecosystem/grpc-gateway/v2 | ||
version: v2.19.0 | ||
opts: | ||
- paths=source_relative | ||
- standalone=true | ||
- separate_package=true | ||
deps: | ||
- plugin: buf.build/protocolbuffers/go:v1.32.0 | ||
- plugin: buf.build/grpc/go:v1.3.0 | ||
spdx_license_id: BSD-3-Clause | ||
license_url: https://github.com/grpc-ecosystem/grpc-gateway/blob/v2.19.0/LICENSE.txt |
Oops, something went wrong.