Skip to content

Commit d155181

Browse files
Update connectrpc/kotlin and grpc/swift (#1583)
1 parent c3823b6 commit d155181

File tree

10 files changed

+91
-0
lines changed

10 files changed

+91
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# syntax=docker/dockerfile:1.10
2+
FROM debian:bookworm-20241016 AS build
3+
4+
RUN apt-get update \
5+
&& apt-get install -y curl
6+
WORKDIR /app
7+
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
8+
9+
FROM gcr.io/distroless/java17-debian12:latest@sha256:26054428ef0fa1b71d28018e35823060c9e89d4b2f120d8efe1964669f44fccc as base
10+
11+
FROM scratch
12+
COPY --from=base --link / /
13+
COPY --from=build --link --chmod=0755 --chown=root:root /app/protoc-gen-connect-kotlin.jar .
14+
USER nobody
15+
ENTRYPOINT [ "/usr/bin/java", "-jar", "/protoc-gen-connect-kotlin.jar"]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: v1
2+
name: buf.build/connectrpc/kotlin
3+
plugin_version: v0.7.1
4+
source_url: https://github.com/connectrpc/connect-kotlin
5+
integration_guide_url: https://connectrpc.com/docs/kotlin/getting-started
6+
description: Idiomatic gRPC & Connect RPCs for Kotlin.
7+
deps:
8+
- plugin: buf.build/protocolbuffers/kotlin:v28.3
9+
output_languages:
10+
- kotlin
11+
spdx_license_id: Apache-2.0
12+
license_url: https://github.com/connectrpc/connect-kotlin/blob/v0.7.1/LICENSE
13+
registry:
14+
opts:
15+
- generateCallbackMethods=true
16+
maven:
17+
compiler:
18+
kotlin:
19+
version: 1.8.22
20+
deps:
21+
- com.connectrpc:connect-kotlin:0.7.1
22+
- com.connectrpc:connect-kotlin-google-java-ext:0.7.1
23+
- com.connectrpc:connect-kotlin-okhttp:0.7.1
24+
additional_runtimes:
25+
- name: lite
26+
deps:
27+
- com.connectrpc:connect-kotlin:0.7.1
28+
- com.connectrpc:connect-kotlin-google-javalite-ext:0.7.1
29+
- com.connectrpc:connect-kotlin-okhttp:0.7.1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# syntax=docker/dockerfile:1.10
2+
FROM swift:5.10.1-bookworm AS build
3+
4+
RUN apt-get update \
5+
&& apt-get install -y libstdc++-12-dev
6+
WORKDIR /app
7+
RUN git clone --depth 1 --branch 1.24.2 https://github.com/grpc/grpc-swift --recursive
8+
WORKDIR /app/grpc-swift
9+
RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift -Xlinker -s
10+
11+
FROM gcr.io/distroless/cc-debian12:latest@sha256:6f05aba4de16e89f8d879bf2a1364de3e41aba04f1dcbba8c75494f6134b4b13 AS base
12+
13+
FROM scratch
14+
COPY --link --from=base / /
15+
COPY --link --from=build /app/grpc-swift/.build/release/protoc-gen-grpc-swift .
16+
USER nobody
17+
ENTRYPOINT [ "/protoc-gen-grpc-swift" ]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: v1
2+
name: buf.build/grpc/swift
3+
plugin_version: v1.24.2
4+
source_url: https://github.com/grpc/grpc-swift
5+
integration_guide_url: https://github.com/grpc/grpc-swift#getting-grpc-swift
6+
description: Generates Swift client and server stubs for the gRPC framework.
7+
deps:
8+
- plugin: buf.build/apple/swift:v1.28.2
9+
output_languages:
10+
- swift
11+
registry:
12+
swift:
13+
deps:
14+
- source: https://github.com/grpc/grpc-swift.git
15+
package: grpc-swift
16+
products: [ GRPC ]
17+
version: 1.24.2
18+
opts:
19+
- Visibility=Public
20+
- FileNaming=PathToUnderscores
21+
spdx_license_id: Apache-2.0
22+
license_url: https://github.com/grpc/grpc-swift/blob/1.24.2/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:jZozX+zN6UUwiUu38R4IG3BD2PFi7novwzYovV5V5mY=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:qI/BZM1TvMxo1xA+W5Y+h5jGfuIHe2aFsVRriNpB/3M=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:klAEUf7WFX/+TSOOUy7F75AMxFT6Xb3LNOx6aL9DYn0=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:tVvtyf7StUea61DCqt0D6mKsji3dVZxna8snGt78kEA=

0 commit comments

Comments
 (0)