()
| 117 | |
| 118 | |
| 119 | def run_docker_compose(): |
| 120 | docker_compose_cmd = get_docker_command() |
| 121 | try: |
| 122 | print(t("STARTING_CONTAINERS_WITH_BUILD")) |
| 123 | subprocess.run( |
| 124 | docker_compose_cmd |
| 125 | + [ |
| 126 | "-f", |
| 127 | os.path.join(TEMP_DIR, "docker-compose.yaml"), |
| 128 | "--env-file", |
| 129 | os.path.join(TEMP_DIR, ".env"), |
| 130 | "up", |
| 131 | "-d", |
| 132 | "--build", |
| 133 | ], |
| 134 | check=True, |
| 135 | ) |
| 136 | print(t("CONTAINERS_STARTED")) |
| 137 | except subprocess.CalledProcessError as e: |
| 138 | print(t("DOCKER_ERROR", error=str(e))) |
| 139 | print(t("DOCKER_OUTPUT")) |
| 140 | print(e.output.decode() if e.output else "No output") |
| 141 | stop_and_remove_containers() |
| 142 | sys.exit(1) |
| 143 | |
| 144 | |
| 145 | def update_docker_compose_paths(): |
no test coverage detected