diff --git a/plugins/community/mercari-grpc-federation/v0.19.0/.dockerignore b/plugins/community/mercari-grpc-federation/v0.19.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/mercari-grpc-federation/v0.19.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/mercari-grpc-federation/v0.19.0/Dockerfile b/plugins/community/mercari-grpc-federation/v0.19.0/Dockerfile new file mode 100644 index 000000000..5e74b6c1c --- /dev/null +++ b/plugins/community/mercari-grpc-federation/v0.19.0/Dockerfile @@ -0,0 +1,16 @@ +# syntax=docker/dockerfile:1.7 +FROM --platform=$BUILDPLATFORM golang:1.22.4-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/protoc-gen-grpc-federation@v0.19.0 \ + && 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" ] diff --git a/plugins/community/mercari-grpc-federation/v0.19.0/buf.plugin.yaml b/plugins/community/mercari-grpc-federation/v0.19.0/buf.plugin.yaml new file mode 100644 index 000000000..e1fd9c8b6 --- /dev/null +++ b/plugins/community/mercari-grpc-federation/v0.19.0/buf.plugin.yaml @@ -0,0 +1,10 @@ +version: v1 +name: buf.build/community/mercari-grpc-federation +plugin_version: v0.19.0 +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/v0.19.0/LICENSE diff --git a/tests/testdata/buf.build/community/mercari-grpc-federation/v0.19.0/eliza/plugin.sum b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.19.0/eliza/plugin.sum new file mode 100644 index 000000000..7d9c0f31d --- /dev/null +++ b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.19.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= diff --git a/tests/testdata/buf.build/community/mercari-grpc-federation/v0.19.0/grpc-federation-v0.13.6/plugin.sum b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.19.0/grpc-federation-v0.13.6/plugin.sum new file mode 100644 index 000000000..4e66b762b --- /dev/null +++ b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.19.0/grpc-federation-v0.13.6/plugin.sum @@ -0,0 +1 @@ +h1:f+SZnf3MGT4NlD3TCxIpNMHUvso01+EFa6ZXwVjJhGM= diff --git a/tests/testdata/buf.build/community/mercari-grpc-federation/v0.19.0/petapis/plugin.sum b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.19.0/petapis/plugin.sum new file mode 100644 index 000000000..7d9c0f31d --- /dev/null +++ b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.19.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=