Skip to content

Commit

Permalink
Update mercari-grpc-federation and grpc/node (#1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Feb 7, 2025
1 parent 076d0c8 commit cfc32c8
Show file tree
Hide file tree
Showing 13 changed files with 716 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
16 changes: 16 additions & 0 deletions plugins/community/mercari-grpc-federation/v1.9.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# syntax=docker/dockerfile:1.12
FROM --platform=$BUILDPLATFORM golang:1.23.6-bookworm 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 github.com/mercari/grpc-federation/cmd/protoc-gen-grpc-federation@v1.9.1 \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-grpc-federation /go/bin/protoc-gen-grpc-federation || 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-grpc-federation .
ENV GOROOT /
USER nobody
ENTRYPOINT [ "/protoc-gen-grpc-federation" ]
10 changes: 10 additions & 0 deletions plugins/community/mercari-grpc-federation/v1.9.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
name: buf.build/community/mercari-grpc-federation
plugin_version: v1.9.1
source_url: https://github.com/mercari/grpc-federation
integration_guide_url: https://github.com/mercari/grpc-federation/blob/main/docs/getting_started.md
description: Generates a gRPC server by writing a custom option in Protocol Buffers
output_languages:
- go
spdx_license_id: MIT
license_url: https://github.com/mercari/grpc-federation/blob/v1.9.1/LICENSE
3 changes: 3 additions & 0 deletions plugins/grpc/node/v1.13.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!package*.json
17 changes: 17 additions & 0 deletions plugins/grpc/node/v1.13.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1.12
FROM node:22.13.1-bookworm 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-debian12:latest@sha256:b7550f0b15838de14c564337eef2b804ba593ae55d81ca855421bd52f19bb480 AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=build --chmod=0755 /build/grpc_node_plugin .
USER nobody
ENTRYPOINT [ "/grpc_node_plugin" ]
22 changes: 22 additions & 0 deletions plugins/grpc/node/v1.13.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: v1
name: buf.build/grpc/node
plugin_version: v1.13.0
source_url: https://github.com/grpc/grpc-node
integration_guide_url: https://grpc.io/docs/languages/node/quickstart
description: Generates Node client and server stubs for the gRPC framework.
deps:
- plugin: buf.build/protocolbuffers/js:v3.21.4
output_languages:
- javascript
registry:
npm:
import_style: commonjs
deps:
- package: '@grpc/grpc-js'
version: '^1.12.6'
- package: 'google-protobuf'
version: '^3.21.4'
opts:
- grpc_js
spdx_license_id: Apache-2.0
license_url: 'https://github.com/grpc/grpc-node/blob/grpc-tools%401.13.0/LICENSE'
Loading

0 comments on commit cfc32c8

Please sign in to comment.