-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update knit-ts and rr-server-php-grpc plugins (#1006)
- Loading branch information
1 parent
88fe50f
commit fca6fbe
Showing
12 changed files
with
158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!Dockerfile | ||
!package*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM node:20.11.0-alpine3.19 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/@bufbuild/protoc-gen-knit-ts/bin/protoc-gen-knit-ts | ||
|
||
FROM gcr.io/distroless/nodejs20-debian12:latest@sha256:7715474a901a28e3edcdf7730f14b33e30c26085989ce04b0de163fe8fab0f03 | ||
COPY --link --from=build /app /app | ||
USER nobody | ||
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-knit-ts" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/knit-ts | ||
plugin_version: v0.0.4 | ||
source_url: https://github.com/bufbuild/knit-ts | ||
integration_guide_url: https://github.com/bufbuild/knit-ts#quick-example | ||
description: Generates Knit schemas needed to use the Knit client in web browsers and Node.js. | ||
output_languages: | ||
- typescript | ||
registry: | ||
npm: | ||
import_style: module | ||
rewrite_import_path_suffix: knit.js | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/knit-ts/blob/v0.0.4/LICENSE |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "plugins-bufbuild-knit-ts", | ||
"version": "0.0.4", | ||
"dependencies": { | ||
"@bufbuild/protoc-gen-knit-ts": "0.0.4" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
plugins/community/roadrunner-server-php-grpc/v4.6.4/.dockerignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!Dockerfile |
13 changes: 13 additions & 0 deletions
13
plugins/community/roadrunner-server-php-grpc/v4.6.4/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# syntax=docker/dockerfile:1.6 | ||
FROM golang:1.21.6-bookworm AS build | ||
RUN git clone --depth=1 --branch v4.6.4 https://github.com/roadrunner-server/grpc.git | ||
RUN --mount=type=cache,target=/go/pkg/mod \ | ||
cd grpc/protoc_plugins/protoc-gen-php-grpc && \ | ||
CGO_ENABLED=0 \ | ||
go install -ldflags="-s -w" -trimpath | ||
|
||
FROM scratch | ||
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd | ||
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-php-grpc / | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-php-grpc" ] |
11 changes: 11 additions & 0 deletions
11
plugins/community/roadrunner-server-php-grpc/v4.6.4/buf.plugin.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: v1 | ||
name: buf.build/community/roadrunner-server-php-grpc | ||
plugin_version: v4.6.4 | ||
source_url: https://github.com/roadrunner-server/grpc | ||
description: Generates code for the PHP RoadRunner application server. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/php:v25.2 | ||
spdx_license_id: MIT | ||
license_url: https://github.com/roadrunner-server/grpc/blob/v4.6.4/LICENSE | ||
output_languages: | ||
- php |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/knit-ts/v0.0.4/eliza/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:6pBzLDZjUFCm3r5GThqvRQ09UmLZs4Pfvk3iYUatdCU= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/knit-ts/v0.0.4/petapis/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:fTYqH8k7jmY24SSK4rO70fWts3A0c8UcDXE+0Qx6K84= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/community/roadrunner-server-php-grpc/v4.6.4/eliza/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:jT7gKL/t3iAPRsfXcC8b24F5IdSxtcuyuhD8yvmGRiA= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/community/roadrunner-server-php-grpc/v4.6.4/petapis/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:7bA/GKq0K0btx4JnO+NSpYBkPfz0oSLjz+Ddv/NYe/A= |