-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update connect-kotlin/ts-proto/protoc plugins (#413)
- Loading branch information
1 parent
bc9088a
commit 0e91a3f
Showing
73 changed files
with
728 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM debian:bullseye-20230227 AS build | ||
RUN apt-get update \ | ||
&& apt-get install -y curl | ||
WORKDIR /app | ||
RUN curl -fsSL -o /app/protoc-gen-connect-kotlin.jar https://github.com/bufbuild/connect-kotlin/releases/download/v0.1.4/protoc-gen-connect-kotlin.jar | ||
|
||
FROM gcr.io/distroless/java17-debian11 | ||
WORKDIR /app | ||
COPY --from=build /app/protoc-gen-connect-kotlin.jar /app | ||
CMD ["/app/protoc-gen-connect-kotlin.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/connect-kotlin | ||
plugin_version: v0.1.4 | ||
source_url: https://github.com/bufbuild/connect-kotlin | ||
description: Idiomatic gRPC & Connect RPCs for Kotlin. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/java:v22.2 | ||
output_languages: | ||
- kotlin | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/connect-kotlin/blob/v0.1.4/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!Dockerfile | ||
!package*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM node:18.15.0-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/ts-proto/protoc-gen-ts_proto | ||
|
||
FROM gcr.io/distroless/nodejs18-debian11 | ||
COPY --link --from=build /app /app | ||
USER nobody | ||
ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-ts_proto" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: v1 | ||
name: buf.build/community/stephenh-ts-proto | ||
plugin_version: v1.141.1 | ||
source_url: https://github.com/stephenh/ts-proto | ||
description: An idiomatic protobuf generator for TypeScript. | ||
output_languages: | ||
- typescript | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/stephenh/ts-proto/blob/v1.141.1/LICENSE |
191 changes: 191 additions & 0 deletions
191
plugins/community/stephenh-ts-proto/v1.141.1/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "plugins-stephenh-ts-proto", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"ts-proto": "1.141.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* | ||
!BUILD | ||
!cpp.cc | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cc_binary( | ||
name = "protoc-gen-cpp", | ||
srcs = ["cpp.cc"], | ||
deps = [ | ||
"//:protoc_lib", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM debian:bullseye-20230227 AS build | ||
|
||
ARG TARGETARCH | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y curl git cmake build-essential g++ unzip zip | ||
RUN arch=${TARGETARCH}; \ | ||
if [ "${arch}" = "amd64" ]; then arch="x86_64"; fi; \ | ||
curl -fsSL -o /usr/local/bin/bazel https://github.com/bazelbuild/bazel/releases/download/6.1.0/bazel-6.1.0-linux-${arch} \ | ||
&& chmod +x /usr/local/bin/bazel | ||
|
||
WORKDIR /build | ||
RUN curl -fsSL -o protoc.tar.gz https://github.com/protocolbuffers/protobuf/releases/download/v22.2/protobuf-22.2.tar.gz \ | ||
&& tar --strip-components=1 -zxf protoc.tar.gz \ | ||
&& rm protoc.tar.gz | ||
RUN bazel build '//:protoc_lib' | ||
COPY --link BUILD cpp.cc plugins/ | ||
RUN bazel build '//plugins:protoc-gen-cpp.stripped' | ||
|
||
FROM gcr.io/distroless/cc-debian11 | ||
COPY --from=build --link --chmod=0755 /build/bazel-bin/plugins/protoc-gen-cpp . | ||
USER nobody | ||
ENTRYPOINT ["/protoc-gen-cpp"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: v1 | ||
name: buf.build/protocolbuffers/cpp | ||
plugin_version: v22.2 | ||
source_url: https://github.com/protocolbuffers/protobuf | ||
description: Base types for C++. Generates message and enum types. | ||
output_languages: | ||
- cpp | ||
spdx_license_id: BSD-3-Clause | ||
license_url: https://github.com/protocolbuffers/protobuf/blob/v22.2/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <google/protobuf/compiler/cpp/generator.h> | ||
#include <google/protobuf/compiler/plugin.h> | ||
|
||
int main(int argc, char *argv[]) { | ||
google::protobuf::compiler::cpp::CppGenerator generator; | ||
return google::protobuf::compiler::PluginMain(argc, argv, &generator); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* | ||
!BUILD | ||
!csharp.cc | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cc_binary( | ||
name = "protoc-gen-csharp", | ||
srcs = ["csharp.cc"], | ||
deps = [ | ||
"//:protoc_lib", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM debian:bullseye-20230227 AS build | ||
|
||
ARG TARGETARCH | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y curl git cmake build-essential g++ unzip zip | ||
RUN arch=${TARGETARCH}; \ | ||
if [ "${arch}" = "amd64" ]; then arch="x86_64"; fi; \ | ||
curl -fsSL -o /usr/local/bin/bazel https://github.com/bazelbuild/bazel/releases/download/6.1.0/bazel-6.1.0-linux-${arch} \ | ||
&& chmod +x /usr/local/bin/bazel | ||
|
||
WORKDIR /build | ||
RUN curl -fsSL -o protoc.tar.gz https://github.com/protocolbuffers/protobuf/releases/download/v22.2/protobuf-22.2.tar.gz \ | ||
&& tar --strip-components=1 -zxf protoc.tar.gz \ | ||
&& rm protoc.tar.gz | ||
RUN bazel build '//:protoc_lib' | ||
COPY --link BUILD csharp.cc plugins/ | ||
RUN bazel build '//plugins:protoc-gen-csharp.stripped' | ||
|
||
FROM gcr.io/distroless/cc-debian11 | ||
COPY --from=build --link --chmod=0755 /build/bazel-bin/plugins/protoc-gen-csharp . | ||
USER nobody | ||
ENTRYPOINT ["/protoc-gen-csharp"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: v1 | ||
name: buf.build/protocolbuffers/csharp | ||
plugin_version: v22.2 | ||
source_url: https://github.com/protocolbuffers/protobuf | ||
description: Base types for C#. Generates message and enum types. | ||
output_languages: | ||
- csharp | ||
spdx_license_id: BSD-3-Clause | ||
license_url: https://github.com/protocolbuffers/protobuf/blob/v22.2/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <google/protobuf/compiler/csharp/csharp_generator.h> | ||
#include <google/protobuf/compiler/plugin.h> | ||
|
||
int main(int argc, char *argv[]) { | ||
google::protobuf::compiler::csharp::Generator generator; | ||
return google::protobuf::compiler::PluginMain(argc, argv, &generator); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* | ||
!BUILD | ||
!Dockerfile | ||
!java.cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cc_binary( | ||
name = "protoc-gen-java", | ||
srcs = ["java.cc"], | ||
deps = [ | ||
"//:protoc_lib", | ||
], | ||
) |
Oops, something went wrong.