Skip to content

Commit 805dfad

Browse files
Update sudorandom-connect-openapi and grpc (#2733)
### sudorandom-connect-openapi - v0.27.1 → v0.27.2 ### grpc - cpp: v1.83.1 → v1.84.0 - csharp: v1.83.1 → v1.84.0 - objc: v1.83.1 → v1.84.0 - php: v1.83.1 → v1.84.0 - python: v1.83.1 → v1.84.0 - ruby: v1.83.1 → v1.84.0 --------- Co-authored-by: app-token-plugins[bot] <app-token-plugins[bot]@users.noreply.github.com> Co-authored-by: Philip K. Warren <pkwarren@users.noreply.github.com>
1 parent 977b0b5 commit 805dfad

36 files changed

Lines changed: 325 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# syntax=docker/dockerfile:1.26
2+
FROM --platform=$BUILDPLATFORM golang:1.27.1-trixie@sha256:9baa6b4187bbb98d240372a8a235ac0bb6b5ddd52bba1431dc2f7c0705862728 AS build
3+
4+
ARG TARGETOS TARGETARCH
5+
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
6+
7+
RUN --mount=type=cache,target=/go/pkg/mod \
8+
go install -ldflags "-s -w" -tags remote_plugin -trimpath github.com/sudorandom/protoc-gen-connect-openapi@v0.27.2 \
9+
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-openapi /go/bin/protoc-gen-connect-openapi || true
10+
11+
FROM scratch
12+
COPY --from=build --link /etc/passwd /etc/passwd
13+
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-connect-openapi .
14+
USER nobody
15+
ENTRYPOINT [ "/protoc-gen-connect-openapi" ]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: v1
2+
name: buf.build/community/sudorandom-connect-openapi
3+
plugin_version: v0.27.2
4+
source_url: https://github.com/sudorandom/protoc-gen-connect-openapi
5+
description: Plugin for generating OpenAPIv3 from Protobufs matching the Connect RPC interface.
6+
spdx_license_id: MIT
7+
license_url: https://github.com/sudorandom/protoc-gen-connect-openapi/blob/v0.27.2/LICENSE
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# syntax=docker/dockerfile:1.26
2+
FROM debian:trixie-20260824@sha256:f324c7ff54321e8d9c588493a20244965938ce0aa50bbd1022d38010e9ffc4b1 AS build
3+
4+
ARG TARGETARCH
5+
ARG BAZEL_OPTS="--host_jvm_args=-Djava.net.preferIPv4Stack=true"
6+
7+
RUN apt-get update \
8+
&& apt-get install -y curl git cmake build-essential autoconf clang libc++-dev libtool pkg-config unzip zip
9+
RUN curl -fsSL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.26.0/bazelisk-linux-${TARGETARCH} \
10+
&& chmod +x /usr/local/bin/bazelisk \
11+
&& mkdir /build \
12+
&& chown nobody:nogroup /build \
13+
&& usermod --home /build nobody
14+
15+
USER nobody
16+
WORKDIR /build
17+
18+
RUN git clone --depth 1 --branch v1.84.0 https://github.com/grpc/grpc
19+
WORKDIR /build/grpc
20+
RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_plugin_support
21+
RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_cpp_plugin
22+
23+
FROM gcr.io/distroless/cc-debian13:latest@sha256:4594d59540d1948417f6ca2829ddd9294493a7c68b7528f4dd459de7f203a750 AS base
24+
25+
FROM scratch
26+
COPY --link --from=base / /
27+
COPY --link --from=build --chmod=0755 /build/grpc/bazel-bin/src/compiler/grpc_cpp_plugin_binary .
28+
USER nobody
29+
ENTRYPOINT ["/grpc_cpp_plugin_binary"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: v1
2+
name: buf.build/grpc/cpp
3+
plugin_version: v1.84.0
4+
source_url: https://github.com/grpc/grpc
5+
description: Generates C++ client and server stubs for the gRPC framework.
6+
deps:
7+
- plugin: buf.build/protocolbuffers/cpp:v36.1
8+
output_languages:
9+
- cpp
10+
spdx_license_id: Apache-2.0
11+
license_url: https://github.com/grpc/grpc/blob/v1.84.0/LICENSE
12+
registry:
13+
cmake: {}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!Dockerfile
3+
!build.csproj
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# syntax=docker/dockerfile:1.26
2+
FROM debian:trixie-20260824@sha256:f324c7ff54321e8d9c588493a20244965938ce0aa50bbd1022d38010e9ffc4b1 AS build
3+
4+
ARG TARGETARCH
5+
ARG BAZEL_OPTS="--host_jvm_args=-Djava.net.preferIPv4Stack=true"
6+
7+
RUN apt-get update \
8+
&& apt-get install -y curl git cmake build-essential autoconf clang libc++-dev libtool pkg-config unzip zip
9+
RUN curl -fsSL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.26.0/bazelisk-linux-${TARGETARCH} \
10+
&& chmod +x /usr/local/bin/bazelisk \
11+
&& mkdir /build \
12+
&& chown nobody:nogroup /build \
13+
&& usermod --home /build nobody
14+
15+
USER nobody
16+
WORKDIR /build
17+
18+
RUN git clone --depth 1 --branch v1.84.0 https://github.com/grpc/grpc
19+
WORKDIR /build/grpc
20+
RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_plugin_support
21+
RUN bazelisk ${BAZEL_OPTS} build //src/compiler:grpc_csharp_plugin
22+
23+
FROM mcr.microsoft.com/dotnet/sdk:8.0.425-bookworm-slim@sha256:5ef85cc12cb25be6ec319a7392d1e9efd53c3bc8abb971c53d8058a473f09053 AS dotnetrestore
24+
WORKDIR /build
25+
COPY --link ./build.csproj /build/build.csproj
26+
RUN mkdir /nuget && dotnet restore --packages /nuget
27+
28+
FROM gcr.io/distroless/cc-debian13:latest@sha256:4594d59540d1948417f6ca2829ddd9294493a7c68b7528f4dd459de7f203a750 AS base
29+
30+
FROM scratch
31+
COPY --link --from=base / /
32+
COPY --link --from=dotnetrestore /nuget /nuget
33+
COPY --link --from=build --chmod=0755 /build/grpc/bazel-bin/src/compiler/grpc_csharp_plugin_binary .
34+
USER nobody
35+
ENTRYPOINT ["/grpc_csharp_plugin_binary"]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: v1
2+
name: buf.build/grpc/csharp
3+
plugin_version: v1.84.0
4+
source_url: https://github.com/grpc/grpc
5+
description: Generates C# client and server stubs for the gRPC framework.
6+
deps:
7+
- plugin: buf.build/protocolbuffers/csharp:v36.1
8+
output_languages:
9+
- csharp
10+
spdx_license_id: Apache-2.0
11+
license_url: https://github.com/grpc/grpc/blob/v1.84.0/LICENSE
12+
registry:
13+
opts:
14+
- base_namespace=
15+
nuget:
16+
target_frameworks:
17+
- netstandard2.0
18+
deps:
19+
- name: Grpc.Net.Common
20+
version: 2.83.0
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>netstandard2.0</TargetFramework>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageReference Include="Google.Protobuf" Version="3.36.1" />
7+
<PackageReference Include="Grpc.Net.Common" Version="2.83.0" />
8+
</ItemGroup>
9+
</Project>

0 commit comments

Comments
 (0)