Skip to content

Commit

Permalink
docs: hermetic build README syntax fix (#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 Nov 21, 2024
1 parent 2ac86de commit cf32e72
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 cf32e72

Please sign in to comment.