-
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
adabf5f
commit d8764dc
Showing
5 changed files
with
36 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,21 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM debian:bullseye-20230109 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.52.1/protoc-gen-grpc-java-1.52.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" ] |
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,11 @@ | ||
version: v1 | ||
name: buf.build/grpc/java | ||
plugin_version: v1.52.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:v21.12 | ||
output_languages: | ||
- java | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/grpc/grpc-java/blob/v1.52.1/LICENSE |
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:67Zrugkn+zho/n6752HNNZSxciQOJXrq3t9wKCt1ox8= |
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:083pZe80n00O/8T3Ty/FF5qdEsZbfVpK7FhsP2bKcp8= |