Skip to content

Container Registries

zenml.container_registries special

base_container_registry

Base class for all container registries.

BaseContainerRegistry (BaseComponent) pydantic-model

Base class for all ZenML container registries.

Source code in zenml/container_registries/base_container_registry.py
class BaseContainerRegistry(BaseComponent):
    """Base class for all ZenML container registries."""

    uri: str
    _CONTAINER_REGISTRY_DIR_NAME: str = "container_registries"

    def __init__(self, repo_path: str, **kwargs: Any) -> None:
        """Initializes a BaseContainerRegistry instance.

        Args:
            repo_path: Path to the repository of this container registry.
        """
        serialization_dir = os.path.join(
            get_zenml_config_dir(repo_path),
            self._CONTAINER_REGISTRY_DIR_NAME,
        )
        super().__init__(serialization_dir=serialization_dir, **kwargs)

    class Config:
        """Configuration of settings."""

        env_prefix = "zenml_container_registry_"
Config

Configuration of settings.

Source code in zenml/container_registries/base_container_registry.py
class Config:
    """Configuration of settings."""

    env_prefix = "zenml_container_registry_"
__init__(self, repo_path, **kwargs) special

Initializes a BaseContainerRegistry instance.

Parameters:

Name Type Description Default
repo_path str

Path to the repository of this container registry.

required
Source code in zenml/container_registries/base_container_registry.py
def __init__(self, repo_path: str, **kwargs: Any) -> None:
    """Initializes a BaseContainerRegistry instance.

    Args:
        repo_path: Path to the repository of this container registry.
    """
    serialization_dir = os.path.join(
        get_zenml_config_dir(repo_path),
        self._CONTAINER_REGISTRY_DIR_NAME,
    )
    super().__init__(serialization_dir=serialization_dir, **kwargs)