diff --git a/plugins/grpc-ecosystem/gateway/v2.15.2/.dockerignore b/plugins/grpc-ecosystem/gateway/v2.15.2/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc-ecosystem/gateway/v2.15.2/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc-ecosystem/gateway/v2.15.2/Dockerfile b/plugins/grpc-ecosystem/gateway/v2.15.2/Dockerfile new file mode 100644 index 000000000..d6a61e88e --- /dev/null +++ b/plugins/grpc-ecosystem/gateway/v2.15.2/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.4 +FROM golang:1.20.1-bullseye AS build +RUN --mount=type=cache,target=/go/pkg/mod \ + CGO_ENABLED=0 \ + go install -ldflags="-s -w" -trimpath github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.15.2 + +FROM scratch +COPY --from=build --link /etc/passwd /etc/passwd +COPY --from=build --link --chown=root:root /go/bin/protoc-gen-grpc-gateway . +USER nobody +ENTRYPOINT [ "/protoc-gen-grpc-gateway" ] diff --git a/plugins/grpc-ecosystem/gateway/v2.15.2/buf.plugin.yaml b/plugins/grpc-ecosystem/gateway/v2.15.2/buf.plugin.yaml new file mode 100644 index 000000000..ad703dcda --- /dev/null +++ b/plugins/grpc-ecosystem/gateway/v2.15.2/buf.plugin.yaml @@ -0,0 +1,12 @@ +version: v1 +name: buf.build/grpc-ecosystem/gateway +plugin_version: v2.15.2 +source_url: https://github.com/grpc-ecosystem/grpc-gateway +description: gRPC to JSON proxy generator following the gRPC HTTP spec. +output_languages: + - go +deps: + - plugin: buf.build/protocolbuffers/go:v1.28.1 + - plugin: buf.build/grpc/go:v1.2.0 +spdx_license_id: BSD-3-Clause +license_url: https://github.com/grpc-ecosystem/grpc-gateway/blob/v2.15.2/LICENSE.txt diff --git a/plugins/grpc-ecosystem/openapiv2/v2.15.2/.dockerignore b/plugins/grpc-ecosystem/openapiv2/v2.15.2/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc-ecosystem/openapiv2/v2.15.2/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc-ecosystem/openapiv2/v2.15.2/Dockerfile b/plugins/grpc-ecosystem/openapiv2/v2.15.2/Dockerfile new file mode 100644 index 000000000..71f8c8da9 --- /dev/null +++ b/plugins/grpc-ecosystem/openapiv2/v2.15.2/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.4 +FROM golang:1.20.1-bullseye AS build +RUN --mount=type=cache,target=/go/pkg/mod \ + CGO_ENABLED=0 \ + go install -ldflags="-s -w" -trimpath github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.15.2 + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link /go/bin/protoc-gen-openapiv2 / +USER nobody +ENTRYPOINT [ "/protoc-gen-openapiv2" ] diff --git a/plugins/grpc-ecosystem/openapiv2/v2.15.2/buf.plugin.yaml b/plugins/grpc-ecosystem/openapiv2/v2.15.2/buf.plugin.yaml new file mode 100644 index 000000000..ae4a8ce6f --- /dev/null +++ b/plugins/grpc-ecosystem/openapiv2/v2.15.2/buf.plugin.yaml @@ -0,0 +1,7 @@ +version: v1 +name: buf.build/grpc-ecosystem/openapiv2 +plugin_version: v2.15.2 +source_url: https://github.com/grpc-ecosystem/grpc-gateway +description: Generates OpenAPI definitions for Protobuf services. +spdx_license_id: BSD-3-Clause +license_url: https://github.com/grpc-ecosystem/grpc-gateway/blob/v2.15.2/LICENSE.txt diff --git a/tests/testdata/buf.build/grpc-ecosystem/gateway/v2.15.2/eliza/plugin.sum b/tests/testdata/buf.build/grpc-ecosystem/gateway/v2.15.2/eliza/plugin.sum new file mode 100644 index 000000000..7d9c0f31d --- /dev/null +++ b/tests/testdata/buf.build/grpc-ecosystem/gateway/v2.15.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= diff --git a/tests/testdata/buf.build/grpc-ecosystem/gateway/v2.15.2/petapis/plugin.sum b/tests/testdata/buf.build/grpc-ecosystem/gateway/v2.15.2/petapis/plugin.sum new file mode 100644 index 000000000..7d9c0f31d --- /dev/null +++ b/tests/testdata/buf.build/grpc-ecosystem/gateway/v2.15.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= diff --git a/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.2/eliza/plugin.sum b/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.2/eliza/plugin.sum new file mode 100644 index 000000000..06875f679 --- /dev/null +++ b/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:i/zjVkZaxoFgKQESrbFwisCaDNzRLPWmUND0XCR+IlI= diff --git a/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.2/petapis/plugin.sum b/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.2/petapis/plugin.sum new file mode 100644 index 000000000..7b9624ad7 --- /dev/null +++ b/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:SybfdW8LTRLCVcNSux9/dP9iFEQFhWbADwdaILiM0EY=