0.32.1
Search…
⌃K
Links

Image Builders

How to build container images
The image builder is an essential part in most remote MLOps stacks. It is used to build container images such that your machine learning pipelines and steps can be executed in remote environments.

When to use it

The image builder is needed whenever other components of your stack need to build container images. Currently, this is the case for most of ZenML's remote orchestrators, step operators and some model deployers. These containerize your pipeline code and therefore require an image builder to build Docker images.

Image Builder Flavors

Out of the box, ZenML comes with a local image builder that builds Docker images on your client machine. Additional image builders are provided by integrations:
Image Builder
Flavor
Integration
Notes
local
built-in
Builds your Docker images locally.
kaniko
kaniko
Builds your Docker images in Kubernetes using Kaniko.
custom
Extend the image builder abstraction and provide your own implementation
If you would like to see the available flavors of image builders, you can use the command:
zenml image-builder flavor list

How to use it

You don't need to directly interact with any image builder in your code. As long as the image builder that you want to use is part of your active ZenML stack, it will be used automatically by any component that needs to build container images.