diff --git a/plugins/community/mercari-grpc-federation/v0.18.0/.dockerignore b/plugins/community/mercari-grpc-federation/v0.18.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/mercari-grpc-federation/v0.18.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/mercari-grpc-federation/v0.18.0/Dockerfile b/plugins/community/mercari-grpc-federation/v0.18.0/Dockerfile new file mode 100644 index 000000000..b17361276 --- /dev/null +++ b/plugins/community/mercari-grpc-federation/v0.18.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.18.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.18.0/buf.plugin.yaml b/plugins/community/mercari-grpc-federation/v0.18.0/buf.plugin.yaml new file mode 100644 index 000000000..f17097e74 --- /dev/null +++ b/plugins/community/mercari-grpc-federation/v0.18.0/buf.plugin.yaml @@ -0,0 +1,10 @@ +version: v1 +name: buf.build/community/mercari-grpc-federation +plugin_version: v0.18.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.18.0/LICENSE diff --git a/plugins/protocolbuffers/go/v1.34.2/.dockerignore b/plugins/protocolbuffers/go/v1.34.2/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/protocolbuffers/go/v1.34.2/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/protocolbuffers/go/v1.34.2/Dockerfile b/plugins/protocolbuffers/go/v1.34.2/Dockerfile new file mode 100644 index 000000000..e7f5b683d --- /dev/null +++ b/plugins/protocolbuffers/go/v1.34.2/Dockerfile @@ -0,0 +1,15 @@ +# 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 google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.2 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-go /go/bin/protoc-gen-go || true + +FROM scratch +COPY --from=build --link /etc/passwd /etc/passwd +COPY --from=build --link --chown=root:root /go/bin/protoc-gen-go . +USER nobody +ENTRYPOINT [ "/protoc-gen-go" ] diff --git a/plugins/protocolbuffers/go/v1.34.2/buf.plugin.yaml b/plugins/protocolbuffers/go/v1.34.2/buf.plugin.yaml new file mode 100644 index 000000000..2adb904f7 --- /dev/null +++ b/plugins/protocolbuffers/go/v1.34.2/buf.plugin.yaml @@ -0,0 +1,17 @@ +version: v1 +name: buf.build/protocolbuffers/go +plugin_version: v1.34.2 +source_url: https://github.com/protocolbuffers/protobuf-go +integration_guide_url: https://protobuf.dev/getting-started/gotutorial +description: Base types for Go. Generates message and enum types. +output_languages: + - go +registry: + go: + deps: + - module: google.golang.org/protobuf + version: v1.34.2 + opts: + - paths=source_relative +spdx_license_id: BSD-3-Clause +license_url: https://github.com/protocolbuffers/protobuf-go/blob/v1.34.2/LICENSE diff --git a/tests/testdata/buf.build/community/mercari-grpc-federation/v0.18.0/eliza/plugin.sum b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.18.0/eliza/plugin.sum new file mode 100644 index 000000000..7d9c0f31d --- /dev/null +++ b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.18.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= diff --git a/tests/testdata/buf.build/community/mercari-grpc-federation/v0.18.0/grpc-federation-v0.13.6/plugin.sum b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.18.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.18.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.18.0/petapis/plugin.sum b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.18.0/petapis/plugin.sum new file mode 100644 index 000000000..7d9c0f31d --- /dev/null +++ b/tests/testdata/buf.build/community/mercari-grpc-federation/v0.18.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= diff --git a/tests/testdata/buf.build/protocolbuffers/go/v1.34.2/eliza/plugin.sum b/tests/testdata/buf.build/protocolbuffers/go/v1.34.2/eliza/plugin.sum new file mode 100644 index 000000000..6fa923da1 --- /dev/null +++ b/tests/testdata/buf.build/protocolbuffers/go/v1.34.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:463uIu1OfLmpaAMyZhS+pb9IEcwxJE2YETuwuOHQyIw= diff --git a/tests/testdata/buf.build/protocolbuffers/go/v1.34.2/petapis/plugin.sum b/tests/testdata/buf.build/protocolbuffers/go/v1.34.2/petapis/plugin.sum new file mode 100644 index 000000000..02824b402 --- /dev/null +++ b/tests/testdata/buf.build/protocolbuffers/go/v1.34.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:EFC0oNI9qvJwUXYeKR/senyGqOrPN4nTCSpJWOQW4Ek=