Skip to content

Commit

Permalink
Add grpc-java v1.56.1 (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] committed Jul 3, 2023
1 parent 0622472 commit 3504032
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/grpc/java/v1.56.1/.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.56.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# syntax=docker/dockerfile:1.4
FROM debian:bookworm-20230612 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.56.1/protoc-gen-grpc-java-1.56.1-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" ]
24 changes: 24 additions & 0 deletions plugins/grpc/java/v1.56.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: v1
name: buf.build/grpc/java
plugin_version: v1.56.1
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:v23.2
output_languages:
- java
spdx_license_id: Apache-2.0
license_url: https://github.com/grpc/grpc-java/blob/v1.56.1/LICENSE
registry:
maven:
deps:
- io.grpc:grpc-core:1.56.1
- io.grpc:grpc-protobuf:1.56.1
- io.grpc:grpc-stub:1.56.1
additional_runtimes:
- name: lite
deps:
- io.grpc:grpc-core:1.56.1
- io.grpc:grpc-protobuf-lite:1.56.1
- io.grpc:grpc-stub:1.56.1
opts: [lite]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:ce9PMpglG/FmpuoPiAFvX5mCAOc9OVPl4+OhqR01hmg=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:+blDQrm1YXC4hNu81NJnQ2LzVCJkyCdCzbOnf9fXuJQ=

0 comments on commit 3504032

Please sign in to comment.