Skip to content

Commit 74534a3

Browse files
Update google-gnostic-openapi (#1959)
1 parent 4e8574c commit 74534a3

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed
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.17
2+
FROM --platform=$BUILDPLATFORM golang:1.25.0-bookworm 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" -trimpath github.com/google/gnostic/cmd/[email protected] \
9+
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-openapi /go/bin/protoc-gen-openapi || true
10+
11+
FROM scratch
12+
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
13+
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-openapi .
14+
USER nobody
15+
ENTRYPOINT [ "/protoc-gen-openapi" ]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: v1
2+
name: buf.build/community/google-gnostic-openapi
3+
plugin_version: v0.7.1
4+
source_url: https://github.com/google/gnostic
5+
integration_guide_url: https://github.com/google/gnostic#installation-and-getting-started
6+
description: Generates an OpenAPI description for a REST API that corresponds to a Protocol Buffer service.
7+
spdx_license_id: Apache-2.0
8+
license_url: https://github.com/google/gnostic/blob/v0.7.1/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:P12cx29lB4V/YBo1t3C3zLK3sXUkukSW/pODhtMPw/0=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:P12cx29lB4V/YBo1t3C3zLK3sXUkukSW/pODhtMPw/0=

0 commit comments

Comments
 (0)