Skip to content

Commit

Permalink
Update connectrpc/kotlin, rr-server-php, and ts-proto plugins (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Nov 9, 2023
1 parent 8aa7396 commit 3d67bba
Show file tree
Hide file tree
Showing 17 changed files with 276 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
13 changes: 13 additions & 0 deletions plugins/community/roadrunner-server-php-grpc/v4.5.7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# syntax=docker/dockerfile:1.6
FROM golang:1.21.4-bullseye AS build
RUN git clone --depth=1 --branch v4.5.7 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" ]
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.5.7
source_url: https://github.com/roadrunner-server/grpc
description: Generates code for the PHP RoadRunner application server.
deps:
- plugin: buf.build/protocolbuffers/php:v25.0
spdx_license_id: MIT
license_url: https://github.com/roadrunner-server/grpc/blob/v4.5.7/LICENSE
output_languages:
- php
3 changes: 3 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.164.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.164.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.6
FROM node:20.9.0-alpine3.18 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/nodejs20-debian12
COPY --link --from=build /app /app
USER nobody
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-ts_proto" ]
10 changes: 10 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.164.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1
name: buf.build/community/stephenh-ts-proto
plugin_version: v1.164.0
source_url: https://github.com/stephenh/ts-proto
integration_guide_url: https://github.com/stephenh/ts-proto#quickstart
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.164.0/LICENSE
171 changes: 171 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.164.0/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.164.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.164.0"
}
}
2 changes: 2 additions & 0 deletions plugins/connectrpc/kotlin/v0.3.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
11 changes: 11 additions & 0 deletions plugins/connectrpc/kotlin/v0.3.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.4
FROM debian:bullseye-20231030 AS build
RUN apt-get update \
&& apt-get install -y curl
WORKDIR /app
RUN curl -fsSL -o /app/protoc-gen-connect-kotlin.jar https://repo1.maven.org/maven2/com/connectrpc/protoc-gen-connect-kotlin/0.3.1/protoc-gen-connect-kotlin-0.3.1.jar

FROM gcr.io/distroless/java17-debian11
WORKDIR /app
COPY --from=build /app/protoc-gen-connect-kotlin.jar /app
CMD ["/app/protoc-gen-connect-kotlin.jar"]
29 changes: 29 additions & 0 deletions plugins/connectrpc/kotlin/v0.3.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: v1
name: buf.build/connectrpc/kotlin
plugin_version: v0.3.1
source_url: https://github.com/connectrpc/connect-kotlin
integration_guide_url: https://connectrpc.com/docs/kotlin/getting-started
description: Idiomatic gRPC & Connect RPCs for Kotlin.
deps:
- plugin: buf.build/protocolbuffers/kotlin:v25.0
output_languages:
- kotlin
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-kotlin/blob/v0.3.1/LICENSE
registry:
opts:
- generateCallbackMethods=true
maven:
compiler:
kotlin:
version: 1.8.22
deps:
- com.connectrpc:connect-kotlin:0.3.1
- com.connectrpc:connect-kotlin-google-java-ext:0.3.1
- com.connectrpc:connect-kotlin-okhttp:0.3.1
additional_runtimes:
- name: lite
deps:
- com.connectrpc:connect-kotlin:0.3.1
- com.connectrpc:connect-kotlin-google-javalite-ext:0.3.1
- com.connectrpc:connect-kotlin-okhttp:0.3.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:jT7gKL/t3iAPRsfXcC8b24F5IdSxtcuyuhD8yvmGRiA=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:7bA/GKq0K0btx4JnO+NSpYBkPfz0oSLjz+Ddv/NYe/A=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:c2bL6MBuG1NJgUtCaESfyh0lhyWi/JmkenKns7OfSYQ=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:aXVOiLAf7KA+JIaw/4CnnKA+5iDw6fQE9eS8/BVYejU=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:W/LFoLpNVeZGRBkGun6ZBwH29/BAZurvzVVo79GKrOE=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:8SHtQVVxJtH/0voLCE4rQxWI4Fog2R556Isppm+4Csw=

0 comments on commit 3d67bba

Please sign in to comment.