liveBook · Manning

Cloud Builder

As explained in Google Anthos in Action

A cloud builder is a container image packaged to run a particular build or deployment tool within Cloud Build.

A cloud builder is a container image packaged to run a specific build or deployment tool within a Cloud Build pipeline. Each cloudbuild.yaml step names a builder image and supplies its attributes; Cloud Build executes the step as a container. section 12.4.3

Cloud builders support several pipeline responsibilities:

Build, push, and deploy

A pipeline can run tests, invoke gcr.io/cloud-builders/docker to build and push an image, then invoke gcr.io/cloud-builders/kubectl to deploy it. section 12.4.3

# cloudbuild.yaml
steps:
# This step runs the unit tests on the app
- name: 'python:3.7-slim'
 id: Test
...
# This step builds the container image.
- name: 'gcr.io/cloud-builders/docker'
 id: Build
...
# This step pushes the image to a container registry
- name: 'gcr.io/cloud-builders/docker'
 id: Push
... 
# This step deploys the new version of our container image
- name: 'gcr.io/cloud-builders/kubectl'
 id: Deploy

Use the configuration listing to inspect how named builder images represent test, build, push, and deployment steps. section 12.4.3

How Google Anthos in Action covers it

How deep it goes
Defines builder images, step attributes, categories, and pipeline roles without detailing image construction internals.
Examples
Uses Docker and kubectl steps to build, push, and deploy an application container.
What it assumes
Assumes familiarity with Cloud Build pipelines, container images, and cloudbuild.yaml step definitions.
What you can do after
Operate Cloud Build pipelines by selecting builder images and configuring their commands and deployment targets.
How it connects
Connects Cloud Build with cloudbuild.yaml, container images, Docker, Git, kubectl, CI/CD pipelines, GKE, and Cloud Run.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.