tree: 8db2f29c9ce4efd711cc7a8a9ed50c634fd3cfd6 [path history] [tgz]
  1. cc-sample-project/
  2. container/
  3. BUILD
  4. BUILD.platform.tpl
  5. BUILD.std_container.tpl
  6. BUILD.std_toolchain.tpl
  7. docker_config.bzl
  8. environments.bzl
  9. extract.sh.tpl
  10. gcs.bzl
  11. get_java_home.sh.tpl
  12. gsutil_cp_and_validate.sh.tpl
  13. install_bazel_head.sh
  14. install_bazel_version.sh
  15. rbe_repo.bzl
  16. README.md
  17. toolchain_containers.bzl
  18. version_check.bzl
rules/README.md

Usage

This directory contains a skylark rule to generate the toolchain configs. See README.md under the root directory for the definition of toolchain configs.

For a given version of Bazel, the docker_toolchain_autoconfig rule will:

  • build the execution container image,
  • install Bazel,
  • build the container, and
  • extract the toolchain config.

Refer to the documentation in docker_config.bzl for more details of how to execute this rule and how to extract the toolchain configs.

The BUILD file in this directory contains 3 sample docker_toolchain_autoconfig targets which use Bazel 0.7.0 to generate toolchain configs for:

  • Debian8 Clang environment,
  • Ubuntu Trusty GCC environment, and
  • Ubuntu Xenial GCC environment.

Authentication

If you are generating toolchain configs for the first time, you will probably encounter permission issues while docker is trying to talk to gcr.io.

If gcloud is installed, use gcloud as the Docker credential helper by following the instructions here. Otherwise, use docker-credential-gcr by following the instructions here.