diff --git a/plugins/grpc/swift/v1.27.4/.dockerignore b/plugins/grpc/swift/v1.27.4/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/swift/v1.27.4/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/swift/v1.27.4/Dockerfile b/plugins/grpc/swift/v1.27.4/Dockerfile new file mode 100644 index 000000000..d54bdf502 --- /dev/null +++ b/plugins/grpc/swift/v1.27.4/Dockerfile @@ -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" ] diff --git a/plugins/grpc/swift/v1.27.4/buf.plugin.yaml b/plugins/grpc/swift/v1.27.4/buf.plugin.yaml new file mode 100644 index 000000000..1cd979ae0 --- /dev/null +++ b/plugins/grpc/swift/v1.27.4/buf.plugin.yaml @@ -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 diff --git a/tests/testdata/buf.build/grpc/swift/v1.27.4/eliza/plugin.sum b/tests/testdata/buf.build/grpc/swift/v1.27.4/eliza/plugin.sum new file mode 100644 index 000000000..a45617084 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift/v1.27.4/eliza/plugin.sum @@ -0,0 +1 @@ +h1:klAEUf7WFX/+TSOOUy7F75AMxFT6Xb3LNOx6aL9DYn0= diff --git a/tests/testdata/buf.build/grpc/swift/v1.27.4/petapis/plugin.sum b/tests/testdata/buf.build/grpc/swift/v1.27.4/petapis/plugin.sum new file mode 100644 index 000000000..b4522b666 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift/v1.27.4/petapis/plugin.sum @@ -0,0 +1 @@ +h1:tVvtyf7StUea61DCqt0D6mKsji3dVZxna8snGt78kEA=