File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ *
2+ ! Dockerfile
3+ ! requirements.txt
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1.26
2+ FROM python:3.13.15-trixie@sha256:4a0820d8b1b1a1e012a23ff9a1296a3e28b48896a4d27a328a91ee197ce619d9 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:f2b206661cee3edb44f132d7f054a9ced96f671d8a973de0db750895c9acb2fb 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" ]
Original file line number Diff line number Diff line change 1+ version : v1
2+ name : buf.build/bufbuild/py
3+ plugin_version : v0.4.0
4+ source_url : https://github.com/bufbuild/protobuf-py
5+ description : Generates idiomatic Python code from Protocol Buffers definitions using protobuf-py.
6+ spdx_license_id : Apache-2.0
7+ license_url : https://github.com/bufbuild/protobuf-py/blob/v0.4.0/LICENSE
8+ output_languages :
9+ - python
10+ registry :
11+ python :
12+ package_type : " runtime"
13+ requires_python : " >=3.10"
14+ deps :
15+ # https://pypi.org/project/protobuf-py/
16+ - " protobuf-py>=0.4.0"
17+ opts :
18+ # Produce PEP 420 namespace packages so the py, grpc-py, and dependency
19+ # SDKs for a module can share the same top-level package.
20+ - init_files=false
Original file line number Diff line number Diff line change 1+ protoc-gen-py == 0.4.0
2+ protobuf-py == 0.4.0
Original file line number Diff line number Diff line change 1+ *
2+ ! Dockerfile
3+ ! pom.xml
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1.26
2+ FROM debian:trixie-20260824@sha256:f324c7ff54321e8d9c588493a20244965938ce0aa50bbd1022d38010e9ffc4b1 AS build
3+
4+ ARG TARGETARCH
5+
6+ WORKDIR /build
7+ RUN apt-get update \
8+ && apt-get install -y curl
9+ RUN arch=${TARGETARCH}; \
10+ if [ "${arch}" = "arm64" ]; then\
11+ arch="aarch_64" ; \
12+ elif [ "${arch}" = "amd64" ]; then\
13+ arch="x86_64" ; \
14+ fi; \
15+ echo "${arch}" ; \
16+ curl -fsSL -o protoc-gen-grpc-java https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.84.0/protoc-gen-grpc-java-1.84.0-linux-${arch}.exe
17+
18+ FROM gcr.io/distroless/cc-debian13:latest@sha256:9b615fff20e1a4fad29c2b30562580b212c7dd5e2225236735cca0070ed11c78 AS base
19+
20+ FROM maven:3.9.11-eclipse-temurin-21 AS maven-deps
21+ COPY pom.xml /tmp/pom.xml
22+ RUN cd /tmp && mvn -f pom.xml dependency:go-offline
23+
24+ FROM scratch
25+ COPY --link --from=base / /
26+ COPY --link --from=build --chmod=0755 --chown=root:root /build/protoc-gen-grpc-java .
27+ COPY --from=maven-deps /root/.m2/repository /maven-repository
28+ USER nobody
29+ ENTRYPOINT [ "/protoc-gen-grpc-java" ]
Original file line number Diff line number Diff line change 1+ version : v1
2+ name : buf.build/grpc/java
3+ plugin_version : v1.84.0
4+ source_url : https://github.com/grpc/grpc-java
5+ integration_guide_url : https://grpc.io/docs/languages/java/quickstart
6+ description : Generates Java client and server stubs for the gRPC framework.
7+ deps :
8+ - plugin : buf.build/protocolbuffers/java:v36.1
9+ output_languages :
10+ - java
11+ spdx_license_id : Apache-2.0
12+ license_url : https://github.com/grpc/grpc-java/blob/v1.84.0/LICENSE
13+ registry :
14+ maven :
15+ deps :
16+ - io.grpc:grpc-core:1.84.0
17+ - io.grpc:grpc-protobuf:1.84.0
18+ - io.grpc:grpc-stub:1.84.0
19+ # Add direct dependency on newer protobuf as gRPC is still on 3.25.8
20+ - com.google.protobuf:protobuf-java:4.36.1
21+ additional_runtimes :
22+ - name : lite
23+ deps :
24+ - io.grpc:grpc-core:1.84.0
25+ - io.grpc:grpc-protobuf-lite:1.84.0
26+ - io.grpc:grpc-stub:1.84.0
27+ # Add direct dependency on newer protobuf as gRPC is still on 3.25.8
28+ - com.google.protobuf:protobuf-javalite:4.36.1
29+ - build.buf:protobuf-javalite:4.36.1
30+ opts : [lite]
Original file line number Diff line number Diff line change 1+ <project >
2+ <modelVersion >4.0.0</modelVersion >
3+ <groupId >temp</groupId >
4+ <artifactId >temp</artifactId >
5+ <version >1.0</version >
6+ <dependencies >
7+ <dependency >
8+ <groupId >io.grpc</groupId >
9+ <artifactId >grpc-core</artifactId >
10+ <version >1.84.0</version >
11+ </dependency >
12+ <dependency >
13+ <groupId >io.grpc</groupId >
14+ <artifactId >grpc-protobuf</artifactId >
15+ <version >1.84.0</version >
16+ </dependency >
17+ <dependency >
18+ <groupId >io.grpc</groupId >
19+ <artifactId >grpc-stub</artifactId >
20+ <version >1.84.0</version >
21+ </dependency >
22+ <dependency >
23+ <groupId >com.google.protobuf</groupId >
24+ <artifactId >protobuf-java</artifactId >
25+ <version >4.36.1</version >
26+ </dependency >
27+ <!-- lite -->
28+ <dependency >
29+ <groupId >io.grpc</groupId >
30+ <artifactId >grpc-protobuf-lite</artifactId >
31+ <version >1.84.0</version >
32+ </dependency >
33+ <dependency >
34+ <groupId >com.google.protobuf</groupId >
35+ <artifactId >protobuf-javalite</artifactId >
36+ <version >4.36.1</version >
37+ </dependency >
38+ <dependency >
39+ <groupId >build.buf</groupId >
40+ <artifactId >protobuf-javalite</artifactId >
41+ <version >4.36.1</version >
42+ </dependency >
43+ </dependencies >
44+ </project >
Original file line number Diff line number Diff line change 1+ h1:C7/HzSNwuNq5SxoaJ4FI9hkJnmFIiiexTn3aANdc44Y=
Original file line number Diff line number Diff line change 1+ h1:HbSCznhYuqjJGQmhFW7oywbQC8k0LVX9UrNZSm6m3gI=
You can’t perform that action at this time.
0 commit comments