Skip to content

Commit

Permalink
Update protoc, connectrpc/query-es, connectrpc/swift, and zio-grpc pl…
Browse files Browse the repository at this point in the history
…ugins (#1002)
  • Loading branch information
app-token-plugins[bot] authored Jan 10, 2024
1 parent 7682231 commit 8986f00
Show file tree
Hide file tree
Showing 85 changed files with 777 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/community/scalapb-zio-grpc/v0.6.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/community/scalapb-zio-grpc/v0.6.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.4
FROM debian:bookworm-20231218 AS build

ARG TARGETARCH

RUN apt-get update \
&& apt-get install -y curl

#This script embeds the the .class files and is a self contained jvm protoc plugin. See https://scalapb.github.io/docs/scalapbc/#using-scalapb-as-a-proper-protoc-plugin for more details
RUN curl -fsSL -o protoc-gen-zio.jar https://repo1.maven.org/maven2/com/thesamet/scalapb/zio-grpc/protoc-gen-zio/0.6.1/protoc-gen-zio-0.6.1-unix.sh

FROM gcr.io/distroless/java17-debian12:latest@sha256:3da8c1021317fa0b0eca2d7bc9f54a1d09517fad07587abda0e1231bff207795
COPY --from=build --link /protoc-gen-zio.jar .
USER nobody
ENTRYPOINT [ "/usr/bin/java", "-jar", "/protoc-gen-zio.jar"]
9 changes: 9 additions & 0 deletions plugins/community/scalapb-zio-grpc/v0.6.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: v1
name: buf.build/community/scalapb-zio-grpc
plugin_version: v0.6.1
source_url: https://github.com/scalapb/zio-grpc
description: Enables writing purely functional gRPC services using ZIO.
output_languages:
- scala
spdx_license_id: Apache-2.0
license_url: https://github.com/scalapb/zio-grpc/blob/v0.6.1/LICENSE
3 changes: 3 additions & 0 deletions plugins/connectrpc/query-es/v1.1.3/.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/connectrpc/query-es/v1.1.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.4
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/@connectrpc/protoc-gen-connect-query/bin/protoc-gen-connect-query

FROM gcr.io/distroless/nodejs20-debian12:latest@sha256:7715474a901a28e3edcdf7730f14b33e30c26085989ce04b0de163fe8fab0f03
COPY --link --from=build /app /app
USER nobody
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-connect-query" ]
22 changes: 22 additions & 0 deletions plugins/connectrpc/query-es/v1.1.3/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: v1
name: buf.build/connectrpc/query-es
plugin_version: v1.1.3
source_url: https://github.com/connectrpc/connect-query-es
integration_guide_url: https://connectrpc.com/docs/web/query/getting-started
description: Generates client stubs for calling Connect services with TanStack Query.
deps:
- plugin: buf.build/bufbuild/es:v1.6.0
output_languages:
- javascript
- typescript
registry:
npm:
import_style: module
rewrite_import_path_suffix: connectquery.js
deps:
- package: '@connectrpc/connect-query'
version: ^1.1.3
- package: '@bufbuild/protobuf'
version: ^1.6.0
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-query-es/blob/v1.1.3/LICENSE
94 changes: 94 additions & 0 deletions plugins/connectrpc/query-es/v1.1.3/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/connectrpc/query-es/v1.1.3/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "plugins-connectrpc-query-es",
"version": "1.1.3",
"dependencies": {
"@connectrpc/protoc-gen-connect-query": "1.1.3"
}
}
2 changes: 2 additions & 0 deletions plugins/connectrpc/swift-mocks/v0.11.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
12 changes: 12 additions & 0 deletions plugins/connectrpc/swift-mocks/v0.11.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# syntax=docker/dockerfile:1.6
FROM swift:5.9.2-jammy AS build

WORKDIR /app
RUN git clone --depth 1 --branch 0.11.0 https://github.com/connectrpc/connect-swift
WORKDIR /app/connect-swift
RUN swift build -c release --product protoc-gen-connect-swift-mocks --static-swift-stdlib -Xlinker -s

FROM gcr.io/distroless/cc-debian12:latest@sha256:6714977f9f02632c31377650c15d89a7efaebf43bab0f37c712c30fc01edb973
COPY --from=build --link /app/connect-swift/.build/release/protoc-gen-connect-swift-mocks .
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-swift-mocks" ]
27 changes: 27 additions & 0 deletions plugins/connectrpc/swift-mocks/v0.11.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: v1
name: buf.build/connectrpc/swift-mocks
plugin_version: v0.11.0
source_url: https://github.com/connectrpc/connect-swift
integration_guide_url: https://connectrpc.com/docs/swift/testing
description: Generates mocks that are compatible with Connect-Swift clients.
deps:
- plugin: buf.build/apple/swift:v1.25.2
output_languages:
- swift
registry:
swift:
deps:
- source: https://github.com/connectrpc/connect-swift.git
package: connect-swift
products: [ ConnectMocks ]
swift_versions: [ ".v5" ]
version: 0.11.0
platforms:
macos: v10_15
ios: v12
tvos: v13
opts:
- Visibility=Public
- FileNaming=PathToUnderscores
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-swift/blob/0.11.0/LICENSE
2 changes: 2 additions & 0 deletions plugins/connectrpc/swift/v0.11.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
12 changes: 12 additions & 0 deletions plugins/connectrpc/swift/v0.11.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# syntax=docker/dockerfile:1.6
FROM swift:5.9.2-jammy AS build

WORKDIR /app
RUN git clone --depth 1 --branch 0.11.0 https://github.com/connectrpc/connect-swift
WORKDIR /app/connect-swift
RUN swift build -c release --product protoc-gen-connect-swift --static-swift-stdlib -Xlinker -s

FROM gcr.io/distroless/cc-debian12:latest@sha256:6714977f9f02632c31377650c15d89a7efaebf43bab0f37c712c30fc01edb973
COPY --from=build --link /app/connect-swift/.build/release/protoc-gen-connect-swift .
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-swift" ]
27 changes: 27 additions & 0 deletions plugins/connectrpc/swift/v0.11.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: v1
name: buf.build/connectrpc/swift
plugin_version: v0.11.0
source_url: https://github.com/connectrpc/connect-swift
integration_guide_url: https://connectrpc.com/docs/swift/getting-started
description: Idiomatic gRPC & Connect RPCs for Swift.
deps:
- plugin: buf.build/apple/swift:v1.25.2
output_languages:
- swift
registry:
swift:
deps:
- source: https://github.com/connectrpc/connect-swift.git
package: connect-swift
products: [ Connect ]
swift_versions: [ ".v5" ]
version: 0.11.0
platforms:
macos: v10_15
ios: v12
tvos: v13
opts:
- Visibility=Public
- FileNaming=PathToUnderscores
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-swift/blob/0.11.0/LICENSE
4 changes: 4 additions & 0 deletions plugins/protocolbuffers/cpp/v25.2/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!BUILD
!cpp.cc
!Dockerfile
7 changes: 7 additions & 0 deletions plugins/protocolbuffers/cpp/v25.2/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cc_binary(
name = "protoc-gen-cpp",
srcs = ["cpp.cc"],
deps = [
"//:protoc_lib",
],
)
24 changes: 24 additions & 0 deletions plugins/protocolbuffers/cpp/v25.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# syntax=docker/dockerfile:1.5
FROM debian:bookworm-20231218 AS build

ARG TARGETARCH

RUN apt-get update \
&& apt-get install -y curl git cmake build-essential g++ unzip zip
RUN arch=${TARGETARCH}; \
if [ "${arch}" = "amd64" ]; then arch="x86_64"; fi; \
curl -fsSL -o /usr/local/bin/bazel https://github.com/bazelbuild/bazel/releases/download/7.0.0/bazel-7.0.0-linux-${arch} \
&& chmod +x /usr/local/bin/bazel

WORKDIR /build
RUN curl -fsSL -o protoc.tar.gz https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protobuf-25.2.tar.gz \
&& tar --strip-components=1 -zxf protoc.tar.gz \
&& rm protoc.tar.gz
RUN bazel build '//:protoc_lib'
COPY --link BUILD cpp.cc plugins/
RUN bazel build '//plugins:protoc-gen-cpp.stripped'

FROM gcr.io/distroless/cc-debian12:latest@sha256:6714977f9f02632c31377650c15d89a7efaebf43bab0f37c712c30fc01edb973
COPY --from=build --link --chmod=0755 /build/bazel-bin/plugins/protoc-gen-cpp .
USER nobody
ENTRYPOINT ["/protoc-gen-cpp"]
9 changes: 9 additions & 0 deletions plugins/protocolbuffers/cpp/v25.2/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: v1
name: buf.build/protocolbuffers/cpp
plugin_version: v25.2
source_url: https://github.com/protocolbuffers/protobuf
description: Base types for C++. Generates message and enum types.
output_languages:
- cpp
spdx_license_id: BSD-3-Clause
license_url: https://github.com/protocolbuffers/protobuf/blob/v25.2/LICENSE
7 changes: 7 additions & 0 deletions plugins/protocolbuffers/cpp/v25.2/cpp.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <google/protobuf/compiler/cpp/generator.h>
#include <google/protobuf/compiler/plugin.h>

int main(int argc, char *argv[]) {
google::protobuf::compiler::cpp::CppGenerator generator;
return google::protobuf::compiler::PluginMain(argc, argv, &generator);
}
4 changes: 4 additions & 0 deletions plugins/protocolbuffers/csharp/v25.2/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!BUILD
!csharp.cc
!Dockerfile
7 changes: 7 additions & 0 deletions plugins/protocolbuffers/csharp/v25.2/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cc_binary(
name = "protoc-gen-csharp",
srcs = ["csharp.cc"],
deps = [
"//:protoc_lib",
],
)
24 changes: 24 additions & 0 deletions plugins/protocolbuffers/csharp/v25.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# syntax=docker/dockerfile:1.5
FROM debian:bookworm-20231218 AS build

ARG TARGETARCH

RUN apt-get update \
&& apt-get install -y curl git cmake build-essential g++ unzip zip
RUN arch=${TARGETARCH}; \
if [ "${arch}" = "amd64" ]; then arch="x86_64"; fi; \
curl -fsSL -o /usr/local/bin/bazel https://github.com/bazelbuild/bazel/releases/download/7.0.0/bazel-7.0.0-linux-${arch} \
&& chmod +x /usr/local/bin/bazel

WORKDIR /build
RUN curl -fsSL -o protoc.tar.gz https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protobuf-25.2.tar.gz \
&& tar --strip-components=1 -zxf protoc.tar.gz \
&& rm protoc.tar.gz
RUN bazel build '//:protoc_lib'
COPY --link BUILD csharp.cc plugins/
RUN bazel build '//plugins:protoc-gen-csharp.stripped'

FROM gcr.io/distroless/cc-debian12:latest@sha256:6714977f9f02632c31377650c15d89a7efaebf43bab0f37c712c30fc01edb973
COPY --from=build --link --chmod=0755 /build/bazel-bin/plugins/protoc-gen-csharp .
USER nobody
ENTRYPOINT ["/protoc-gen-csharp"]
9 changes: 9 additions & 0 deletions plugins/protocolbuffers/csharp/v25.2/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: v1
name: buf.build/protocolbuffers/csharp
plugin_version: v25.2
source_url: https://github.com/protocolbuffers/protobuf
description: Base types for C#. Generates message and enum types.
output_languages:
- csharp
spdx_license_id: BSD-3-Clause
license_url: https://github.com/protocolbuffers/protobuf/blob/v25.2/LICENSE
7 changes: 7 additions & 0 deletions plugins/protocolbuffers/csharp/v25.2/csharp.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <google/protobuf/compiler/csharp/csharp_generator.h>
#include <google/protobuf/compiler/plugin.h>

int main(int argc, char *argv[]) {
google::protobuf::compiler::csharp::Generator generator;
return google::protobuf::compiler::PluginMain(argc, argv, &generator);
}
4 changes: 4 additions & 0 deletions plugins/protocolbuffers/java/v25.2/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!BUILD
!Dockerfile
!java.cc
7 changes: 7 additions & 0 deletions plugins/protocolbuffers/java/v25.2/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cc_binary(
name = "protoc-gen-java",
srcs = ["java.cc"],
deps = [
"//:protoc_lib",
],
)
Loading

0 comments on commit 8986f00

Please sign in to comment.