Files
wasmd/contrib/prototools-docker/README.md
Alexander Peters 550c6f5c4f Containerized Protobuf generation (#304)
* Docker container based Protobuf generation and linting

* Add protobuf comments

* Update contrib/prototools-docker/Dockerfile

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

* Update contrib/prototools-docker/Dockerfile

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

* Update x/wasm/internal/types/msg.proto

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

* Update x/wasm/internal/types/types.proto

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
2020-11-11 12:13:04 +01:00

22 lines
763 B
Markdown

Prototool Docker Helper
=======================
Docker container for all the protobuf generation...
Based on the work by @pseudomuto [prototool-docker](https://github.com/charithe/prototool-docker) project:
Installs generators and tools from:
* https://github.com/bufbuild/buf
* https://github.com/grpc-ecosystem
* https://github.com/regen-network/cosmos-proto
* https://github.com/pseudomuto/protoc-gen-doc
### Build
```shell script
docker build -t cosmwasm/prototools-docker -f ./contrib/prototools-docker/Dockerfile .
```
```shell script
docker run -it -v $(go list -f "{{ .Dir }}" -m github.com/cosmos/cosmos-sdk):/workspace/cosmos_sdk_dir -v $(pwd):/workspace --workdir /workspace --env COSMOS_SDK_DIR=/cosmos_sdk_dir cosmwasm/prototool-docker sh
```