@@ -130,33 +130,5 @@ provided by this library, use the special `DEFAULT` string:
130130 --python_gapic_opt="python-gapic-templates=/path/to/templates"
131131 --python_gapic_opt="python-gapic-templates=DEFAULT"
132132
133- Building with Docker
134- ~~~~~~~~~~~~~~~~~~~~
135-
136- When building with Docker, you instead provide the ``--python-gapic-templates ``
137- argument after the ``docker run `` command:
138-
139- .. code-block :: shell
140-
141- $ docker run \
142- --mount type=bind,source=google/cloud/vision/v1/,destination=/in/google/cloud/vision/v1/,readonly \
143- --mount type=bind,source=dest/,destination=/out/ \
144- --mount type=bind,source=/path/to/templates,destination=/templates/,readonly \
145- --rm \
146- --user $UID \
147- gcr.io/gapic-images/gapic-generator-python \
148- --python-gapic-templates /templates/ \
149- --python-gapic-templates DEFAULT
150-
151- As before, to provide more than one location for templates, specify the
152- argument more than once.
153-
154- .. warning ::
155-
156- If you are using custom templates with Docker, be sure to also mount
157- the directory with the templates into the Docker image; otherwise
158- the generator will not be able to read that directory. When specifying
159- the ``--python-gapic-templates `` argument, it is the path *inside *
160- the Docker image that matters!
161133
162134.. _Jinja : http://jinja.pocoo.org/docs/2.10/
0 commit comments