protoc

Protoc Docker Image

自动构建

这是包含gogo插件的Google Protobuf编译器protoc的Docker镜像,基于nanoservice的镜像,用于编译.proto文件生成多种语言的代码。

1 次收藏下载次数: 0状态:自动构建维护者:calico仓库类型:镜像最近更新:
下载命令
点击查看

protobuf 3 docker

https://registry.hub.docker.com/u/calico/protoc/

Docker image with protoc 3 and gogo plugin. Based on the work by nanoservice.

Usage

# Just print protobuf help message
docker run -it --rm \
  calico/protoc --help

# Use current folder for input and output
docker run -it --rm -v $PWD:/src:rw \
  calico/protoc --cpp_out=. *.proto

# If you ran into problems with user uid and gid (*** scripting it)
docker run -it --rm -v $PWD:/user-src:rw -u $(id -u):$(id -g) -w /user-src \
  calico/protoc --cpp_out=. *.proto

Contributors

  • Tigera (added gogo)
  • Based on the work by https://github.com/waterlink Oleksii Fedorov, creator, maintainer

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 protoc 镜像标签

docker pull docker.xuanyuan.run/calico/protoc:<标签>

DockerHub 原生拉取命令

docker pull calico/protoc:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告