Skip to content

Commit 211297c

Browse files
detected new plugin versions
1 parent 273eff9 commit 211297c

11 files changed

Lines changed: 72 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!Dockerfile
3+
!requirements.txt
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# syntax=docker/dockerfile:1.26
2+
FROM python:3.13.15-trixie@sha256:82c46c08c991d3d3ff10476ac5e386c2c28f27bbd3985a02c5e39fe99ab272eb AS build
3+
WORKDIR /app
4+
RUN python -mvenv /app
5+
ADD /requirements.txt requirements.txt
6+
RUN . ./bin/activate \
7+
&& pip install --no-cache-dir -r requirements.txt \
8+
&& pip uninstall --yes pip setuptools \
9+
&& rm -f requirements.txt bin/activate.fish bin/activate.csh bin/Activate.ps1 \
10+
&& ln -sf /usr/bin/python /app/bin/python
11+
12+
FROM gcr.io/distroless/python3-debian13:latest@sha256:e866e2f9fbaa19f63e579cf2f61b7f76cd8a74c43a62a0af95d48678d9878436 AS base
13+
14+
FROM scratch
15+
COPY --link --from=base / /
16+
COPY --link --from=build --chmod=0755 /app /app
17+
USER nobody
18+
CMD [ "/app/bin/protoc-gen-py" ]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: v1
2+
name: buf.build/bufbuild/py
3+
plugin_version: v0.6.0
4+
source_url: https://github.com/bufbuild/protobuf-py
5+
integration_guide_url: https://protobufpy.com/getting-started/quickstart/
6+
description: Generates idiomatic Python code from Protocol Buffers definitions using protobuf-py.
7+
spdx_license_id: Apache-2.0
8+
license_url: https://github.com/bufbuild/protobuf-py/blob/v0.6.0/LICENSE
9+
output_languages:
10+
- python
11+
registry:
12+
python:
13+
package_type: "runtime"
14+
requires_python: ">=3.10"
15+
deps:
16+
# https://pypi.org/project/protobuf-py/
17+
- "protobuf-py>=0.6.0"
18+
opts:
19+
# Produce PEP 420 namespace packages so the py, grpc-py, and dependency
20+
# SDKs for a module can share the same top-level package.
21+
- init_files=false
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
protoc-gen-py==0.6.0
2+
protobuf-py==0.6.0
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# syntax=docker/dockerfile:1.26
2+
FROM --platform=$BUILDPLATFORM golang:1.27.1-trixie@sha256:433790e515d27dc6003e847e644cc0af956985cf315c1c58a3b73ee2dd305183 AS build
3+
4+
ARG TARGETOS TARGETARCH
5+
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
6+
7+
RUN --mount=type=cache,target=/go/pkg/mod \
8+
go install -ldflags "-s -w" -tags remote_plugin -trimpath github.com/sudorandom/protoc-gen-connect-openapi@v0.28.0 \
9+
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-openapi /go/bin/protoc-gen-connect-openapi || true
10+
11+
FROM scratch
12+
COPY --from=build --link /etc/passwd /etc/passwd
13+
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-connect-openapi .
14+
USER nobody
15+
ENTRYPOINT [ "/protoc-gen-connect-openapi" ]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: v1
2+
name: buf.build/community/sudorandom-connect-openapi
3+
plugin_version: v0.28.0
4+
source_url: https://github.com/sudorandom/protoc-gen-connect-openapi
5+
description: Plugin for generating OpenAPIv3 from Protobufs matching the Connect RPC interface.
6+
spdx_license_id: MIT
7+
license_url: https://github.com/sudorandom/protoc-gen-connect-openapi/blob/v0.28.0/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:+z43tE9Eiy6oBjXf96HRFnO4cvdlzGx4A5WLXQoZpwI=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:jdlGtvneNPT1uvaB/EEKeGgif/zbEiO3D6IQ49uEsv4=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:oQTFzs5dGIFVnoJTqikV0/BapjAFUoE07xkUIBWPzSU=

0 commit comments

Comments
 (0)