Skip to content

Commit

Permalink
docs: hermetic build README syntax fix (googleapis#3391)
Browse files Browse the repository at this point in the history
Providing the same `/workspace` mount point for two volumes produces an
error. Expected second mount point is `/workspace/apis`
  • Loading branch information
burkedavison authored and lqiu96 committed Nov 25, 2024
1 parent 0abbe44 commit ff19117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hermetic_build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ libraries:
--quiet \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/workspace" \
-v /path/to/api_definition:/workspace \
-v /path/to/api_definition:/workspace/apis \
gcr.io/cloud-devrel-public-resources/java-library-generation:image-tag
```

Expand All @@ -232,7 +232,7 @@ libraries:
* `-v "$(pwd):/workspace"` maps the host machine's current working directory
to the /workspace folder.
The image is configured to perform changes in this directory.
* `-v /path/to/api_definition:/workspace` maps the host machine's API
* `-v /path/to/api_definition:/workspace/apis` maps the host machine's API
definitions folder to `/workspace/apis` folder.

3. An advanced example:
Expand Down

0 comments on commit ff19117

Please sign in to comment.