ocally first.

Deploy ZenML with your custom imageNext, adjust your preferred deployment strategy to use the custom Docker image you just built.

Deploy a custom ZenML image via CLI

You can deploy your custom image via the zenml deploy CLI command by setting the --config argument to a custom configuration file that has both zenmlserver_image_repo and zenmlserver_image_tag set:

Define a custom config.yaml based on the base deployment configuration file and set zenmlserver_image_repo and zenmlserver_image_tag according to the custom image you built:Copyzenmlserver_image_repo: <YOUR_CONTAINER_REGISTRY>/<IMAGE_NAME>
zenmlserver_image_tag: <IMAGE_TAG>

Run zenml deploy with the custom config file:Copyzenml deploy --config=/PATH/TO/FILE

See the general ZenML CLI Deployment Guide for more information on how to use the zenml deploy CLI command and what other options can be configured.

Deploy a custom ZenML image via Docker

To deploy your custom image via Docker, first familiarize yourself with the general ZenML Docker Deployment Guide.

To use your own image, follow the general guide step by step but replace all mentions of zenmldocker/zenml-server with your custom image reference <YOUR_CONTAINER_REGISTRY>/<IMAGE_NAME>:<IMAGE_TAG>. E.g.:

To run the ZenML server with Docker based on your custom image, do

docker run -it -d -p 8080:8080 --name zenml <YOUR_CONTAINER_REGISTRY>/<IMAGE_NAME>:<IMAGE_TAG>

To use docker-compose, adjust your docker-compose.yml:

services:

zenml:

image: <YOUR_CONTAINER_REGISTRY>/<IMAGE_NAME>:<IMAGE_TAG>

Deploy a custom ZenML image via Helm

To deploy your custom image via Helm, first familiarize yourself with the general ZenML Helm Deployment Guide.

To use your own image, the only thing you need to do differently is to modify the image section of your values.yaml file:

zenml:

image:

repository: <YOUR_CONTAINER_REGISTRY>/<IMAGE_NAME>

tag: <IMAGE_TAG>

PreviousDeploy using HuggingFace Spaces

NextManage deployed services

Last updated 15 days ago