Cloud Builders

Cloud builders are containers with common languages and tools installed in them. You can use the builders to execute your tasks by including them in build steps.

This page describes the types of builders available to you.

Supported builder images provided by Container Builder

Container Builder provides and maintains pre-built images of builders that you can reference in your build steps to execute your tasks. You can find these pre-built images at:

gcr.io/cloud-builders/...

The source code for these builders is available in the cloud builders GitHub repository.

The following table lists some examples of supported builder images:

Builder Name Example
bazel gcr.io/cloud-builders/bazel bazel example
docker gcr.io/cloud-builders/docker docker example
git gcr.io/cloud-builders/git git example
go gcr.io/cloud-builders/go go example
gcloud gcr.io/cloud-builders/gcloud gcloud example
gradle gcr.io/cloud-builders/gradle gradle example
maven gcr.io/cloud-builders/mvn maven example
kubectl gcr.io/cloud-builders/kubectl kubectl example
npm gcr.io/cloud-builders/npm npm example
The complete list of supported builders for Container Builder.

Community-contributed builders

The Container Builder developer community provides open-source builders that you can use to execute your tasks. Pre-built images are not available for these builders; to use these builders, download the source code from the cloud builders community GitHub repository and then build the image.

The following table lists some examples of community-contributed builders:

Builder Description
docker-compose Runs integration tests on docker images.
remote-builder Executes your build step on a configurable Compute Engine VM.
packer Automates the creation of machine images using Packer
helm Manages Kubernetes packages using Helm.
The complete list of community-contributed builders for Container Builder.

For information on contributing a builder, see the cloud builders community GitHub page.

Publicly available container images

Container Builder allows you to use any publicly available container image in a build step.

For example, the following code snippet shows how to add a build step using the ubuntu image from Docker Hub:

steps:
- name: 'ubuntu'
  ...

Here's another example code snippet that adds a build step using the container image for Black Duck open source scanner for Container Builder from Google Cloud Platform Console Launcher:

steps:
- name: launcher.gcr.io/blackduck-public/blackducksoftware-containerbuilder-scanner
...

Writing your own custom builder

You can create your own custom builder for use in your builds. A custom builder is a container image that the Container Builder pulls and runs with your source. Your custom builder can execute any script or binary inside the container; as such it can do anything a container can do. For instructions on creating a custom builder, see Creating custom build steps.

What's next

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Container Builder