From 369e235d430aa6ea81ed531da57b94bbfa2b80ff Mon Sep 17 00:00:00 2001 From: mfridman <6278244+mfridman@users.noreply.github.com> Date: Mon, 23 Sep 2024 14:07:22 +0000 Subject: [PATCH] detected new plugin versions --- plugins/grpc/java/v1.68.0/.dockerignore | 2 ++ plugins/grpc/java/v1.68.0/Dockerfile | 24 ++++++++++++++++++ plugins/grpc/java/v1.68.0/buf.plugin.yaml | 25 +++++++++++++++++++ .../grpc/java/v1.68.0/eliza/plugin.sum | 1 + .../grpc/java/v1.68.0/petapis/plugin.sum | 1 + 5 files changed, 53 insertions(+) create mode 100644 plugins/grpc/java/v1.68.0/.dockerignore create mode 100644 plugins/grpc/java/v1.68.0/Dockerfile create mode 100644 plugins/grpc/java/v1.68.0/buf.plugin.yaml create mode 100644 tests/testdata/buf.build/grpc/java/v1.68.0/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/grpc/java/v1.68.0/petapis/plugin.sum diff --git a/plugins/grpc/java/v1.68.0/.dockerignore b/plugins/grpc/java/v1.68.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/java/v1.68.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/java/v1.68.0/Dockerfile b/plugins/grpc/java/v1.68.0/Dockerfile new file mode 100644 index 000000000..e14b74335 --- /dev/null +++ b/plugins/grpc/java/v1.68.0/Dockerfile @@ -0,0 +1,24 @@ +# syntax=docker/dockerfile:1.10 +FROM debian:bookworm-20240904 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.68.0/protoc-gen-grpc-java-1.68.0-linux-${arch}.exe + +FROM gcr.io/distroless/cc-debian12:latest@sha256:682ff941956437ab1fc0f6fe969b18ede078839cc4f4fbc156ab546d2a9055fd 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" ] diff --git a/plugins/grpc/java/v1.68.0/buf.plugin.yaml b/plugins/grpc/java/v1.68.0/buf.plugin.yaml new file mode 100644 index 000000000..03b8359c2 --- /dev/null +++ b/plugins/grpc/java/v1.68.0/buf.plugin.yaml @@ -0,0 +1,25 @@ +version: v1 +name: buf.build/grpc/java +plugin_version: v1.68.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.68.0/LICENSE +registry: + maven: + deps: + - io.grpc:grpc-core:1.68.0 + - io.grpc:grpc-protobuf:1.68.0 + - io.grpc:grpc-stub:1.68.0 + additional_runtimes: + - name: lite + deps: + - io.grpc:grpc-core:1.68.0 + - io.grpc:grpc-protobuf-lite:1.68.0 + - io.grpc:grpc-stub:1.68.0 + opts: [lite] diff --git a/tests/testdata/buf.build/grpc/java/v1.68.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc/java/v1.68.0/eliza/plugin.sum new file mode 100644 index 000000000..7783054b3 --- /dev/null +++ b/tests/testdata/buf.build/grpc/java/v1.68.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:AcR2iSRqpNqtA3IWv5YIB6+uUPQZ3REaGOXQo57tnak= diff --git a/tests/testdata/buf.build/grpc/java/v1.68.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc/java/v1.68.0/petapis/plugin.sum new file mode 100644 index 000000000..a6e987411 --- /dev/null +++ b/tests/testdata/buf.build/grpc/java/v1.68.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:3KHEWU7RhcgmcB1bX816dHjVPFdNc+lO2MeKMH9syDI=