Skip to content

Commit

Permalink
feat: add nanopb support
Browse files Browse the repository at this point in the history
  • Loading branch information
strophy committed Mar 16, 2023
1 parent 99ae1ce commit a098f70
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
PROTOC_GEN_GQL_VERSION=${{ env.PROTOC_GEN_GQL_VERSION }}
PROTOC_GEN_JSONSCHEMA_VERSION=${{ env.PROTOC_GEN_JSONSCHEMA_VERSION }}
PROTOC_GEN_LINT_VERSION=${{ env.PROTOC_GEN_LINT_VERSION }}
PROTOC_GEN_NANOPB_VERSION=${{ env.PROTOC_GEN_NANOPB_VERSION }}
PROTOC_GEN_RUST_VERSION=${{ env.PROTOC_GEN_RUST_VERSION }}
PROTOC_GEN_SCALA_VERSION=${{ env.PROTOC_GEN_SCALA_VERSION }}
PROTOC_GEN_TS_VERSION=${{ env.PROTOC_GEN_TS_VERSION }}
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,13 @@ RUN apk add --no-cache \
grpc-plugins \
protobuf \
protobuf-dev \
protobuf-c-compiler
protobuf-c-compiler \
python3
COPY --from=upx /out/ /
COPY --from=protoc_gen_ts /out/ /
COPY --from=protoc_gen_dart /out/ /
COPY --from=protoc_gen_dart /runtime/ /
RUN python3 -m ensurepip && pip3 install --no-cache nanopb
RUN ln -s /usr/bin/grpc_cpp_plugin /usr/bin/protoc-gen-grpc-cpp
RUN ln -s /usr/bin/grpc_csharp_plugin /usr/bin/protoc-gen-grpc-csharp
RUN ln -s /usr/bin/grpc_node_plugin /usr/bin/protoc-gen-grpc-js
Expand Down Expand Up @@ -468,6 +470,7 @@ RUN protoc-wrapper \
--java_out=/test \
--jsonschema_out=/test \
--lint_out=/test \
--nanopb_out=/test \
--php_out=/test \
--python_out=/test \
--ruby_out=/test \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ It started out as https://github.com/znly/docker-protobuf fork, but grew into a
- [infobloxopen/protoc-gen-gorm](https://github.com/infobloxopen/protoc-gen-gorm)
- [moul/protoc-gen-gotemplate](https://github.com/moul/protoc-gen-gotemplate)
- [mwitkow/go-proto-validators](https://github.com/mwitkow/go-proto-validators)
- [nanopb/nanopb](https://github.com/nanopb/nanopb)
- [protobuf-c/protobuf-c](https://github.com/protobuf-c/protobuf-c)
- [pseudomuto/protoc-gen-doc](https://github.com/pseudomuto/protoc-gen-doc)
- [scalapb/scalapb](https://github.com/scalapb/scalapb)
Expand Down
1 change: 1 addition & 0 deletions deps.list
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ PROTOC_GEN_GQL_VERSION=v0.8.0
PROTOC_GEN_JS_VERSION=v3.21.2
PROTOC_GEN_JSONSCHEMA_VERSION=1.4.0
PROTOC_GEN_LINT_VERSION=v0.3.0
PROTOC_GEN_NANOPB_VERSION=0.4.7
PROTOC_GEN_RUST_VERSION=v3.2.0
PROTOC_GEN_SCALA_VERSION=v0.11.13
PROTOC_GEN_TS_VERSION=0.15.0
Expand Down

0 comments on commit a098f70

Please sign in to comment.