diff --git a/plugins/community/nanopb/v0.4.93/.dockerignore b/plugins/community/nanopb/v0.4.93/.dockerignore new file mode 100644 index 000000000..c8a679bc6 --- /dev/null +++ b/plugins/community/nanopb/v0.4.93/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!requirements.txt diff --git a/plugins/community/nanopb/v0.4.93/Dockerfile b/plugins/community/nanopb/v0.4.93/Dockerfile new file mode 100644 index 000000000..0cfee1163 --- /dev/null +++ b/plugins/community/nanopb/v0.4.93/Dockerfile @@ -0,0 +1,18 @@ +# syntax=docker/dockerfile:1.27 +FROM python:3.13.18-trixie@sha256:51db6babcbd039687e5362a676db5444b5926739abb03b10c8c6a8144872611f 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 \ + && 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:5bac3c3ab33426c460db63504cd1a267b3326b9f804d21c63359492858d1beda AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build --chmod=0755 /app /app +USER nobody +ENTRYPOINT ["/app/bin/protoc-gen-nanopb"] diff --git a/plugins/community/nanopb/v0.4.93/buf.plugin.yaml b/plugins/community/nanopb/v0.4.93/buf.plugin.yaml new file mode 100644 index 000000000..090df7c96 --- /dev/null +++ b/plugins/community/nanopb/v0.4.93/buf.plugin.yaml @@ -0,0 +1,9 @@ +version: v1 +name: buf.build/community/nanopb +plugin_version: v0.4.93 +source_url: https://github.com/nanopb/nanopb +description: Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is especially suitable for use in microcontrollers, but fits any memory restricted system. +output_languages: + - c +spdx_license_id: Zlib +license_url: https://github.com/nanopb/nanopb/blob/0.4.93/LICENSE.txt diff --git a/plugins/community/nanopb/v0.4.93/requirements.txt b/plugins/community/nanopb/v0.4.93/requirements.txt new file mode 100644 index 000000000..27ba368c0 --- /dev/null +++ b/plugins/community/nanopb/v0.4.93/requirements.txt @@ -0,0 +1 @@ +nanopb==0.4.9.3 diff --git a/tests/testdata/buf.build/community/nanopb/v0.4.93/eliza/plugin.sum b/tests/testdata/buf.build/community/nanopb/v0.4.93/eliza/plugin.sum new file mode 100644 index 000000000..9d6606c54 --- /dev/null +++ b/tests/testdata/buf.build/community/nanopb/v0.4.93/eliza/plugin.sum @@ -0,0 +1 @@ +h1:V0ovkydao5S4W88FjWoPLiQ1neryTMmXPYZZA7UMFoc= diff --git a/tests/testdata/buf.build/community/nanopb/v0.4.93/petapis/plugin.sum b/tests/testdata/buf.build/community/nanopb/v0.4.93/petapis/plugin.sum new file mode 100644 index 000000000..eff09c512 --- /dev/null +++ b/tests/testdata/buf.build/community/nanopb/v0.4.93/petapis/plugin.sum @@ -0,0 +1 @@ +h1:RtZf4Em/C5SA3xlR2qXe6nZ3v3e11KxsxmM14CLR14A=