cos_gpu_installer: add --prepare-build-tools flag which populates toolchain cache

This flag can be used to populate the build tools cache. This includes
downloading and installing the toolchain and the kernel headers which
are a pre-requisite to the nvidia driver installer. Using this flag will NOT
install the driver and this will not depend on existence of a GPU
attached to the instance.

BUG=b/175236375
TEST=manual invokation of installer with --prepare-build-tools

Change-Id: I7414efdb8ee9ff380358fe3e6cd86f3c232778ab
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/30822
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
Reviewed-by: He Gao <hegao@google.com>
Tested-by: Arnav Kansal <rnv@google.com>
1 file changed
tree: 1f7913ae84fbd90783d01a6d16139f64dfc35ffc
  1. release/
  2. src/
  3. testing/
  4. BUILD.bazel
  5. cloudbuild.yaml
  6. CONTRIBUTING.md
  7. deps.bzl
  8. go.mod
  9. go.sum
  10. LICENSE
  11. README.md
  12. run_tests.sh
  13. WORKSPACE
README.md

Tools for Container-Optimized OS

This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.

See CONTRIBUTING.md for how to contribute.