Google Cloud Image Builder
How to build container images with Google Cloud Build
When to use it
You should use the Google Cloud image builder if:
you're already using GCP.
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
To use the Google Cloud image builder, we need:
The ZenML
gcp
integration installed. If you haven't done so, run: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'
.
We can register the image builder and use it in our active stack:
Caveats
The above Dockerfile
uses zenmldocker/zenml:latest
as base image, but is recommended to change the tag to specify the ZenML version and Python version like 0.33.0-py3.10
.
Last updated