More generic image type for OCI-compliant container technologies

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
Yuan Tang 2025-01-16 22:32:56 -05:00
parent 9f14382d82
commit 2deac4879f
No known key found for this signature in database
28 changed files with 55 additions and 55 deletions

View file

@ -147,11 +147,11 @@ class InlineProviderSpec(ProviderSpec):
default_factory=list,
description="The pip dependencies needed for this implementation",
)
docker_image: Optional[str] = Field(
container_image: Optional[str] = Field(
default=None,
description="""
The docker image to use for this implementation. If one is provided, pip_packages will be ignored.
If a provider depends on other providers, the dependencies MUST NOT specify a docker image.
If a provider depends on other providers, the dependencies MUST NOT specify a container image.
""",
)
module: str = Field(
@ -194,7 +194,7 @@ API responses, specify the adapter here.
)
@property
def docker_image(self) -> Optional[str]:
def container_image(self) -> Optional[str]:
return None
@property