tree: 78cc90e65b76bfb9c82cf2410e099d157173255d [path history] [tgz]
  1. experimental/
  2. rbe-debian8/
  3. rbe-ubuntu16_04/
  4. rules/
  5. test/
  6. build.sh
  7. cloudbuild.yaml
  8. README.md
container/README.md

Toolchain Containers

This folder contains artifacts for building a docker container which includes all necessary language toolchains (C++, Java, Python, Go and libraries). This container is the recommended toolchain container for Remote caching and execution with Bazel.

Before you begin

  1. Download and install the Google Cloud SDK, which includes the gcloud command-line tool.

  2. Create a new Google Cloud Platform project from the Cloud Console or use an existing one.

  3. Initialize the Cloud SDK.

    gcloud init
    

Usage

Build with Google Cloud Container Builder

You will need a valid project ID to build the toolchain-container.

You can build a toolchain-container with debian8 as the base container by running:

container/build.sh -p my-project-id -d debian8 -c rbe-debian8 -t latest -b my-gcs-bucket

Congratulations! Your docker container is now available in Container Registry

gcr.io/my-project-id/rbe-debian8:latest

You can pull the built container to local

gcloud docker -- pull gcr.io/my-project-id/rbe-debian8:latest

Build locally

You can also build debian8-clang-fully-loaded container locally to for a quick test. You would need Bazel and Docker installed.

Run the following command:

container/build.sh -l -d debian8

You docker container is now available locally and you can try it out by running:

docker run -it rbe-debian8:latest /bin/bash