Skip to content

Commit 3e54979

Browse files
Update grpc/node (#2124)
1 parent acc24bc commit 3e54979

File tree

7 files changed

+308
-0
lines changed

7 files changed

+308
-0
lines changed
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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# syntax=docker/dockerfile:1.19
2+
FROM node:24.11.1-bookworm AS build
3+
4+
ARG TARGETARCH
5+
6+
WORKDIR /build
7+
COPY --link package* .
8+
RUN npm ci \
9+
&& cp /build/node_modules/grpc-tools/bin/grpc_node_plugin /build
10+
11+
FROM gcr.io/distroless/cc-debian12:latest@sha256:0000f9dc0290f8eaf0ecceafbc35e803649087ea7879570fbc78372df7ac649b AS base
12+
13+
FROM scratch
14+
COPY --link --from=base / /
15+
COPY --link --from=build --chmod=0755 /build/grpc_node_plugin .
16+
USER nobody
17+
ENTRYPOINT [ "/grpc_node_plugin" ]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: v1
2+
name: buf.build/grpc/node
3+
plugin_version: v1.13.1
4+
source_url: https://github.com/grpc/grpc-node
5+
integration_guide_url: https://grpc.io/docs/languages/node/quickstart
6+
description: Generates Node client and server stubs for the gRPC framework.
7+
deps:
8+
- plugin: buf.build/protocolbuffers/js:v4.0.1
9+
output_languages:
10+
- javascript
11+
registry:
12+
npm:
13+
import_style: commonjs
14+
deps:
15+
- package: '@grpc/grpc-js'
16+
version: '^1.14.1'
17+
- package: 'google-protobuf'
18+
version: '^4.0.1'
19+
opts:
20+
- grpc_js
21+
spdx_license_id: Apache-2.0
22+
license_url: 'https://github.com/grpc/grpc-node/blob/grpc-tools%401.13.1/LICENSE'

plugins/grpc/node/v1.13.1/package-lock.json

Lines changed: 257 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-grpc-node",
3+
"version": "1.0.0",
4+
"dependencies": {
5+
"grpc-tools": "1.13.1"
6+
}
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:sYecv9N0NEvgUPJ5l7oF6SWwq4BH232sd0LLY0bnL84=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:qSry6DLxAAtWa0rR8PWMVdJCJl1BTwGmyES4pSS1Bbg=

0 commit comments

Comments
 (0)