-
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 connectrpc/kotlin and grpc/swift (#1583)
- Loading branch information
1 parent
c3823b6
commit d155181
Showing
10 changed files
with
91 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.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"] |
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,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 |
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,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" ] |
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/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 |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/connectrpc/kotlin/v0.7.1/eliza/plugin.sum
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 @@ | ||
h1:jZozX+zN6UUwiUu38R4IG3BD2PFi7novwzYovV5V5mY= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/connectrpc/kotlin/v0.7.1/petapis/plugin.sum
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 @@ | ||
h1:qI/BZM1TvMxo1xA+W5Y+h5jGfuIHe2aFsVRriNpB/3M= |
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 @@ | ||
h1:klAEUf7WFX/+TSOOUy7F75AMxFT6Xb3LNOx6aL9DYn0= |
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 @@ | ||
h1:tVvtyf7StUea61DCqt0D6mKsji3dVZxna8snGt78kEA= |