-
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.
Add grpc-swift v1.14.0 plugin (#359)
- Loading branch information
1 parent
bd20138
commit f703a85
Showing
5 changed files
with
27 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,12 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM swift:5.7.3-focal AS build | ||
|
||
WORKDIR /app | ||
RUN git clone --depth 1 --branch 1.14.0 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-debian11 | ||
COPY --from=build --link /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,11 @@ | ||
version: v1 | ||
name: buf.build/grpc/swift | ||
plugin_version: v1.14.0 | ||
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.20.3 | ||
output_languages: | ||
- swift | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/grpc/grpc-swift/blob/1.14.0/LICENSE |
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:AyTBCyR7NTQf+n2zmThBq9/Nveb5Mx/QZnQ4ZvovhF4= |
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:nxLl9QVtjt+8+FrGOVBBSZnGQLT+GrD+NjxshOJh7xc= |