Skip to content

Commit

Permalink
Update grpc/java (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Jan 12, 2024
1 parent ccaa10f commit 2ff044e
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/grpc/java/v1.61.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
21 changes: 21 additions & 0 deletions plugins/grpc/java/v1.61.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# syntax=docker/dockerfile:1.4
FROM debian:bookworm-20240110 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.61.0/protoc-gen-grpc-java-1.61.0-linux-${arch}.exe

FROM gcr.io/distroless/base-debian12:latest@sha256:0a93daa199e7c6e387cea8cf03fac676146735caf6965d276d86ebd3a441f27e
COPY --from=build --link --chmod=0755 --chown=root:root /build/protoc-gen-grpc-java .
USER nobody
ENTRYPOINT [ "/protoc-gen-grpc-java" ]
25 changes: 25 additions & 0 deletions plugins/grpc/java/v1.61.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: v1
name: buf.build/grpc/java
plugin_version: v1.61.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.2
output_languages:
- java
spdx_license_id: Apache-2.0
license_url: https://github.com/grpc/grpc-java/blob/v1.61.0/LICENSE
registry:
maven:
deps:
- io.grpc:grpc-core:1.61.0
- io.grpc:grpc-protobuf:1.61.0
- io.grpc:grpc-stub:1.61.0
additional_runtimes:
- name: lite
deps:
- io.grpc:grpc-core:1.61.0
- io.grpc:grpc-protobuf-lite:1.61.0
- io.grpc:grpc-stub:1.61.0
opts: [lite]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:JxPHwkUrJ1JIJxbaqbGPI67w5SSW9FnMVGfdbY+U0Pc=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:YJj8SX8W/lFMpjTsPt/S/qCQBV0FjNMiPPiG2w0Ty2g=

0 comments on commit 2ff044e

Please sign in to comment.