Skip to content

Commit

Permalink
Update grpc-java and ts-proto plugins (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Nov 28, 2023
1 parent c60cb9f commit c66ebc3
Show file tree
Hide file tree
Showing 12 changed files with 254 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.165.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.165.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.6
FROM node:20.10.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.165.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.165.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.165.0/LICENSE
171 changes: 171 additions & 0 deletions plugins/community/stephenh-ts-proto/v1.165.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.165.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.165.0"
}
}
2 changes: 2 additions & 0 deletions plugins/grpc/java/v1.59.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
21 changes: 21 additions & 0 deletions plugins/grpc/java/v1.59.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# syntax=docker/dockerfile:1.4
FROM debian:bullseye-20231120 AS build

ARG TARGETARCH

WORKDIR /build
RUN apt-get update \
&& apt-get install -y curl
RUN arch=${TARGETARCH}; \
if [ "${arch}" = "arm64" ]; then\
arch="aarch_64"; \
elif [ "${arch}" = "amd64" ]; then\
arch="x86_64"; \
fi; \
echo "${arch}"; \
curl -fsSL -o protoc-gen-grpc-java https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.59.1/protoc-gen-grpc-java-1.59.1-linux-${arch}.exe

FROM gcr.io/distroless/base-debian11
COPY --from=build --link --chmod=0755 --chown=root:root /build/protoc-gen-grpc-java .
USER nobody
ENTRYPOINT [ "/protoc-gen-grpc-java" ]
25 changes: 25 additions & 0 deletions plugins/grpc/java/v1.59.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: v1
name: buf.build/grpc/java
plugin_version: v1.59.1
source_url: https://github.com/grpc/grpc-java
integration_guide_url: https://grpc.io/docs/languages/java/quickstart
description: Generates Java client and server stubs for the gRPC framework.
deps:
- plugin: buf.build/protocolbuffers/java:v25.1
output_languages:
- java
spdx_license_id: Apache-2.0
license_url: https://github.com/grpc/grpc-java/blob/v1.59.1/LICENSE
registry:
maven:
deps:
- io.grpc:grpc-core:1.59.1
- io.grpc:grpc-protobuf:1.59.1
- io.grpc:grpc-stub:1.59.1
additional_runtimes:
- name: lite
deps:
- io.grpc:grpc-core:1.59.1
- io.grpc:grpc-protobuf-lite:1.59.1
- io.grpc:grpc-stub:1.59.1
opts: [lite]
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:tc/kVj95LHw1/2ltmP3EEtW7EcrF5jYF2ay4pdTVkSc=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:BUy4Jcv0atpPug+HNVvPvQKG791qHz4ALbYyRfayxgw=

0 comments on commit c66ebc3

Please sign in to comment.