Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 745 Bytes

docker-shortcut.rst

File metadata and controls

28 lines (18 loc) · 745 Bytes
orphan

Docker Shortcut Script

Because code generation requires two mounts from the host machine into the Docker image, and because the paths are somewhat pedantic, you may find this shortcut script to be handy:

../../gapic.sh

Place it somewhere on your system, marked executable.

Once available, it can be invoked using:

# This is assumed to be from the "proto root" directory.
$ gapic.sh --image gcr.io/gapic-images/gapic-generator-python \
    --in path/to/src/protos/
    --out dest/

It will work not only with the Python code generator, but all of our code generators that implement this Docker interface.