Skip to content

Commit 80fe0ad

Browse files
Update grpc/java (#2054)
1 parent 55739b0 commit 80fe0ad

File tree

5 files changed

+58
-0
lines changed

5 files changed

+58
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# syntax=docker/dockerfile:1.18
2+
FROM debian:bookworm-20250929 AS build
3+
4+
ARG TARGETARCH
5+
6+
WORKDIR /build
7+
RUN apt-get update \
8+
&& apt-get install -y curl
9+
RUN arch=${TARGETARCH}; \
10+
if [ "${arch}" = "arm64" ]; then\
11+
arch="aarch_64"; \
12+
elif [ "${arch}" = "amd64" ]; then\
13+
arch="x86_64"; \
14+
fi; \
15+
echo "${arch}"; \
16+
curl -fsSL -o protoc-gen-grpc-java https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.76.0/protoc-gen-grpc-java-1.76.0-linux-${arch}.exe
17+
18+
FROM gcr.io/distroless/cc-debian12:latest@sha256:14f6999db515330e5d00537bd457289a8968b6456e9197c7a28101ee63a7522f AS base
19+
20+
FROM scratch
21+
COPY --link --from=base / /
22+
COPY --link --from=build --chmod=0755 --chown=root:root /build/protoc-gen-grpc-java .
23+
USER nobody
24+
ENTRYPOINT [ "/protoc-gen-grpc-java" ]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: v1
2+
name: buf.build/grpc/java
3+
plugin_version: v1.76.0
4+
source_url: https://github.com/grpc/grpc-java
5+
integration_guide_url: https://grpc.io/docs/languages/java/quickstart
6+
description: Generates Java client and server stubs for the gRPC framework.
7+
deps:
8+
- plugin: buf.build/protocolbuffers/java:v32.1
9+
output_languages:
10+
- java
11+
spdx_license_id: Apache-2.0
12+
license_url: https://github.com/grpc/grpc-java/blob/v1.76.0/LICENSE
13+
registry:
14+
maven:
15+
deps:
16+
- io.grpc:grpc-core:1.76.0
17+
- io.grpc:grpc-protobuf:1.76.0
18+
- io.grpc:grpc-stub:1.76.0
19+
# Add direct dependency on newer protobuf as gRPC is still on 3.25.8
20+
- com.google.protobuf:protobuf-java:4.32.1
21+
additional_runtimes:
22+
- name: lite
23+
deps:
24+
- io.grpc:grpc-core:1.76.0
25+
- io.grpc:grpc-protobuf-lite:1.76.0
26+
- io.grpc:grpc-stub:1.76.0
27+
# Add direct dependency on newer protobuf as gRPC is still on 3.25.8
28+
- com.google.protobuf:protobuf-javalite:4.32.1
29+
- build.buf:protobuf-javalite:4.32.1
30+
opts: [lite]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:abVqnZfKuwUcrLQyb+Lu2QqyVxyEnfIosZqrc8Lv/f0=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:LtrVq0lTE5qfsjeZj2BqKoPibzJpnzDsSY/jO/SrmoY=

0 commit comments

Comments
 (0)