Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/grpc/swift/v1.27.4/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
17 changes: 17 additions & 0 deletions plugins/grpc/swift/v1.27.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1.19
FROM swift:6.2.4-bookworm AS build

RUN apt-get update \
&& apt-get install -y libstdc++-12-dev
WORKDIR /app
RUN git clone --depth 1 --branch 1.27.4 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:329e54034ce498f9c6b345044e8f530c6691f99e94a92446f68c0adf9baa8464 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" ]
23 changes: 23 additions & 0 deletions plugins/grpc/swift/v1.27.4/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: v1
name: buf.build/grpc/swift
plugin_version: v1.27.4
source_url: https://github.com/grpc/grpc-swift
description: Generates Swift client and server stubs for the gRPC framework.
deps:
- plugin: buf.build/apple/swift:v1.35.1
output_languages:
- swift
registry:
swift:
deps:
- source: https://github.com/grpc/grpc-swift.git
package: grpc-swift
version: 1.27.4
products:
- GRPC
opts:
- Visibility=Public
- FileNaming=PathToUnderscores
spdx_license_id: Apache-2.0
license_url: https://github.com/grpc/grpc-swift/blob/1.27.4/LICENSE
integration_guide_url: https://github.com/grpc/grpc-swift#getting-grpc-swift
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:klAEUf7WFX/+TSOOUy7F75AMxFT6Xb3LNOx6aL9DYn0=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:tVvtyf7StUea61DCqt0D6mKsji3dVZxna8snGt78kEA=