Skip to content

Commit ac08045

Browse files
committed
typedb 3.7.2 has no Cmd in its config, using only an entrypoint instead
1 parent 1cc63b7 commit ac08045

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

typedb/localstack_typedb/extension.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,16 @@ class TypeDbExtension(ProxiedDockerContainerExtension):
2828
def __init__(self):
2929
command_flags = (os.environ.get(ENV_CMD_FLAGS) or "").strip()
3030
command_flags = self.DEFAULT_CMD_FLAGS + shlex.split(command_flags)
31-
command = self._get_image_command() + command_flags
3231
http2_ports = [self.TYPEDB_PORT] if is_env_not_false(ENV_HTTP2_PROXY) else []
3332
super().__init__(
3433
image_name=self.DOCKER_IMAGE,
3534
container_ports=[8000, 1729],
3635
host=self.HOST,
3736
request_to_port_router=self.request_to_port_router,
38-
command=command,
37+
command=command_flags,
3938
http2_ports=http2_ports,
4039
)
4140

42-
def _get_image_command(self) -> list[str]:
43-
result = DOCKER_CLIENT.inspect_image(self.DOCKER_IMAGE)
44-
image_command = result["Config"]["Cmd"]
45-
return image_command
46-
4741
def should_proxy_request(self, headers: Headers) -> bool:
4842
# determine if this is a gRPC request targeting TypeDB
4943
content_type = headers.get("content-type") or ""

0 commit comments

Comments
 (0)