Skip to content

Commit

Permalink
Add protoc-gen-openapi v0.7.0 (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman authored Oct 10, 2023
1 parent 20622b5 commit 6874ed2
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/community/google-gnostic-openapi/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source:
github:
owner: google
repository: gnostic
2 changes: 2 additions & 0 deletions plugins/community/google-gnostic-openapi/v0.7.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
11 changes: 11 additions & 0 deletions plugins/community/google-gnostic-openapi/v0.7.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.6
FROM golang:1.21.2-bullseye AS build
RUN --mount=type=cache,target=/go/pkg/mod \
CGO_ENABLED=0 \
go install -ldflags="-s -w" -trimpath github.com/google/gnostic/cmd/[email protected]

FROM scratch
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-openapi .
USER nobody
ENTRYPOINT [ "/protoc-gen-openapi" ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: v1
name: buf.build/community/google-gnostic-openapi
plugin_version: v0.7.0
source_url: https://github.com/google/gnostic
description: Generates an OpenAPI description for a REST API that corresponds to a Protocol Buffer service.
output_languages:
- go
spdx_license_id: Apache-2.0
license_url: https://github.com/google/gnostic/blob/v0.7.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:P12cx29lB4V/YBo1t3C3zLK3sXUkukSW/pODhtMPw/0=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:P12cx29lB4V/YBo1t3C3zLK3sXUkukSW/pODhtMPw/0=

0 comments on commit 6874ed2

Please sign in to comment.