Skip to content

Commit 6f97916

Browse files
committed
update to allow sourcing from internal registry, if one is configured, by adding prefix to image name - leverages existing DOCKER_GLOBAL_IMAGE_PREFIX config
1 parent f186d3e commit 6f97916

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/localstack_extensions/utils/docker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import requests
66

77
from localstack.config import is_env_true
8+
from localstack.pro.core.utils.container.registry_strategies import CustomizableRegistryStrategy
89
from localstack_extensions.utils.h2_proxy import (
910
apply_http2_patches_for_grpc_support,
1011
)
@@ -103,7 +104,7 @@ def __init__(
103104
http2_ports: list[int] | None = None,
104105
tcp_ports: list[int] | None = None,
105106
):
106-
self.image_name = image_name
107+
self.image_name = CustomizableRegistryStrategy().resolve(image_name)
107108
if not container_ports:
108109
raise ValueError("container_ports is required")
109110
self.container_ports = container_ports

0 commit comments

Comments
 (0)