-
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/java and mercari-grpc-federation (#1412)
- Loading branch information
1 parent
cf57d39
commit 574b3e9
Showing
11 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
plugins/community/mercari-grpc-federation/v1.1.4/.dockerignore
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 |
16 changes: 16 additions & 0 deletions
16
plugins/community/mercari-grpc-federation/v1.1.4/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,16 @@ | ||
# syntax=docker/dockerfile:1.9 | ||
FROM --platform=$BUILDPLATFORM golang:1.22.6-bookworm AS build | ||
|
||
ARG TARGETOS TARGETARCH | ||
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH | ||
|
||
RUN --mount=type=cache,target=/go/pkg/mod \ | ||
go install -ldflags="-s -w" -trimpath github.com/mercari/grpc-federation/cmd/[email protected] \ | ||
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-grpc-federation /go/bin/protoc-gen-grpc-federation || true | ||
|
||
FROM scratch | ||
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd | ||
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-grpc-federation . | ||
ENV GOROOT / | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-grpc-federation" ] |
10 changes: 10 additions & 0 deletions
10
plugins/community/mercari-grpc-federation/v1.1.4/buf.plugin.yaml
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,10 @@ | ||
version: v1 | ||
name: buf.build/community/mercari-grpc-federation | ||
plugin_version: v1.1.4 | ||
source_url: https://github.com/mercari/grpc-federation | ||
integration_guide_url: https://github.com/mercari/grpc-federation/blob/main/docs/getting_started.md | ||
description: Generates a gRPC server by writing a custom option in Protocol Buffers | ||
output_languages: | ||
- go | ||
spdx_license_id: MIT | ||
license_url: https://github.com/mercari/grpc-federation/blob/v1.1.4/LICENSE |
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,24 @@ | ||
# syntax=docker/dockerfile:1.9 | ||
FROM debian:bookworm-20240722 AS build | ||
|
||
ARG TARGETARCH | ||
|
||
WORKDIR /build | ||
RUN apt-get update \ | ||
&& apt-get install -y curl | ||
RUN arch=${TARGETARCH}; \ | ||
if [ "${arch}" = "arm64" ]; then\ | ||
arch="aarch_64"; \ | ||
elif [ "${arch}" = "amd64" ]; then\ | ||
arch="x86_64"; \ | ||
fi; \ | ||
echo "${arch}"; \ | ||
curl -fsSL -o protoc-gen-grpc-java https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.66.0/protoc-gen-grpc-java-1.66.0-linux-${arch}.exe | ||
|
||
FROM gcr.io/distroless/cc-debian12:latest@sha256:3b75fdd33932d16e53a461277becf57c4f815c6cee5f6bc8f52457c095e004c8 AS base | ||
|
||
FROM scratch | ||
COPY --link --from=base / / | ||
COPY --link --from=build --chmod=0755 --chown=root:root /build/protoc-gen-grpc-java . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-grpc-java" ] |
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,25 @@ | ||
version: v1 | ||
name: buf.build/grpc/java | ||
plugin_version: v1.66.0 | ||
source_url: https://github.com/grpc/grpc-java | ||
integration_guide_url: https://grpc.io/docs/languages/java/quickstart | ||
description: Generates Java client and server stubs for the gRPC framework. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/java:v25.3 | ||
output_languages: | ||
- java | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/grpc/grpc-java/blob/v1.66.0/LICENSE | ||
registry: | ||
maven: | ||
deps: | ||
- io.grpc:grpc-core:1.66.0 | ||
- io.grpc:grpc-protobuf:1.66.0 | ||
- io.grpc:grpc-stub:1.66.0 | ||
additional_runtimes: | ||
- name: lite | ||
deps: | ||
- io.grpc:grpc-core:1.66.0 | ||
- io.grpc:grpc-protobuf-lite:1.66.0 | ||
- io.grpc:grpc-stub:1.66.0 | ||
opts: [lite] |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/community/mercari-grpc-federation/v1.1.4/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
...ata/buf.build/community/mercari-grpc-federation/v1.1.4/grpc-federation-v0.13.6/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:S3Do5iLgfxflm3KE5Ti400G0XJqjmAuK6RsPCPXKXjg= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/community/mercari-grpc-federation/v1.1.4/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= |
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:d3za65aFnBljimpU9FchAkiNo/14MzMBOx7D/nn7kXQ= |
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:XLHMv6snzgZwDEi9tvyY8g5PRV5W7cDJnbU1GIkXgxM= |