File tree 15 files changed +74
-0
lines changed
15 files changed +74
-0
lines changed Original file line number Diff line number Diff line change
1
+ *
2
+ ! Dockerfile
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.4
2
+ FROM swift:5.7.3-focal AS build
3
+
4
+ WORKDIR /app
5
+ RUN git clone --depth 1 --branch 1.21.0 https://github.com/apple/swift-protobuf --recursive
6
+ WORKDIR /app/swift-protobuf
7
+ RUN swift build -c release --static-swift-stdlib -Xlinker -s
8
+
9
+ FROM gcr.io/distroless/cc-debian11
10
+ COPY --from=build --link /app/swift-protobuf/.build/release/protoc-gen-swift .
11
+ USER nobody
12
+ ENTRYPOINT [ "/protoc-gen-swift" ]
Original file line number Diff line number Diff line change
1
+ version : v1
2
+ name : buf.build/apple/swift
3
+ plugin_version : v1.21.0
4
+ source_url : https://github.com/apple/swift-protobuf
5
+ description : Base types for Swift. Generates message and enum types.
6
+ output_languages :
7
+ - swift
8
+ spdx_license_id : Apache-2.0
9
+ license_url : https://github.com/apple/swift-protobuf/blob/1.21.0/LICENSE.txt
Original file line number Diff line number Diff line change
1
+ *
2
+ ! Dockerfile
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.4
2
+ FROM golang:1.19.6-bullseye AS build
3
+ RUN --mount=type=cache,target=/go/pkg/mod \
4
+ CGO_ENABLED=0 \
5
+ go install -ldflags=
"-s -w" -trimpath github.com/grpc-ecosystem/grpc-gateway/v2/
[email protected]
6
+
7
+ FROM scratch
8
+ COPY --from=build --link /etc/passwd /etc/passwd
9
+ COPY --from=build --link --chown=root:root /go/bin/protoc-gen-grpc-gateway .
10
+ USER nobody
11
+ ENTRYPOINT [ "/protoc-gen-grpc-gateway" ]
Original file line number Diff line number Diff line change
1
+ version : v1
2
+ name : buf.build/grpc-ecosystem/gateway
3
+ plugin_version : v2.15.1
4
+ source_url : https://github.com/grpc-ecosystem/grpc-gateway
5
+ description : gRPC to JSON proxy generator following the gRPC HTTP spec.
6
+ output_languages :
7
+ - go
8
+ deps :
9
+ - plugin : buf.build/protocolbuffers/go:v1.28.1
10
+ - plugin : buf.build/grpc/go:v1.2.0
11
+ spdx_license_id : BSD-3-Clause
12
+ license_url : https://github.com/grpc-ecosystem/grpc-gateway/blob/v2.15.1/LICENSE.txt
Original file line number Diff line number Diff line change
1
+ *
2
+ ! Dockerfile
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.4
2
+ FROM golang:1.19.6-bullseye AS build
3
+ RUN --mount=type=cache,target=/go/pkg/mod \
4
+ CGO_ENABLED=0 \
5
+ go install -ldflags=
"-s -w" -trimpath github.com/grpc-ecosystem/grpc-gateway/v2/
[email protected]
6
+
7
+ FROM scratch
8
+ COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
9
+ COPY --from=build --link /go/bin/protoc-gen-openapiv2 /
10
+ USER nobody
11
+ ENTRYPOINT [ "/protoc-gen-openapiv2" ]
Original file line number Diff line number Diff line change
1
+ version : v1
2
+ name : buf.build/grpc-ecosystem/openapiv2
3
+ plugin_version : v2.15.1
4
+ source_url : https://github.com/grpc-ecosystem/grpc-gateway
5
+ description : Generates OpenAPI definitions for Protobuf services.
6
+ spdx_license_id : BSD-3-Clause
7
+ license_url : https://github.com/grpc-ecosystem/grpc-gateway/blob/v2.15.1/LICENSE.txt
Original file line number Diff line number Diff line change
1
+ h1:ZXTPSfPU1oy++xlxWB+qwoDIlNv+tU+3lu9spwL1k7Y=
Original file line number Diff line number Diff line change
1
+ h1:QjPCAsCGHD4ysR2z85BUuXnqN8IIcCtnck1HPHY2Hdw=
Original file line number Diff line number Diff line change
1
+ h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Original file line number Diff line number Diff line change
1
+ h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Original file line number Diff line number Diff line change
1
+ h1:i/zjVkZaxoFgKQESrbFwisCaDNzRLPWmUND0XCR+IlI=
Original file line number Diff line number Diff line change
1
+ h1:SybfdW8LTRLCVcNSux9/dP9iFEQFhWbADwdaILiM0EY=
You can’t perform that action at this time.
0 commit comments