diff --git a/plugins/community/sudorandom-connect-openapi/v0.23.1/.dockerignore b/plugins/community/sudorandom-connect-openapi/v0.23.1/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.23.1/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/sudorandom-connect-openapi/v0.23.1/Dockerfile b/plugins/community/sudorandom-connect-openapi/v0.23.1/Dockerfile new file mode 100644 index 000000000..8f061c105 --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.23.1/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.19 +FROM --platform=$BUILDPLATFORM golang:1.25.6-bookworm AS build + +ARG TARGETOS TARGETARCH +ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH + +RUN --mount=type=cache,target=/go/pkg/mod \ + go install -ldflags "-s -w" -tags remote_plugin -trimpath github.com/sudorandom/protoc-gen-connect-openapi@v0.23.1 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-openapi /go/bin/protoc-gen-connect-openapi || true + +FROM scratch +COPY --from=build --link /etc/passwd /etc/passwd +COPY --from=build --link --chown=root:root /go/bin/protoc-gen-connect-openapi . +USER nobody +ENTRYPOINT [ "/protoc-gen-connect-openapi" ] diff --git a/plugins/community/sudorandom-connect-openapi/v0.23.1/buf.plugin.yaml b/plugins/community/sudorandom-connect-openapi/v0.23.1/buf.plugin.yaml new file mode 100644 index 000000000..79abdae0d --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.23.1/buf.plugin.yaml @@ -0,0 +1,7 @@ +version: v1 +name: buf.build/community/sudorandom-connect-openapi +plugin_version: v0.23.1 +source_url: https://github.com/sudorandom/protoc-gen-connect-openapi +description: Plugin for generating OpenAPIv3 from Protobufs matching the Connect RPC interface. +spdx_license_id: MIT +license_url: https://github.com/sudorandom/protoc-gen-connect-openapi/blob/v0.23.1/LICENSE diff --git a/plugins/connectrpc/python/v0.8.1/.dockerignore b/plugins/connectrpc/python/v0.8.1/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/connectrpc/python/v0.8.1/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/connectrpc/python/v0.8.1/Dockerfile b/plugins/connectrpc/python/v0.8.1/Dockerfile new file mode 100644 index 000000000..f2b559f2c --- /dev/null +++ b/plugins/connectrpc/python/v0.8.1/Dockerfile @@ -0,0 +1,16 @@ +# syntax=docker/dockerfile:1.19 +FROM python:3.11.14-bookworm AS build +WORKDIR /app +RUN python -mvenv /app +RUN . ./bin/activate \ + && pip install --no-cache-dir protoc-gen-connect-python==0.8.1 \ + && pip uninstall --yes pip setuptools \ + && rm -f bin/activate.fish bin/activate.csh bin/Activate.ps1 + +FROM gcr.io/distroless/python3-debian12:latest@sha256:2971dbfa56eb4f2e33e94709579783406c1e7165b2d92edaa5657da5e8040617 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build --chmod=0755 /app /app +USER nobody +ENTRYPOINT [ "/app/bin/protoc-gen-connect-python" ] diff --git a/plugins/connectrpc/python/v0.8.1/buf.plugin.yaml b/plugins/connectrpc/python/v0.8.1/buf.plugin.yaml new file mode 100644 index 000000000..8b22b847c --- /dev/null +++ b/plugins/connectrpc/python/v0.8.1/buf.plugin.yaml @@ -0,0 +1,19 @@ +version: v1 +name: buf.build/connectrpc/python +plugin_version: v0.8.1 +source_url: https://github.com/connectrpc/connect-python +description: Generates client and server stubs for Connect Python. Compatible with the Connect RPC protocol. +spdx_license_id: Apache-2.0 +license_url: https://github.com/connectrpc/connect-python/blob/v0.8.1/LICENSE +deps: + - plugin: buf.build/protocolbuffers/python:v33.4 +output_languages: + - python +registry: + python: + package_type: "runtime" + # https://github.com/connectrpc/connect-python/blob/v0.8.1/protoc-gen-connect-python/pyproject.toml#L11 + requires_python: ">=3.10" + deps: + # https://pypi.org/project/connect-python/ + - "connect-python >= 0.8.1" diff --git a/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.23.1/eliza/plugin.sum b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.23.1/eliza/plugin.sum new file mode 100644 index 000000000..b2078df64 --- /dev/null +++ b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.23.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:bfGIUhYwyjEaVR7OEPgI7au+mx+AM7kC8eo+1ET+VTM= diff --git a/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.23.1/petapis/plugin.sum b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.23.1/petapis/plugin.sum new file mode 100644 index 000000000..00e6d40b1 --- /dev/null +++ b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.23.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:tXvqQAI2yeM8+7VlRR4LY5WOPVz6elhwUNQjC7wJpeM= diff --git a/tests/testdata/buf.build/connectrpc/python/v0.8.1/eliza/plugin.sum b/tests/testdata/buf.build/connectrpc/python/v0.8.1/eliza/plugin.sum new file mode 100644 index 000000000..24697993c --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/python/v0.8.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:fLPygPdFF1wtq9lx5AmwmpvZesff1KvivY4hzaINgb4= diff --git a/tests/testdata/buf.build/connectrpc/python/v0.8.1/petapis/plugin.sum b/tests/testdata/buf.build/connectrpc/python/v0.8.1/petapis/plugin.sum new file mode 100644 index 000000000..c2cdb510b --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/python/v0.8.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:y7oRa12IUFf3recjy0BCv23EQ+I5g/s4/3nLp0EZ6Vc=