Integrations
Google Artifact Registry
and
ZenML
Leverage Google’s Container Registry in ZenML Pipelines with Google Artifact Registry Integration
GitHub
Google Artifact Registry
All integrations

Google Artifact Registry

Leverage Google’s Container Registry in ZenML Pipelines with Google Artifact Registry Integration
Add to ZenML
COMPARE
related resources
No items found.

Leverage Google’s Container Registry in ZenML Pipelines with Google Artifact Registry Integration

Seamlessly integrate the Google Artifact Registry with ZenML. Store, manage, and deploy containerized components within your ML pipelines, leveraging the scalability and reliability of Google Cloud Platform without exposing the complexity to your data scientists.

Features with ZenML

  • Seamless integration of Google Artifact Registry as a container registry in ZenML stacks
  • Effortless storage and retrieval of containerized pipeline environments
  • Scalable and reliable container management backed by Google Cloud infrastructure
  • Streamlined deployment of ML pipelines with versioned container images

Main Features

  • Centralized container image storage and management
  • No local credentials necessary
  • Secure access control and permissions management
  • Automatic versioning and rebuilding of step docker images where necessary

How to use ZenML with
Google Artifact Registry

# Step 1: Install all required gcp packaes 
zenml integration install gcp

# Step 2: Register the GCP container registry
zenml container-registry register gcp_registry \
  --flavor=gcp \
  --uri="<YOUR URI>"

# Step 3: Update your stack to use the selected container registry
# Make sure your stack already contains a remote artifact store
# and orchestrator
zenml stack update -c gcp_registry

# Step 4: Set up authentication (choose one method)
zenml container-registry connect gcp_registry -i

# Step 5: Validate that your stack has a remote orchestrator in it
# Not all orchestrators require a built image, so in order to use the
# container registry you would need a remote orchestrator/step operator
# used in your stack
zenml stack describe

from zenml import pipeline, step

@step
def example_step():
    print("This step will be containerized and pushed to GCP container registry")

@pipeline
def my_pipeline():
    example_step()

if __name__ == "__main__":
    my_pipeline()
    

This code example demonstrates how to integrate Google Artifact Registry with ZenML:

  1. Install the GCP integration
  2. Register the Google Artifact Registry with the URI
  3. Update the ZenML stack to use the registered container registry
  4. Set up authentication using one of the available methods
  5. Define a step and pipeline that will use the Google Artifact Registry for containerized components

When the pipeline is run, the step will be containerized and the image will be pushed to the specified Google Artifact Registry, enabling seamless integration with the GCP ecosystem.

Additional Resources
Google Artifact Registry Documentation
Using Artifact Registry with Google Cloud

Leverage Google’s Container Registry in ZenML Pipelines with Google Artifact Registry Integration

Seamlessly integrate the Google Artifact Registry with ZenML. Store, manage, and deploy containerized components within your ML pipelines, leveraging the scalability and reliability of Google Cloud Platform without exposing the complexity to your data scientists.
Google Artifact Registry

Start Your Free Trial Now

No new paradigms - Bring your own tools and infrastructure
No data leaves your servers, we only track metadata
Free trial included - no strings attached, cancel anytime
A screenshot showing the ZenML Pro dashboard with a list of models, versions, owners, tags and the updated date.

Connect Your ML Pipelines to a World of Tools

Expand your ML pipelines with Apache Airflow and other 50+ ZenML Integrations
PyTorch Lightning
Deepchecks
Seldon
Great Expectations
Github Actions
Google Cloud
AWS
Discord
Pillow
XGBoost
Label Studio