Skip to content

Commit

Permalink
Add grpc-node v1.12.4 and ts-proto v1.139.0 (#345)
Browse files Browse the repository at this point in the history
New plugin versions found. Please review.

---------

Co-authored-by: pkwarren <[email protected]>
Co-authored-by: Philip K. Warren <[email protected]>
  • Loading branch information
3 people authored Jan 31, 2023
1 parent 071aa2c commit 392990b
Show file tree
Hide file tree
Showing 14 changed files with 1,442 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.139.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!package*.json
11 changes: 11 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.139.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.4
FROM node:18.13.0-alpine3.17 AS build
WORKDIR /app
COPY --link package*.json .
RUN npm ci
RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/ts-proto/protoc-gen-ts_proto

FROM gcr.io/distroless/nodejs18-debian11
COPY --link --from=build /app /app
USER nobody
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-ts_proto" ]
9 changes: 9 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.139.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: v1
name: buf.build/community/stephenh-ts-proto
plugin_version: v1.139.0
source_url: https://github.com/stephenh/ts-proto
description: An idiomatic protobuf generator for TypeScript.
output_languages:
- typescript
spdx_license_id: Apache-2.0
license_url: https://github.com/stephenh/ts-proto/blob/v1.139.0/LICENSE
346 changes: 346 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.139.0/package-lock.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.139.0/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "plugins-stephenh-ts-proto",
"version": "1.0.0",
"dependencies": {
"ts-proto": "1.139.0"
}
}
3 changes: 3 additions & 0 deletions plugins/grpc/node/v1.12.4/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!package*.json
14 changes: 14 additions & 0 deletions plugins/grpc/node/v1.12.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# syntax=docker/dockerfile:1.4
FROM node:18.13.0-bullseye AS build

ARG TARGETARCH

WORKDIR /build
COPY --link package* .
RUN npm ci \
&& cp /build/node_modules/grpc-tools/bin/grpc_node_plugin /build

FROM gcr.io/distroless/cc-debian11
COPY --from=build --link --chmod=0755 --chown=root:root /build/grpc_node_plugin .
USER nobody
ENTRYPOINT [ "/grpc_node_plugin" ]
21 changes: 21 additions & 0 deletions plugins/grpc/node/v1.12.4/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: v1
name: buf.build/grpc/node
plugin_version: v1.12.4
source_url: https://github.com/grpc/grpc-node
description: Generates Node client and server stubs for the gRPC framework.
deps:
- plugin: buf.build/protocolbuffers/js:v3.21.2
output_languages:
- javascript
registry:
npm:
import_style: commonjs
deps:
- package: '@grpc/grpc-js'
version: '^1.8.0'
- package: 'google-protobuf'
version: '^3.21.2'
opts:
- grpc_js
spdx_license_id: Apache-2.0
license_url: 'https://github.com/grpc/grpc-node/blob/grpc-tools%401.12.4/LICENSE'
Loading

0 comments on commit 392990b

Please sign in to comment.