File tree Expand file tree Collapse file tree 13 files changed +716
-0
lines changed
Expand file tree Collapse file tree 13 files changed +716
-0
lines changed Original file line number Diff line number Diff line change 1+ *
2+ ! Dockerfile
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1.12
2+ FROM --platform=$BUILDPLATFORM golang:1.23.6-bookworm 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" -trimpath github.com/mercari/grpc-federation/cmd/
[email protected] \
9+ && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-grpc-federation /go/bin/protoc-gen-grpc-federation || true
10+
11+ FROM scratch
12+ COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
13+ COPY --from=build --link --chown=root:root /go/bin/protoc-gen-grpc-federation .
14+ ENV GOROOT /
15+ USER nobody
16+ ENTRYPOINT [ "/protoc-gen-grpc-federation" ]
Original file line number Diff line number Diff line change 1+ version : v1
2+ name : buf.build/community/mercari-grpc-federation
3+ plugin_version : v1.9.1
4+ source_url : https://github.com/mercari/grpc-federation
5+ integration_guide_url : https://github.com/mercari/grpc-federation/blob/main/docs/getting_started.md
6+ description : Generates a gRPC server by writing a custom option in Protocol Buffers
7+ output_languages :
8+ - go
9+ spdx_license_id : MIT
10+ license_url : https://github.com/mercari/grpc-federation/blob/v1.9.1/LICENSE
Original file line number Diff line number Diff line change 1+ *
2+ ! Dockerfile
3+ ! package * .json
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1.12
2+ FROM node:22.13.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:b7550f0b15838de14c564337eef2b804ba593ae55d81ca855421bd52f19bb480 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" ]
Original file line number Diff line number Diff line change 1+ version : v1
2+ name : buf.build/grpc/node
3+ plugin_version : v1.13.0
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:v3.21.4
9+ output_languages :
10+ - javascript
11+ registry :
12+ npm :
13+ import_style : commonjs
14+ deps :
15+ - package : ' @grpc/grpc-js'
16+ version : ' ^1.12.6'
17+ - package : ' google-protobuf'
18+ version : ' ^3.21.4'
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.0/LICENSE'
You can’t perform that action at this time.
0 commit comments