FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(core): allow setting docker command path for docker compose by alexanderankin · Pull Request #512 · testcontainers/testcontainers-python · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 2 additions & 1 deletion core/testcontainers/compose/compose.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class DockerCompose:
wait: bool = True
env_file: Optional[str] = None
services: Optional[list[str]] = None
docker_command_path: Optional[str] = None

def __post_init__(self):
if isinstance(self.compose_file_name, str):
Expand All @@ -181,7 +182,7 @@ def docker_compose_command(self) -> list[str]:

@cached_property
def compose_command_property(self) -> list[str]:
docker_compose_cmd = ["docker", "compose"]
docker_compose_cmd = [self.docker_command_path or "docker", "compose"]
if self.compose_file_name:
for file in self.compose_file_name:
docker_compose_cmd += ["-f", file]
Expand Down

Back | FazBrowse Home | New Git URL