summaryrefslogtreecommitdiffhomepage
path: root/tools/vm/README.md
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-12-09 09:31:44 -0800
committerShentubot <shentubot@google.com>2020-12-09 15:53:23 -0800
commita855a814d601a4c30f26743ef1bf016df956e042 (patch)
treeb017a831f6eff9c9734663114bbdf39fc4b6ffc7 /tools/vm/README.md
parentf6cb96bd57dec4e3baa8c57ccdeb0f1d8706b682 (diff)
Refactor the Makefile to avoid recursive Make.
Recursive make is difficult to follow and debug. Drop this by using internal functions, which, while difficult, are easier than trying to following recursive invokations. Further simplify the Makefile by collapsing the image bits and removing the tools/vm directory, which is effectively unused. Fixes #4952 PiperOrigin-RevId: 346569133
Diffstat (limited to 'tools/vm/README.md')
-rw-r--r--tools/vm/README.md48
1 files changed, 0 insertions, 48 deletions
diff --git a/tools/vm/README.md b/tools/vm/README.md
deleted file mode 100644
index 1e9859e66..000000000
--- a/tools/vm/README.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# VM Images & Tests
-
-All commands in this directory require the `gcloud` project to be set.
-
-For example: `gcloud config set project gvisor-kokoro-testing`.
-
-Images can be generated by using the `vm_image` rule. This rule will generate a
-binary target that builds an image in an idempotent way, and can be referenced
-from other rules.
-
-For example:
-
-```
-vm_image(
- name = "ubuntu",
- project = "ubuntu-1604-lts",
- family = "ubuntu-os-cloud",
- scripts = [
- "script.sh",
- "other.sh",
- ],
-)
-```
-
-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.
-
-The `vm_test` rule can be used to execute a command remotely. This is still
-under development however, and will likely change over time.
-
-For example:
-
-```
-vm_test(
- name = "mycommand",
- image = ":ubuntu",
- targets = [":test"],
-)
-```