diff --git a/plugins/grpc/cpp/v1.68.0/.dockerignore b/plugins/grpc/cpp/v1.68.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/cpp/v1.68.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/cpp/v1.68.0/Dockerfile b/plugins/grpc/cpp/v1.68.0/Dockerfile new file mode 100644 index 000000000..733a51bb8 --- /dev/null +++ b/plugins/grpc/cpp/v1.68.0/Dockerfile @@ -0,0 +1,29 @@ +# syntax=docker/dockerfile:1.10 +FROM debian:bookworm-20241111 AS build + +ARG TARGETARCH +ARG BAZEL_OPTS="--host_jvm_args=-Djava.net.preferIPv4Stack=true" + +RUN apt-get update \ + && apt-get install -y curl git cmake build-essential autoconf clang libc++-dev libtool pkg-config unzip zip +RUN curl -fsSL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.23.0/bazelisk-linux-${TARGETARCH} \ + && chmod +x /usr/local/bin/bazelisk \ + && mkdir /build \ + && chown nobody:nogroup /build \ + && usermod --home /build nobody + +USER nobody +WORKDIR /build + +RUN git clone --depth 1 --branch v1.68.0 https://github.com/grpc/grpc +WORKDIR /build/grpc +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_plugin_support +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_cpp_plugin.stripped + +FROM gcr.io/distroless/cc-debian12:latest@sha256:2fb69596e692931f909c4c69ab09e50608959eaf8898c44fa64db741a23588b0 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build --chmod=0755 /build/grpc/bazel-bin/src/compiler/grpc_cpp_plugin . +USER nobody +ENTRYPOINT ["/grpc_cpp_plugin"] diff --git a/plugins/grpc/cpp/v1.68.0/buf.plugin.yaml b/plugins/grpc/cpp/v1.68.0/buf.plugin.yaml new file mode 100644 index 000000000..bb8c2cf54 --- /dev/null +++ b/plugins/grpc/cpp/v1.68.0/buf.plugin.yaml @@ -0,0 +1,13 @@ +version: v1 +name: buf.build/grpc/cpp +plugin_version: v1.68.0 +source_url: https://github.com/grpc/grpc +description: Generates C++ client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/protocolbuffers/cpp:v28.3 +output_languages: + - cpp +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc/blob/v1.68.0/LICENSE +registry: + cmake: {} diff --git a/plugins/grpc/csharp/v1.68.0/.dockerignore b/plugins/grpc/csharp/v1.68.0/.dockerignore new file mode 100644 index 000000000..b2a42ae1e --- /dev/null +++ b/plugins/grpc/csharp/v1.68.0/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!build.csproj diff --git a/plugins/grpc/csharp/v1.68.0/Dockerfile b/plugins/grpc/csharp/v1.68.0/Dockerfile new file mode 100644 index 000000000..da7c8df91 --- /dev/null +++ b/plugins/grpc/csharp/v1.68.0/Dockerfile @@ -0,0 +1,35 @@ +# syntax=docker/dockerfile:1.10 +FROM debian:bookworm-20241111 AS build + +ARG TARGETARCH +ARG BAZEL_OPTS="--host_jvm_args=-Djava.net.preferIPv4Stack=true" + +RUN apt-get update \ + && apt-get install -y curl git cmake build-essential autoconf clang libc++-dev libtool pkg-config unzip zip +RUN curl -fsSL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.23.0/bazelisk-linux-${TARGETARCH} \ + && chmod +x /usr/local/bin/bazelisk \ + && mkdir /build \ + && chown nobody:nogroup /build \ + && usermod --home /build nobody + +USER nobody +WORKDIR /build + +RUN git clone --depth 1 --branch v1.68.0 https://github.com/grpc/grpc +WORKDIR /build/grpc +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_plugin_support +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_csharp_plugin.stripped + +FROM mcr.microsoft.com/dotnet/sdk:8.0.404-bookworm-slim@sha256:f91f9181d68b5ed2c8dea199dbbd2f6d172e60bdc43f8a67878b1ad140cf8d6b AS dotnetrestore +WORKDIR /build +COPY --link ./build.csproj /build/build.csproj +RUN mkdir /nuget && dotnet restore --packages /nuget + +FROM gcr.io/distroless/cc-debian12:latest@sha256:2fb69596e692931f909c4c69ab09e50608959eaf8898c44fa64db741a23588b0 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=dotnetrestore /nuget /nuget +COPY --link --from=build --chmod=0755 /build/grpc/bazel-bin/src/compiler/grpc_csharp_plugin . +USER nobody +ENTRYPOINT ["/grpc_csharp_plugin"] diff --git a/plugins/grpc/csharp/v1.68.0/buf.plugin.yaml b/plugins/grpc/csharp/v1.68.0/buf.plugin.yaml new file mode 100644 index 000000000..6ae3071e6 --- /dev/null +++ b/plugins/grpc/csharp/v1.68.0/buf.plugin.yaml @@ -0,0 +1,20 @@ +version: v1 +name: buf.build/grpc/csharp +plugin_version: v1.68.0 +source_url: https://github.com/grpc/grpc +description: Generates C# client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/protocolbuffers/csharp:v28.3 +output_languages: + - csharp +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc/blob/v1.68.0/LICENSE +registry: + opts: + - base_namespace= + nuget: + target_frameworks: + - netstandard2.0 + deps: + - name: Grpc.Net.Common + version: 2.66.0 diff --git a/plugins/grpc/csharp/v1.68.0/build.csproj b/plugins/grpc/csharp/v1.68.0/build.csproj new file mode 100644 index 000000000..06fced75e --- /dev/null +++ b/plugins/grpc/csharp/v1.68.0/build.csproj @@ -0,0 +1,9 @@ + + + netstandard2.0 + + + + + + diff --git a/plugins/grpc/objc/v1.68.0/.dockerignore b/plugins/grpc/objc/v1.68.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/objc/v1.68.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/objc/v1.68.0/Dockerfile b/plugins/grpc/objc/v1.68.0/Dockerfile new file mode 100644 index 000000000..70c5c1304 --- /dev/null +++ b/plugins/grpc/objc/v1.68.0/Dockerfile @@ -0,0 +1,29 @@ +# syntax=docker/dockerfile:1.10 +FROM debian:bookworm-20241111 AS build + +ARG TARGETARCH +ARG BAZEL_OPTS="--host_jvm_args=-Djava.net.preferIPv4Stack=true" + +RUN apt-get update \ + && apt-get install -y curl git cmake build-essential autoconf clang libc++-dev libtool pkg-config unzip zip +RUN curl -fsSL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.23.0/bazelisk-linux-${TARGETARCH} \ + && chmod +x /usr/local/bin/bazelisk \ + && mkdir /build \ + && chown nobody:nogroup /build \ + && usermod --home /build nobody + +USER nobody +WORKDIR /build + +RUN git clone --depth 1 --branch v1.68.0 https://github.com/grpc/grpc +WORKDIR /build/grpc +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_plugin_support +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_objective_c_plugin.stripped + +FROM gcr.io/distroless/cc-debian12:latest@sha256:2fb69596e692931f909c4c69ab09e50608959eaf8898c44fa64db741a23588b0 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build --chmod=0755 /build/grpc/bazel-bin/src/compiler/grpc_objective_c_plugin . +USER nobody +ENTRYPOINT ["/grpc_objective_c_plugin"] diff --git a/plugins/grpc/objc/v1.68.0/buf.plugin.yaml b/plugins/grpc/objc/v1.68.0/buf.plugin.yaml new file mode 100644 index 000000000..1d9a24bcc --- /dev/null +++ b/plugins/grpc/objc/v1.68.0/buf.plugin.yaml @@ -0,0 +1,11 @@ +version: v1 +name: buf.build/grpc/objc +plugin_version: v1.68.0 +source_url: https://github.com/grpc/grpc +description: Generates Objective-C client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/protocolbuffers/objc:v28.3 +output_languages: + - objective_c +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc/blob/v1.68.0/LICENSE diff --git a/plugins/grpc/php/v1.68.0/.dockerignore b/plugins/grpc/php/v1.68.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/php/v1.68.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/php/v1.68.0/Dockerfile b/plugins/grpc/php/v1.68.0/Dockerfile new file mode 100644 index 000000000..54fd37c35 --- /dev/null +++ b/plugins/grpc/php/v1.68.0/Dockerfile @@ -0,0 +1,29 @@ +# syntax=docker/dockerfile:1.10 +FROM debian:bookworm-20241111 AS build + +ARG TARGETARCH +ARG BAZEL_OPTS="--host_jvm_args=-Djava.net.preferIPv4Stack=true" + +RUN apt-get update \ + && apt-get install -y curl git cmake build-essential autoconf clang libc++-dev libtool pkg-config unzip zip +RUN curl -fsSL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.23.0/bazelisk-linux-${TARGETARCH} \ + && chmod +x /usr/local/bin/bazelisk \ + && mkdir /build \ + && chown nobody:nogroup /build \ + && usermod --home /build nobody + +USER nobody +WORKDIR /build + +RUN git clone --depth 1 --branch v1.68.0 https://github.com/grpc/grpc +WORKDIR /build/grpc +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_plugin_support +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_php_plugin.stripped + +FROM gcr.io/distroless/cc-debian12:latest@sha256:2fb69596e692931f909c4c69ab09e50608959eaf8898c44fa64db741a23588b0 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build --chmod=0755 /build/grpc/bazel-bin/src/compiler/grpc_php_plugin . +USER nobody +ENTRYPOINT ["/grpc_php_plugin"] diff --git a/plugins/grpc/php/v1.68.0/buf.plugin.yaml b/plugins/grpc/php/v1.68.0/buf.plugin.yaml new file mode 100644 index 000000000..696270bf9 --- /dev/null +++ b/plugins/grpc/php/v1.68.0/buf.plugin.yaml @@ -0,0 +1,11 @@ +version: v1 +name: buf.build/grpc/php +plugin_version: v1.68.0 +source_url: https://github.com/grpc/grpc +description: Generates PHP client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/protocolbuffers/php:v28.3 +output_languages: + - php +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc/blob/v1.68.0/LICENSE diff --git a/plugins/grpc/python/v1.68.0/.dockerignore b/plugins/grpc/python/v1.68.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/python/v1.68.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/python/v1.68.0/Dockerfile b/plugins/grpc/python/v1.68.0/Dockerfile new file mode 100644 index 000000000..ead525a48 --- /dev/null +++ b/plugins/grpc/python/v1.68.0/Dockerfile @@ -0,0 +1,29 @@ +# syntax=docker/dockerfile:1.10 +FROM debian:bookworm-20241111 AS build + +ARG TARGETARCH +ARG BAZEL_OPTS="--host_jvm_args=-Djava.net.preferIPv4Stack=true" + +RUN apt-get update \ + && apt-get install -y curl git cmake build-essential autoconf clang libc++-dev libtool pkg-config unzip zip +RUN curl -fsSL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.23.0/bazelisk-linux-${TARGETARCH} \ + && chmod +x /usr/local/bin/bazelisk \ + && mkdir /build \ + && chown nobody:nogroup /build \ + && usermod --home /build nobody + +USER nobody +WORKDIR /build + +RUN git clone --depth 1 --branch v1.68.0 https://github.com/grpc/grpc +WORKDIR /build/grpc +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_plugin_support +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_python_plugin.stripped + +FROM gcr.io/distroless/cc-debian12:latest@sha256:2fb69596e692931f909c4c69ab09e50608959eaf8898c44fa64db741a23588b0 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build --chmod=0755 /build/grpc/bazel-bin/src/compiler/grpc_python_plugin . +USER nobody +ENTRYPOINT ["/grpc_python_plugin"] diff --git a/plugins/grpc/python/v1.68.0/buf.plugin.yaml b/plugins/grpc/python/v1.68.0/buf.plugin.yaml new file mode 100644 index 000000000..650f42e44 --- /dev/null +++ b/plugins/grpc/python/v1.68.0/buf.plugin.yaml @@ -0,0 +1,19 @@ +version: v1 +name: buf.build/grpc/python +plugin_version: v1.68.0 +source_url: https://github.com/grpc/grpc +description: Generates Python client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/protocolbuffers/python:v28.3 +output_languages: + - python +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc/blob/v1.68.0/LICENSE +registry: + python: + package_type: "runtime" + # https://github.com/grpc/grpc/blob/v1.68.0/src/python/grpcio/python_version.py#L19 + requires_python: ">=3.8" + deps: + # https://pypi.org/project/grpcio/ + - "grpcio" diff --git a/plugins/grpc/ruby/v1.68.0/.dockerignore b/plugins/grpc/ruby/v1.68.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/ruby/v1.68.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/ruby/v1.68.0/Dockerfile b/plugins/grpc/ruby/v1.68.0/Dockerfile new file mode 100644 index 000000000..f16f0027a --- /dev/null +++ b/plugins/grpc/ruby/v1.68.0/Dockerfile @@ -0,0 +1,29 @@ +# syntax=docker/dockerfile:1.10 +FROM debian:bookworm-20241111 AS build + +ARG TARGETARCH +ARG BAZEL_OPTS="--host_jvm_args=-Djava.net.preferIPv4Stack=true" + +RUN apt-get update \ + && apt-get install -y curl git cmake build-essential autoconf clang libc++-dev libtool pkg-config unzip zip +RUN curl -fsSL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.23.0/bazelisk-linux-${TARGETARCH} \ + && chmod +x /usr/local/bin/bazelisk \ + && mkdir /build \ + && chown nobody:nogroup /build \ + && usermod --home /build nobody + +USER nobody +WORKDIR /build + +RUN git clone --depth 1 --branch v1.68.0 https://github.com/grpc/grpc +WORKDIR /build/grpc +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_plugin_support +RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_ruby_plugin.stripped + +FROM gcr.io/distroless/cc-debian12:latest@sha256:2fb69596e692931f909c4c69ab09e50608959eaf8898c44fa64db741a23588b0 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build --chmod=0755 /build/grpc/bazel-bin/src/compiler/grpc_ruby_plugin . +USER nobody +ENTRYPOINT ["/grpc_ruby_plugin"] diff --git a/plugins/grpc/ruby/v1.68.0/buf.plugin.yaml b/plugins/grpc/ruby/v1.68.0/buf.plugin.yaml new file mode 100644 index 000000000..a72a28a91 --- /dev/null +++ b/plugins/grpc/ruby/v1.68.0/buf.plugin.yaml @@ -0,0 +1,11 @@ +version: v1 +name: buf.build/grpc/ruby +plugin_version: v1.68.0 +source_url: https://github.com/grpc/grpc +description: Generates Ruby client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/protocolbuffers/ruby:v28.3 +output_languages: + - ruby +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc/blob/v1.68.0/LICENSE diff --git a/tests/testdata/buf.build/grpc/cpp/v1.68.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc/cpp/v1.68.0/eliza/plugin.sum new file mode 100644 index 000000000..11d7bae9c --- /dev/null +++ b/tests/testdata/buf.build/grpc/cpp/v1.68.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:+TEOhXAY3kEbot+Yi4zMrlVqpygzcZGd8rNsYRm1K/c= diff --git a/tests/testdata/buf.build/grpc/cpp/v1.68.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc/cpp/v1.68.0/petapis/plugin.sum new file mode 100644 index 000000000..d1fd57a3e --- /dev/null +++ b/tests/testdata/buf.build/grpc/cpp/v1.68.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:QNggIsJlvPRCdsT8EEOrIhD3r6tTDrD6KOna3Fue4JE= diff --git a/tests/testdata/buf.build/grpc/csharp/v1.68.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc/csharp/v1.68.0/eliza/plugin.sum new file mode 100644 index 000000000..956a52d4b --- /dev/null +++ b/tests/testdata/buf.build/grpc/csharp/v1.68.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:4waUym8vI0ZEOq/TtnJRKRUPmHk4QL8zPXRwJhywvI0= diff --git a/tests/testdata/buf.build/grpc/csharp/v1.68.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc/csharp/v1.68.0/petapis/plugin.sum new file mode 100644 index 000000000..481fcb91a --- /dev/null +++ b/tests/testdata/buf.build/grpc/csharp/v1.68.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:kxBF97RNEQQiB/oEduqOgDZAxiXauyz+6hguxnCyP7I= diff --git a/tests/testdata/buf.build/grpc/objc/v1.68.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc/objc/v1.68.0/eliza/plugin.sum new file mode 100644 index 000000000..4a8ce4e1b --- /dev/null +++ b/tests/testdata/buf.build/grpc/objc/v1.68.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:xH0+e+UVLoU5KFcWSB5RfrGIxbyztCgFOquLQjg2/ps= diff --git a/tests/testdata/buf.build/grpc/objc/v1.68.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc/objc/v1.68.0/petapis/plugin.sum new file mode 100644 index 000000000..7a01cb23f --- /dev/null +++ b/tests/testdata/buf.build/grpc/objc/v1.68.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:P+OQBrxyTpehogGY3ZUlcIQ2pRq1iA9xpxjKXSN7u2E= diff --git a/tests/testdata/buf.build/grpc/php/v1.68.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc/php/v1.68.0/eliza/plugin.sum new file mode 100644 index 000000000..350cc30e3 --- /dev/null +++ b/tests/testdata/buf.build/grpc/php/v1.68.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:gCX+94Y87fKbGc7nBkZ5sqxwMypA12/rrOdVb9YaOkY= diff --git a/tests/testdata/buf.build/grpc/php/v1.68.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc/php/v1.68.0/petapis/plugin.sum new file mode 100644 index 000000000..2f2d65d31 --- /dev/null +++ b/tests/testdata/buf.build/grpc/php/v1.68.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:0h6mmZ/IPFQQD8Mq95Adum4ekVPiiZy05xjy3uqhI48= diff --git a/tests/testdata/buf.build/grpc/python/v1.68.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc/python/v1.68.0/eliza/plugin.sum new file mode 100644 index 000000000..0208ffc62 --- /dev/null +++ b/tests/testdata/buf.build/grpc/python/v1.68.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:tzSa6/8xdKOIrF60gIktE2W8FbyoVb782wtuyK8wYcY= diff --git a/tests/testdata/buf.build/grpc/python/v1.68.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc/python/v1.68.0/petapis/plugin.sum new file mode 100644 index 000000000..ca968829a --- /dev/null +++ b/tests/testdata/buf.build/grpc/python/v1.68.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:/bm8y8KHZ5OaVGv2GDuXQc1ADOO5BrN+KJXEJO4iMy0= diff --git a/tests/testdata/buf.build/grpc/ruby/v1.68.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc/ruby/v1.68.0/eliza/plugin.sum new file mode 100644 index 000000000..d04ee7f9b --- /dev/null +++ b/tests/testdata/buf.build/grpc/ruby/v1.68.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:y47G0y23L+GoClu0Kfl4ZgiV++TIrlmPeBxw0sKANjA= diff --git a/tests/testdata/buf.build/grpc/ruby/v1.68.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc/ruby/v1.68.0/petapis/plugin.sum new file mode 100644 index 000000000..7e7dee7f8 --- /dev/null +++ b/tests/testdata/buf.build/grpc/ruby/v1.68.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:jT5MBhIRa08sICxgjVvNAQgauC2GnD8G9OZ64P+N5gY=