Skip to content

Commit 2de834f

Browse files
Update stephenh-ts-proto and grpc (#2364)
### stephenh-ts-proto - v2.11.4 → v2.11.6 ### grpc - cpp: v1.78.1 → v1.80.0 - csharp: v1.78.1 → v1.80.0 - objc: v1.78.1 → v1.80.0 - php: v1.78.1 → v1.80.0 - python: v1.78.1 → v1.80.0 - ruby: v1.78.1 → v1.80.0
1 parent f3e4b11 commit 2de834f

38 files changed

Lines changed: 427 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!Dockerfile
3+
!package*.json
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# syntax=docker/dockerfile:1.22
2+
FROM node:24.14.1-trixie@sha256:dcc3e56b82427ddc3b91ca2b18499450d670fc58251d944e5107d8ef2899f841 AS build
3+
WORKDIR /app
4+
COPY --link package*.json .
5+
RUN npm ci
6+
RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/ts-proto/protoc-gen-ts_proto \
7+
&& rm -f /app/node_modules/dprint-node/*darwin*.node /app/node_modules/dprint-node/*win32*.node
8+
9+
FROM gcr.io/distroless/nodejs24-debian13:latest@sha256:ea392bfe90af3b558c7b924647a403c4ac37c7e8e9917a86d0830d99732315e2 AS node
10+
11+
FROM gcr.io/distroless/cc-debian13:latest@sha256:e1cc90d06703f5dc30ae869fbfce78fce688f21a97efecd226375233a882e62f AS base
12+
13+
FROM scratch
14+
COPY --link --from=base / /
15+
COPY --link --from=node --chmod=0755 /nodejs/bin/node /nodejs/bin/node
16+
COPY --link --from=build /app /app
17+
USER nobody
18+
ENTRYPOINT ["/nodejs/bin/node"]
19+
CMD [ "/app/node_modules/.bin/protoc-gen-ts_proto" ]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: v1
2+
name: buf.build/community/stephenh-ts-proto
3+
plugin_version: v2.11.6
4+
source_url: https://github.com/stephenh/ts-proto
5+
integration_guide_url: https://github.com/stephenh/ts-proto#quickstart
6+
description: An idiomatic protobuf generator for TypeScript.
7+
output_languages:
8+
- typescript
9+
spdx_license_id: Apache-2.0
10+
license_url: https://github.com/stephenh/ts-proto/blob/v2.11.6/LICENSE

plugins/community/stephenh-ts-proto/v2.11.6/package-lock.json

Lines changed: 87 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "plugins-stephenh-ts-proto",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"ts-proto": "2.11.6"
6+
}
7+
}
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.22
2+
FROM debian:trixie-20260316@sha256:55a15a112b42be10bfc8092fcc40b6748dc236f7ef46a358d9392b339e9d60e8 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.80.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:e1cc90d06703f5dc30ae869fbfce78fce688f21a97efecd226375233a882e62f 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.80.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:v34.1
8+
output_languages:
9+
- cpp
10+
spdx_license_id: Apache-2.0
11+
license_url: https://github.com/grpc/grpc/blob/v1.80.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.22
2+
FROM debian:trixie-20260316@sha256:55a15a112b42be10bfc8092fcc40b6748dc236f7ef46a358d9392b339e9d60e8 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.80.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.419-bookworm-slim@sha256:a9330090b730c2abde8f3f43b3d1e24e4b8cba028de7bab1a7fdcd50cb7a3b7e 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:e1cc90d06703f5dc30ae869fbfce78fce688f21a97efecd226375233a882e62f 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"]

0 commit comments

Comments
 (0)