Fail fast on unreachable operator Git

This commit is contained in:
Mikei386
2026-08-25 10:35:15 +02:00
parent bc1fbe9388
commit 63afc672c5
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ services:
build:
context: .
dockerfile: Dockerfile.athena-operator
image: mike-ai/mcp-athena-operator:2.3.3
image: mike-ai/mcp-athena-operator:2.3.4
container_name: mike-ai-mcp-athena-operator
environment:
ATHENA_OPERATOR_SOCKET: /operator/operator.sock
+2 -2
View File
@@ -29,7 +29,7 @@ from pathlib import Path
from typing import Any
VERSION = "2.3.3"
VERSION = "2.3.4"
STACK = Path(os.environ.get("ATHENA_OPERATOR_STACK", "/opt/mike-ai/stack")).resolve()
REPOSITORY = Path(os.environ.get("ATHENA_OPERATOR_REPOSITORY", "/data/mike-ai-operator/repository")).resolve()
STATE = Path(os.environ.get("ATHENA_OPERATOR_STATE", "/data/mike-ai-operator/state")).resolve()
@@ -120,7 +120,7 @@ def run(argv: list[str], *, cwd: Path = STACK, timeout: int = 900, check: bool =
environment["GIT_SSH_COMMAND"] = (
f"ssh -i {shlex.quote(str(git_key))} -o IdentitiesOnly=yes "
f"-o UserKnownHostsFile={shlex.quote(str(known_hosts))} "
"-o StrictHostKeyChecking=yes"
"-o StrictHostKeyChecking=yes -o BatchMode=yes -o ConnectTimeout=8"
)
completed = subprocess.run(
argv, cwd=cwd, env=environment,