Skip to content

Commit 0eeff2f

Browse files
committed
Container image can be also dict,
1 parent e2bc79f commit 0eeff2f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

datacrunch/containers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
EntrypointOverridesSettings,
88
VolumeMount,
99
SecretMount,
10+
SharedFilesystemMount,
11+
ScratchMount,
1012
VolumeMountType,
1113
Container,
1214
ContainerRegistryCredentials,

datacrunch/containers/containers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import os
99
from dataclasses import dataclass, field
1010
from dataclasses_json import dataclass_json, Undefined # type: ignore
11-
from typing import List, Optional, Dict, Any
11+
from typing import List, Optional, Dict, Any, Union
1212
from enum import Enum
1313

1414
from datacrunch.http_client.http_client import HTTPClient
@@ -216,7 +216,7 @@ class Container:
216216
volume_mounts: Optional list of volume mounts.
217217
"""
218218

219-
image: str
219+
image: Union[str, dict]
220220
exposed_port: int
221221
name: Optional[str] = None
222222
healthcheck: Optional[HealthcheckSettings] = None

0 commit comments

Comments
 (0)