https://github.com/yegor-usoltsev/protoc
A lightweight, multi-platform Docker image for the Protocol Buffer Compiler (protoc)
https://github.com/yegor-usoltsev/protoc
docker marshalling protobuf protoc protocol-buffers protocol-compiler serialization
Last synced: about 1 year ago
JSON representation
A lightweight, multi-platform Docker image for the Protocol Buffer Compiler (protoc)
- Host: GitHub
- URL: https://github.com/yegor-usoltsev/protoc
- Owner: yegor-usoltsev
- License: other
- Created: 2024-08-12T10:56:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T01:23:32.000Z (over 1 year ago)
- Last Synced: 2025-02-02T08:14:14.600Z (over 1 year ago)
- Topics: docker, marshalling, protobuf, protoc, protocol-buffers, protocol-compiler, serialization
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# protoc
[](https://github.com/yegor-usoltsev/protoc/actions)
[](https://hub.docker.com/r/yusoltsev/protoc)
[](https://github.com/yegor-usoltsev/protoc/pkgs/container/protoc)
[](https://hub.docker.com/r/yusoltsev/protoc/tags)
A lightweight, multi-platform Docker image for the Protocol Buffer Compiler (`protoc`).
## Overview
This repository provides a Docker image that packages the [Protocol Buffer Compiler (`protoc`)](https://github.com/protocolbuffers/protobuf), a tool developed by Google. `protoc` is integral to the Protocol Buffers framework, which provides a language-neutral, platform-neutral, and extensible mechanism for serializing structured data.
## Usage
To run `protoc` using this Docker image, execute the following command:
```bash
docker run --rm -v $(pwd):$(pwd) -w $(pwd) yusoltsev/protoc [OPTION] PROTO_FILES
```
### Example
Replace `[OPTION]` and `PROTO_FILES` with your specific options and Protocol Buffer files. For instance:
```bash
docker run --rm -v $(pwd):$(pwd) -w $(pwd) yusoltsev/protoc --python_out=. example.proto
```
For detailed help and available options, use:
```bash
docker run --rm yusoltsev/protoc --help
```
## Docker Images
This Docker image is accessible across multiple platforms and can be pulled from the following registries:
- **Docker Hub**: [`yusoltsev/protoc`](https://hub.docker.com/r/yusoltsev/protoc)
- **GitHub Container Registry**: [`ghcr.io/yegor-usoltsev/protoc`](https://ghcr.io/yegor-usoltsev/protoc)
## Contributing
Pull requests are welcome. For major changes, please [open an issue](https://github.com/yegor-usoltsev/protoc/issues/new) first to discuss what you would like to change.
## License
[LICENSE](https://github.com/yegor-usoltsev/protoc/blob/main/LICENSE)
### Acknowledgments
This project is based on the [Protocol Buffer Compiler](https://github.com/protocolbuffers/protobuf) originally developed by Google. The original source code is available under the [Google Protocol Buffers License](https://github.com/protocolbuffers/protobuf/blob/main/LICENSE).