|
|
|
@ -311,13 +311,14 @@ class ComposeContainer:
|
|
|
|
|
def depends_on(self) -> Sequence[ComposeContainer]:
|
|
|
|
|
return [self.compose.services[name] for name in self.base.get("depends_on", [])]
|
|
|
|
|
|
|
|
|
|
def exec_cmd(
|
|
|
|
|
def exec(
|
|
|
|
|
self,
|
|
|
|
|
command: CommandArgs,
|
|
|
|
|
check: bool = True,
|
|
|
|
|
workdir: Optional[str] = None,
|
|
|
|
|
) -> CommandArgs:
|
|
|
|
|
return combine_cmds(
|
|
|
|
|
PODMAN_EXEC,
|
|
|
|
|
) -> CompletedProcess:
|
|
|
|
|
return self.compose.podman.exec_podman(
|
|
|
|
|
command=combine_cmds(
|
|
|
|
|
[
|
|
|
|
|
"container",
|
|
|
|
|
"exec",
|
|
|
|
@ -326,6 +327,8 @@ class ComposeContainer:
|
|
|
|
|
self.container_name,
|
|
|
|
|
],
|
|
|
|
|
command,
|
|
|
|
|
),
|
|
|
|
|
check=check,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|