diff --git a/plugins/community/chrusty-jsonschema/v1.4.0/.dockerignore b/plugins/community/chrusty-jsonschema/v1.4.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/chrusty-jsonschema/v1.4.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/chrusty-jsonschema/v1.4.0/Dockerfile b/plugins/community/chrusty-jsonschema/v1.4.0/Dockerfile new file mode 100644 index 000000000..df9856fce --- /dev/null +++ b/plugins/community/chrusty-jsonschema/v1.4.0/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.4 +FROM golang:1.20.2-bullseye AS build +RUN --mount=type=cache,target=/go/pkg/mod \ + CGO_ENABLED=0 \ + go install -ldflags "-s -w" -trimpath github.com/chrusty/protoc-gen-jsonschema/cmd/protoc-gen-jsonschema@1.4.0 + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link --chown=root:root /go/bin/protoc-gen-jsonschema / +USER nobody +ENTRYPOINT [ "/protoc-gen-jsonschema" ] diff --git a/plugins/community/chrusty-jsonschema/v1.4.0/buf.plugin.yaml b/plugins/community/chrusty-jsonschema/v1.4.0/buf.plugin.yaml new file mode 100644 index 000000000..995d908bf --- /dev/null +++ b/plugins/community/chrusty-jsonschema/v1.4.0/buf.plugin.yaml @@ -0,0 +1,7 @@ +version: v1 +name: buf.build/community/chrusty-jsonschema +plugin_version: v1.4.0 +source_url: https://github.com/chrusty/protoc-gen-jsonschema +description: Converts protobuf definitions into JSON Schemas, which can be used to dynamically validate JSON messages. +spdx_license_id: Apache-2.0 +license_url: https://github.com/chrusty/protoc-gen-jsonschema/blob/1.4.0/LICENSE diff --git a/tests/testdata/buf.build/community/chrusty-jsonschema/v1.4.0/eliza/plugin.sum b/tests/testdata/buf.build/community/chrusty-jsonschema/v1.4.0/eliza/plugin.sum new file mode 100644 index 000000000..02f4ecec8 --- /dev/null +++ b/tests/testdata/buf.build/community/chrusty-jsonschema/v1.4.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:tnQpL/PE7EvJkOcy0A4F8G40ki/+3hnDERt6SbNahdQ= diff --git a/tests/testdata/buf.build/community/chrusty-jsonschema/v1.4.0/petapis/plugin.sum b/tests/testdata/buf.build/community/chrusty-jsonschema/v1.4.0/petapis/plugin.sum new file mode 100644 index 000000000..23cf9eaca --- /dev/null +++ b/tests/testdata/buf.build/community/chrusty-jsonschema/v1.4.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:13tUpzHkyYT4W4QCW4Nkudd1KofGEtZ5HU8zDUECCXM=