-
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 definitions for connect-swift & connect-swift-mocks (#318)
https://github.com/bufbuild/connect-swift Co-authored-by: Philip K. Warren <[email protected]>
- Loading branch information
Showing
14 changed files
with
66 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,4 @@ | ||
source: | ||
github: | ||
owner: bufbuild | ||
repository: connect-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,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.2-focal AS build | ||
|
||
WORKDIR /app | ||
RUN git clone --branch 0.1.0 https://github.com/bufbuild/connect-swift | ||
WORKDIR /app/connect-swift | ||
RUN swift build -c release --product protoc-gen-connect-swift-mocks --static-swift-stdlib -Xlinker -s | ||
|
||
FROM gcr.io/distroless/cc-debian11 | ||
COPY --from=build --link /app/connect-swift/.build/release/protoc-gen-connect-swift-mocks . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-connect-swift-mocks" ] |
11 changes: 11 additions & 0 deletions
11
plugins/bufbuild/connect-swift-mocks/v0.1.0/buf.plugin.yaml
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/bufbuild/connect-swift-mocks | ||
plugin_version: v0.1.0 | ||
source_url: https://github.com/bufbuild/connect-swift | ||
description: Generates mocks that are compatible with Connect-Swift clients. | ||
deps: | ||
- plugin: buf.build/apple/swift:v1.20.3 | ||
output_languages: | ||
- swift | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/connect-swift/blob/0.1.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,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,4 @@ | ||
source: | ||
github: | ||
owner: bufbuild | ||
repository: connect-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,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.2-focal AS build | ||
|
||
WORKDIR /app | ||
RUN git clone --branch 0.1.0 https://github.com/bufbuild/connect-swift | ||
WORKDIR /app/connect-swift | ||
RUN swift build -c release --product protoc-gen-connect-swift --static-swift-stdlib -Xlinker -s | ||
|
||
FROM gcr.io/distroless/cc-debian11 | ||
COPY --from=build --link /app/connect-swift/.build/release/protoc-gen-connect-swift . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-connect-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/bufbuild/connect-swift | ||
plugin_version: v0.1.0 | ||
source_url: https://github.com/bufbuild/connect-swift | ||
description: Idiomatic gRPC & Connect RPCs for Swift. | ||
deps: | ||
- plugin: buf.build/apple/swift:v1.20.3 | ||
output_languages: | ||
- swift | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/connect-swift/blob/0.1.0/LICENSE |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.1.0/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:tRg+VSTVRgW8bdcCkJWSqEN35HbcsTA4xVjJUqj5rJ4= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.1.0/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:Je0mkrM20xUR8yhKspclN3QAK9EekTzwKOGEw1kea+Q= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift/v0.1.0/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:hDK1Bj+gS2aNyl5VsIL4GkAscJPZtOpxFo+cko+g/fk= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift/v0.1.0/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:WCBP5hIoRDCQCeEaUXy2KtQewVb6Ln3PUJucbfEYbsU= |