File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ""
You can’t perform that action at this time.
0 commit comments