-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2f8807
commit a6d7f75
Showing
5 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# syntax=docker/dockerfile:1.12 | ||
FROM debian:bookworm-20241202 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.69.0/protoc-gen-grpc-java-1.69.0-linux-${arch}.exe | ||
|
||
FROM gcr.io/distroless/cc-debian12:latest@sha256:f913198471738d9eedcd00c0ca812bf663e8959eebff3a3cbadb027ed9da0c38 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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: v1 | ||
name: buf.build/grpc/java | ||
plugin_version: v1.69.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:v29.1 | ||
output_languages: | ||
- java | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/grpc/grpc-java/blob/v1.69.0/LICENSE | ||
registry: | ||
maven: | ||
deps: | ||
- io.grpc:grpc-core:1.69.0 | ||
- io.grpc:grpc-protobuf:1.69.0 | ||
- io.grpc:grpc-stub:1.69.0 | ||
# Add direct dependency on newer protobuf as gRPC is still on 3.25.5 | ||
- com.google.protobuf:protobuf-java:4.29.1 | ||
additional_runtimes: | ||
- name: lite | ||
deps: | ||
- io.grpc:grpc-core:1.69.0 | ||
- io.grpc:grpc-protobuf-lite:1.69.0 | ||
- io.grpc:grpc-stub:1.69.0 | ||
# Add direct dependency on newer protobuf as gRPC is still on 3.25.5 | ||
- com.google.protobuf:protobuf-javalite:4.29.1 | ||
- build.buf:protobuf-javalite:4.29.1 | ||
opts: [lite] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:F8g9ben2Af++Xw7ieXnNgyXoJwpGhpNkzn/GuEXtU1I= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:fIr+vPWKt8ReThfN66YT8N0/2p/Gt6THbFRlVXmMrrE= |