Fail fast on unreachable operator Git
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user