diff --git a/plugins/connectrpc/kotlin/v0.7.1/.dockerignore b/plugins/connectrpc/kotlin/v0.7.1/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/connectrpc/kotlin/v0.7.1/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/connectrpc/kotlin/v0.7.1/Dockerfile b/plugins/connectrpc/kotlin/v0.7.1/Dockerfile new file mode 100644 index 000000000..72ca80698 --- /dev/null +++ b/plugins/connectrpc/kotlin/v0.7.1/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.10 +FROM debian:bookworm-20241016 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.7.1/protoc-gen-connect-kotlin-0.7.1.jar + +FROM gcr.io/distroless/java17-debian12:latest@sha256:26054428ef0fa1b71d28018e35823060c9e89d4b2f120d8efe1964669f44fccc as base + +FROM scratch +COPY --from=base --link / / +COPY --from=build --link --chmod=0755 --chown=root:root /app/protoc-gen-connect-kotlin.jar . +USER nobody +ENTRYPOINT [ "/usr/bin/java", "-jar", "/protoc-gen-connect-kotlin.jar"] diff --git a/plugins/connectrpc/kotlin/v0.7.1/buf.plugin.yaml b/plugins/connectrpc/kotlin/v0.7.1/buf.plugin.yaml new file mode 100644 index 000000000..99bbb6d4f --- /dev/null +++ b/plugins/connectrpc/kotlin/v0.7.1/buf.plugin.yaml @@ -0,0 +1,29 @@ +version: v1 +name: buf.build/connectrpc/kotlin +plugin_version: v0.7.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:v28.3 +output_languages: + - kotlin +spdx_license_id: Apache-2.0 +license_url: https://github.com/connectrpc/connect-kotlin/blob/v0.7.1/LICENSE +registry: + opts: + - generateCallbackMethods=true + maven: + compiler: + kotlin: + version: 1.8.22 + deps: + - com.connectrpc:connect-kotlin:0.7.1 + - com.connectrpc:connect-kotlin-google-java-ext:0.7.1 + - com.connectrpc:connect-kotlin-okhttp:0.7.1 + additional_runtimes: + - name: lite + deps: + - com.connectrpc:connect-kotlin:0.7.1 + - com.connectrpc:connect-kotlin-google-javalite-ext:0.7.1 + - com.connectrpc:connect-kotlin-okhttp:0.7.1 diff --git a/plugins/grpc/swift/v1.24.2/.dockerignore b/plugins/grpc/swift/v1.24.2/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/swift/v1.24.2/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/swift/v1.24.2/Dockerfile b/plugins/grpc/swift/v1.24.2/Dockerfile new file mode 100644 index 000000000..f7daa0827 --- /dev/null +++ b/plugins/grpc/swift/v1.24.2/Dockerfile @@ -0,0 +1,17 @@ +# syntax=docker/dockerfile:1.10 +FROM swift:5.10.1-bookworm AS build + +RUN apt-get update \ + && apt-get install -y libstdc++-12-dev +WORKDIR /app +RUN git clone --depth 1 --branch 1.24.2 https://github.com/grpc/grpc-swift --recursive +WORKDIR /app/grpc-swift +RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift -Xlinker -s + +FROM gcr.io/distroless/cc-debian12:latest@sha256:6f05aba4de16e89f8d879bf2a1364de3e41aba04f1dcbba8c75494f6134b4b13 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build /app/grpc-swift/.build/release/protoc-gen-grpc-swift . +USER nobody +ENTRYPOINT [ "/protoc-gen-grpc-swift" ] diff --git a/plugins/grpc/swift/v1.24.2/buf.plugin.yaml b/plugins/grpc/swift/v1.24.2/buf.plugin.yaml new file mode 100644 index 000000000..4964eedb0 --- /dev/null +++ b/plugins/grpc/swift/v1.24.2/buf.plugin.yaml @@ -0,0 +1,22 @@ +version: v1 +name: buf.build/grpc/swift +plugin_version: v1.24.2 +source_url: https://github.com/grpc/grpc-swift +integration_guide_url: https://github.com/grpc/grpc-swift#getting-grpc-swift +description: Generates Swift client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/apple/swift:v1.28.2 +output_languages: + - swift +registry: + swift: + deps: + - source: https://github.com/grpc/grpc-swift.git + package: grpc-swift + products: [ GRPC ] + version: 1.24.2 + opts: + - Visibility=Public + - FileNaming=PathToUnderscores +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc-swift/blob/1.24.2/LICENSE diff --git a/tests/testdata/buf.build/connectrpc/kotlin/v0.7.1/eliza/plugin.sum b/tests/testdata/buf.build/connectrpc/kotlin/v0.7.1/eliza/plugin.sum new file mode 100644 index 000000000..b77f0285d --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/kotlin/v0.7.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:jZozX+zN6UUwiUu38R4IG3BD2PFi7novwzYovV5V5mY= diff --git a/tests/testdata/buf.build/connectrpc/kotlin/v0.7.1/petapis/plugin.sum b/tests/testdata/buf.build/connectrpc/kotlin/v0.7.1/petapis/plugin.sum new file mode 100644 index 000000000..c591f7283 --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/kotlin/v0.7.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:qI/BZM1TvMxo1xA+W5Y+h5jGfuIHe2aFsVRriNpB/3M= diff --git a/tests/testdata/buf.build/grpc/swift/v1.24.2/eliza/plugin.sum b/tests/testdata/buf.build/grpc/swift/v1.24.2/eliza/plugin.sum new file mode 100644 index 000000000..a45617084 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift/v1.24.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:klAEUf7WFX/+TSOOUy7F75AMxFT6Xb3LNOx6aL9DYn0= diff --git a/tests/testdata/buf.build/grpc/swift/v1.24.2/petapis/plugin.sum b/tests/testdata/buf.build/grpc/swift/v1.24.2/petapis/plugin.sum new file mode 100644 index 000000000..b4522b666 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift/v1.24.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:tVvtyf7StUea61DCqt0D6mKsji3dVZxna8snGt78kEA=