summaryrefslogtreecommitdiffhomepage
path: root/tools/vm/README.md
diff options
context:
space:
mode:
authorTing-Yu Wang <anivia@google.com>2020-07-15 12:15:11 -0700
committergVisor bot <gvisor-bot@google.com>2020-07-15 12:20:23 -0700
commit1d11c403787b360140dd08be3a25c5689a89c7a0 (patch)
tree5936788ddd87803fce65954ddfe40de94a1b423e /tools/vm/README.md
parent8939fae0af9dc8e1cdf2553339fee35b684fc828 (diff)
Fix errors not getting caught when building vm image.
`set -e` does not catch errors in bash command substituions like `echo $(bad cmd)` so bazel thinks it succeeded and cached the result. PiperOrigin-RevId: 321412327
Diffstat (limited to 'tools/vm/README.md')
-rw-r--r--tools/vm/README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/vm/README.md b/tools/vm/README.md
index 898c95fca..1e9859e66 100644
--- a/tools/vm/README.md
+++ b/tools/vm/README.md
@@ -25,6 +25,12 @@ vm_image(
These images can be built manually by executing the target. The output on
`stdout` will be the image id (in the current project).
+For example:
+
+```
+$ bazel build :ubuntu
+```
+
Images are always named per the hash of all the hermetic input scripts. This
allows images to be memoized quickly and easily.