Google Cloud Image Builder

Building container images with Google Cloud Build

The Google Cloud image builder is an image builder flavor provided by the ZenML gcp integration that uses Google Cloud Build to build container images.

When to use it

You should use the Google Cloud image builder if:

you're unable to install or use Docker on your client machine.

you're already using GCP.

your stack is mainly composed of other Google Cloud components such as the GCS Artifact Store or the Vertex Orchestrator.

How to deploy it

In order to use the ZenML Google Cloud image builder you need to enable Google Cloud Build relevant APIs on the Google Cloud project.

How to use it

The GCP image builder (and GCP integration in general) currently only works for Python versions <3.11. The ZenML team is aware of this dependency clash/issue and is working on a fix. For now, please use Python <3.11 together with the GCP integration.

To use the Google Cloud image builder, we need:

The ZenML gcp integration installed. If you haven't done so, run:Copyzenml integration install gcp

A GCP Artifact Store where the build context will be uploaded, so Google Cloud Build can access it.

A GCP container registry where the built image will be pushed.

Optionally, the GCP project ID in which you want to run the build and a service account with the needed permissions to run the build. If not provided, then the project ID and credentials will be inferred from the environment.

Optionally, you can change:the Docker image used by Google Cloud Build to execute the steps to build and push the Docker image. By default, the builder image will be 'gcr.io/cloud-builders/docker'.The network to which the container used to build the ZenML pipeline Docker image will be attached. More information: Cloud build network.The build timeout for the build, and for the blocking operation waiting for the build to finish. More information: Build Timeout.