-
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 protoc, connectrpc/query-es, connectrpc/swift, and zio-grpc pl…
…ugins (#1002)
- Loading branch information
1 parent
7682231
commit 8986f00
Showing
85 changed files
with
777 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,2 @@ | ||
* | ||
!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,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"] |
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,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 |
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.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" ] |
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,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 |
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-connectrpc-query-es", | ||
"version": "1.1.3", | ||
"dependencies": { | ||
"@connectrpc/protoc-gen-connect-query": "1.1.3" | ||
} | ||
} |
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 |
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,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" ] |
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,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 |
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 |
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,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" ] |
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,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 |
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,4 @@ | ||
* | ||
!BUILD | ||
!cpp.cc | ||
!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,7 @@ | ||
cc_binary( | ||
name = "protoc-gen-cpp", | ||
srcs = ["cpp.cc"], | ||
deps = [ | ||
"//:protoc_lib", | ||
], | ||
) |
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,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"] |
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,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 |
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 @@ | ||
#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); | ||
} |
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,4 @@ | ||
* | ||
!BUILD | ||
!csharp.cc | ||
!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,7 @@ | ||
cc_binary( | ||
name = "protoc-gen-csharp", | ||
srcs = ["csharp.cc"], | ||
deps = [ | ||
"//:protoc_lib", | ||
], | ||
) |
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,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"] |
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,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 |
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 @@ | ||
#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); | ||
} |
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,4 @@ | ||
* | ||
!BUILD | ||
!Dockerfile | ||
!java.cc |
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 @@ | ||
cc_binary( | ||
name = "protoc-gen-java", | ||
srcs = ["java.cc"], | ||
deps = [ | ||
"//:protoc_lib", | ||
], | ||
) |
Oops, something went wrong.