Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mercari-grpc-federation v1.9.3 and connectrpc/dart v0.3.0 #1719

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
16 changes: 16 additions & 0 deletions plugins/community/mercari-grpc-federation/v1.9.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# syntax=docker/dockerfile:1.12
FROM --platform=$BUILDPLATFORM golang:1.24.0-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 plugins/community/mercari-grpc-federation/v1.9.3/buf.plugin.yaml
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.9.3
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.9.3/LICENSE
2 changes: 2 additions & 0 deletions plugins/connectrpc/dart/v0.3.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/connectrpc/dart/v0.3.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.12
FROM dart:3.7.0-sdk AS build

WORKDIR /build
RUN git clone --depth=1 --branch v0.3.0 https://github.com/connectrpc/connect-dart.git
RUN cd connect-dart/packages/connect \
&& dart pub get \
&& dart compile exe bin/protoc-gen-connect-dart.dart -o /build/protoc-gen-connect-dart

FROM scratch
COPY --from=build --link /etc/passwd /etc/passwd
COPY --from=build --link /runtime/ /
COPY --from=build --link /build/protoc-gen-connect-dart .
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-dart" ]
12 changes: 12 additions & 0 deletions plugins/connectrpc/dart/v0.3.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: v1
name: buf.build/connectrpc/dart
plugin_version: v0.3.0
source_url: https://github.com/connectrpc/connect-dart
integration_guide_url: https://connectrpc.com/docs/dart/getting-started
description: Generates client stubs for connectrpc. Compatible with the gRPC, gRPC-Web, and Connect RPC protocols.
deps:
- plugin: buf.build/protocolbuffers/dart:v21.1.2
output_languages:
- dart
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-dart/blob/v0.3.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:cvHDvPlzo8AaM0kC6dkGhiJVtXWzhNOktGsvkKjIYjU=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:2oeeATT8L4LABkOyY23ovHmaXCTA9oMjOMxyEKiCy/Q=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:MKDLb8WHr7/igQ9YQG0YlwDcAL8aLo+/szO5QdLrY5A=