Skip to content

Commit

Permalink
add connect-go v1.4.1, connect-web v0.5.0, protobuf-es v1.0.0 (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Dec 20, 2022
1 parent 6945bf2 commit 4a6c9df
Show file tree
Hide file tree
Showing 19 changed files with 408 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/bufbuild/connect-go/v1.4.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
11 changes: 11 additions & 0 deletions plugins/bufbuild/connect-go/v1.4.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.4
FROM golang:1.19.4-bullseye AS build
RUN --mount=type=cache,target=/go/pkg/mod \
CGO_ENABLED=0 \
go install -ldflags="-s -w" -trimpath github.com/bufbuild/connect-go/cmd/[email protected]

FROM scratch
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
COPY --from=build --link /go/bin/protoc-gen-connect-go /
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-go" ]
19 changes: 19 additions & 0 deletions plugins/bufbuild/connect-go/v1.4.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: v1
name: buf.build/bufbuild/connect-go
plugin_version: v1.4.1
source_url: https://github.com/bufbuild/connect-go
description: Generates client and server stubs for connect-go. Compatible with the gRPC, gRPC-Web, and Connect RPC protocols.
deps:
- plugin: buf.build/protocolbuffers/go:v1.28.1
output_languages:
- go
registry:
go:
min_version: "1.18"
deps:
- module: github.com/bufbuild/connect-go
version: v1.4.1
opts:
- paths=source_relative
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/connect-go/blob/v1.4.1/LICENSE
3 changes: 3 additions & 0 deletions plugins/bufbuild/connect-web/v0.5.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!package*.json
11 changes: 11 additions & 0 deletions plugins/bufbuild/connect-web/v0.5.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.4
FROM node:18.12.1-alpine3.17 AS build
WORKDIR /app
COPY --link package*.json .
RUN npm ci
RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/@bufbuild/protoc-gen-connect-web/bin/protoc-gen-connect-web

FROM gcr.io/distroless/nodejs18-debian11
COPY --link --from=build /app /app
USER nobody
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-connect-web" ]
19 changes: 19 additions & 0 deletions plugins/bufbuild/connect-web/v0.5.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: v1
name: buf.build/bufbuild/connect-web
plugin_version: v0.5.0
source_url: https://github.com/bufbuild/connect-web
description: Generates client stubs for calling Connect and gRPC-Web services from a web browser.
deps:
- plugin: buf.build/bufbuild/es:v1.0.0
output_languages:
- javascript
- typescript
registry:
npm:
import_style: module
rewrite_import_path_suffix: connectweb.js
deps:
- package: '@bufbuild/connect-web'
version: ^0.5.0
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/connect-web/blob/v0.5.0/LICENSE
148 changes: 148 additions & 0 deletions plugins/bufbuild/connect-web/v0.5.0/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions plugins/bufbuild/connect-web/v0.5.0/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "plugins-bufbuild-connect-web",
"version": "1.0.0",
"dependencies": {
"@bufbuild/protoc-gen-connect-web": "0.5.0"
}
}
3 changes: 3 additions & 0 deletions plugins/bufbuild/es/v1.0.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!package*.json
11 changes: 11 additions & 0 deletions plugins/bufbuild/es/v1.0.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.4
FROM node:18.12.1-alpine3.17 AS build
WORKDIR /app
COPY --link package*.json .
RUN npm ci
RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/@bufbuild/protoc-gen-es/bin/protoc-gen-es

FROM gcr.io/distroless/nodejs18-debian11
COPY --link --from=build /app /app
USER nobody
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-es" ]
17 changes: 17 additions & 0 deletions plugins/bufbuild/es/v1.0.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: v1
name: buf.build/bufbuild/es
plugin_version: v1.0.0
source_url: https://github.com/bufbuild/protobuf-es
description: Base types for TypeScript/JavaScript for use in web browsers and Node.js. Generates message and enum types.
output_languages:
- javascript
- typescript
registry:
npm:
import_style: module
rewrite_import_path_suffix: pb.js
deps:
- package: '@bufbuild/protobuf'
version: ^1.0.0
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protobuf-es/blob/v1.0.0/LICENSE
Loading

0 comments on commit 4a6c9df

Please sign in to comment.