Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plugins/grpc/java/v1.84.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!pom.xml
29 changes: 29 additions & 0 deletions plugins/grpc/java/v1.84.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# syntax=docker/dockerfile:1.27
FROM debian:trixie-20260918@sha256:9cc080028c43b27d2074d63a5f9caf7166d731494965616c1a6d2827a004585c 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.84.1/protoc-gen-grpc-java-1.84.1-linux-${arch}.exe

FROM gcr.io/distroless/cc-debian13:latest@sha256:159783207c2cd44c2aa5715961d13c8612368ac9bd450f887e3f08fc8ea461e3 AS base

FROM maven:3.9.11-eclipse-temurin-21 AS maven-deps
COPY pom.xml /tmp/pom.xml
RUN cd /tmp && mvn -f pom.xml dependency:go-offline

FROM scratch
COPY --link --from=base / /
COPY --link --from=build --chmod=0755 --chown=root:root /build/protoc-gen-grpc-java .
COPY --from=maven-deps /root/.m2/repository /maven-repository
USER nobody
ENTRYPOINT [ "/protoc-gen-grpc-java" ]
30 changes: 30 additions & 0 deletions plugins/grpc/java/v1.84.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: v1
name: buf.build/grpc/java
plugin_version: v1.84.1
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:v36.2
output_languages:
- java
spdx_license_id: Apache-2.0
license_url: https://github.com/grpc/grpc-java/blob/v1.84.1/LICENSE
registry:
maven:
deps:
- io.grpc:grpc-core:1.84.1
- io.grpc:grpc-protobuf:1.84.1
- io.grpc:grpc-stub:1.84.1
# Add direct dependency on newer protobuf as gRPC is still on 3.25.8
- com.google.protobuf:protobuf-java:4.36.2
additional_runtimes:
- name: lite
deps:
- io.grpc:grpc-core:1.84.1
- io.grpc:grpc-protobuf-lite:1.84.1
- io.grpc:grpc-stub:1.84.1
# Add direct dependency on newer protobuf as gRPC is still on 3.25.8
- com.google.protobuf:protobuf-javalite:4.36.2
- build.buf:protobuf-javalite:4.36.2
opts: [lite]
44 changes: 44 additions & 0 deletions plugins/grpc/java/v1.84.1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>temp</groupId>
<artifactId>temp</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-core</artifactId>
<version>1.84.1</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.84.1</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.84.1</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>4.36.2</version>
</dependency>
<!-- lite -->
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf-lite</artifactId>
<version>1.84.1</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-javalite</artifactId>
<version>4.36.2</version>
</dependency>
<dependency>
<groupId>build.buf</groupId>
<artifactId>protobuf-javalite</artifactId>
<version>4.36.2</version>
</dependency>
</dependencies>
</project>
2 changes: 2 additions & 0 deletions plugins/pluginrpc/go/v0.6.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/pluginrpc/go/v0.6.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.27
FROM --platform=$BUILDPLATFORM golang:1.27.1-trixie@sha256:3b77fc618ec235a1ab412de7737f120dd507c57e8d87de4cbb7994fb94275ed5 AS build

ARG TARGETOS TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH

RUN --mount=type=cache,target=/go/pkg/mod \
go install -ldflags="-s -w" -trimpath pluginrpc.com/pluginrpc/cmd/protoc-gen-pluginrpc-go@v0.6.0 \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-pluginrpc-go /go/bin/protoc-gen-pluginrpc-go || true

FROM scratch
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-pluginrpc-go .
USER nobody
ENTRYPOINT [ "/protoc-gen-pluginrpc-go" ]
20 changes: 20 additions & 0 deletions plugins/pluginrpc/go/v0.6.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: v1
name: buf.build/pluginrpc/go
plugin_version: v0.6.0
source_url: https://github.com/pluginrpc/pluginrpc-go
integration_guide_url: https://github.com/pluginrpc/pluginrpc-go#usage
description: Plugin to generate Go stubs for Protobuf services, designed to work with PluginRPC, a Protobuf-based RPC framework for plugins.
deps:
- plugin: buf.build/protocolbuffers/go:v1.36.12
output_languages:
- go
registry:
go:
min_version: "1.26"
deps:
- module: pluginrpc.com/pluginrpc
version: v0.6.0
opts:
- paths=source_relative
spdx_license_id: Apache-2.0
license_url: https://github.com/pluginrpc/pluginrpc-go/blob/v0.6.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:abVqnZfKuwUcrLQyb+Lu2QqyVxyEnfIosZqrc8Lv/f0=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:LtrVq0lTE5qfsjeZj2BqKoPibzJpnzDsSY/jO/SrmoY=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:EXDz03HCgobKWj5woohM9JTyvVl1DUkCxcel28y3eo0=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:LEmWFkBek0dR1z0u4TbI84ooU3C2uhXXrNaifpRwuoc=
Loading