diff --git a/plugins/grpc/java/v1.53.0/.dockerignore b/plugins/grpc/java/v1.53.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/java/v1.53.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/java/v1.53.0/Dockerfile b/plugins/grpc/java/v1.53.0/Dockerfile new file mode 100644 index 000000000..05de61993 --- /dev/null +++ b/plugins/grpc/java/v1.53.0/Dockerfile @@ -0,0 +1,21 @@ +# syntax=docker/dockerfile:1.4 +FROM debian:bullseye-20230208 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.53.0/protoc-gen-grpc-java-1.53.0-linux-${arch}.exe + +FROM gcr.io/distroless/base-debian11 +COPY --from=build --link --chmod=0755 --chown=root:root /build/protoc-gen-grpc-java . +USER nobody +ENTRYPOINT [ "/protoc-gen-grpc-java" ] diff --git a/plugins/grpc/java/v1.53.0/buf.plugin.yaml b/plugins/grpc/java/v1.53.0/buf.plugin.yaml new file mode 100644 index 000000000..cec268dd3 --- /dev/null +++ b/plugins/grpc/java/v1.53.0/buf.plugin.yaml @@ -0,0 +1,11 @@ +version: v1 +name: buf.build/grpc/java +plugin_version: v1.53.0 +source_url: https://github.com/grpc/grpc-java +description: Generates Java client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/protocolbuffers/java:v21.12 +output_languages: + - java +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc-java/blob/v1.53.0/LICENSE diff --git a/tests/testdata/buf.build/grpc/java/v1.53.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc/java/v1.53.0/eliza/plugin.sum new file mode 100644 index 000000000..5249722c7 --- /dev/null +++ b/tests/testdata/buf.build/grpc/java/v1.53.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:x4SmOqGvhCF6N9X86v+io1nM3iqEq1MyVrCMM3DiHzU= diff --git a/tests/testdata/buf.build/grpc/java/v1.53.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc/java/v1.53.0/petapis/plugin.sum new file mode 100644 index 000000000..4cca3538d --- /dev/null +++ b/tests/testdata/buf.build/grpc/java/v1.53.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:tTrIqBRCHtt1QS9ul/fCKksPq7C6e+kEDCIHeUJ1Fos=