Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plugins/bufbuild/py/v0.6.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!requirements.txt
18 changes: 18 additions & 0 deletions plugins/bufbuild/py/v0.6.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# syntax=docker/dockerfile:1.26
FROM python:3.13.15-trixie@sha256:82c46c08c991d3d3ff10476ac5e386c2c28f27bbd3985a02c5e39fe99ab272eb AS build
WORKDIR /app
RUN python -mvenv /app
ADD /requirements.txt requirements.txt
RUN . ./bin/activate \
&& pip install --no-cache-dir -r requirements.txt \
&& pip uninstall --yes pip setuptools \
&& rm -f requirements.txt bin/activate.fish bin/activate.csh bin/Activate.ps1 \
&& ln -sf /usr/bin/python /app/bin/python

FROM gcr.io/distroless/python3-debian13:latest@sha256:e866e2f9fbaa19f63e579cf2f61b7f76cd8a74c43a62a0af95d48678d9878436 AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=build --chmod=0755 /app /app
USER nobody
CMD [ "/app/bin/protoc-gen-py" ]
21 changes: 21 additions & 0 deletions plugins/bufbuild/py/v0.6.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: v1
name: buf.build/bufbuild/py
plugin_version: v0.6.0
source_url: https://github.com/bufbuild/protobuf-py
integration_guide_url: https://protobufpy.com/getting-started/quickstart/
description: Generates idiomatic Python code from Protocol Buffers definitions using protobuf-py.
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protobuf-py/blob/v0.6.0/LICENSE
output_languages:
- python
registry:
python:
package_type: "runtime"
requires_python: ">=3.10"
deps:
# https://pypi.org/project/protobuf-py/
- "protobuf-py>=0.6.0"
opts:
# Produce PEP 420 namespace packages so the py, grpc-py, and dependency
# SDKs for a module can share the same top-level package.
- init_files=false
2 changes: 2 additions & 0 deletions plugins/bufbuild/py/v0.6.0/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
protoc-gen-py==0.6.0
protobuf-py==0.6.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/community/sudorandom-connect-openapi/v0.28.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.26
FROM --platform=$BUILDPLATFORM golang:1.27.1-trixie@sha256:433790e515d27dc6003e847e644cc0af956985cf315c1c58a3b73ee2dd305183 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.28.0 \
&& 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" ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: v1
name: buf.build/community/sudorandom-connect-openapi
plugin_version: v0.28.0
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.28.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:+z43tE9Eiy6oBjXf96HRFnO4cvdlzGx4A5WLXQoZpwI=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:jdlGtvneNPT1uvaB/EEKeGgif/zbEiO3D6IQ49uEsv4=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:oQTFzs5dGIFVnoJTqikV0/BapjAFUoE07xkUIBWPzSU=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:ZH9B/SdkQTUdBT6XzJ6epya8FEP7YzfpkwsMMBXIIA8=
Loading