Fix Docker Compose file references to include override file for local builds

The smoke test now correctly includes docker-compose.override.yml which
configures local image builds instead of pulling from remote registry.
This fixes the 'failed to resolve reference' error when building containers
locally.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 13:57:18 +03:00
parent c9c629767e
commit 441cb24b8d
@@ -110,9 +110,11 @@ def start_docker_compose():
log(f"ERROR: docker-compose file not found at {docker_compose_path}", "ERROR")
return False
returncode, stdout, stderr = run_command(
f"docker compose -f {DOCKER_COMPOSE_FILE} up --build -d"
)
# Include both main compose file and override file for local builds
override_file = os.path.join(os.path.dirname(DOCKER_COMPOSE_FILE), "docker-compose.override.yml")
compose_cmd = f"docker compose -f {DOCKER_COMPOSE_FILE} -f {override_file} up --build -d"
returncode, stdout, stderr = run_command(compose_cmd)
if returncode != 0:
log(f"ERROR: Failed to start Docker Compose: {stderr}", "ERROR")
@@ -129,7 +131,9 @@ def stop_docker_compose():
return
log("Stopping Docker Compose...")
run_command("docker compose -f {DOCKER_COMPOSE_FILE} down")
override_file = os.path.join(os.path.dirname(DOCKER_COMPOSE_FILE), "docker-compose.override.yml")
compose_cmd = f"docker compose -f {DOCKER_COMPOSE_FILE} -f {override_file} down"
run_command(compose_cmd)
def initialize_chrome_driver():