Files
eezd 3b7aec0024 fix: verify and preserve instance start and stop entrypoints
Validate deployed image receipts and local identities before startup, ignore caller Compose and image overrides, and report success only after health checks.

Install versioned Bash entrypoints and their standalone controller under the deployment lock while preserving local customizations. Cover lifecycle and installation behavior in isolated tests.
2026-11-01 18:27:14 +08:00

10 lines
299 B
Bash
Executable File

#!/usr/bin/env bash
# Keep the two operator entrypoints on the same instance controller.
set -euo pipefail
if (( $# != 0 )); then
printf '用法:bash %s\n' "$0" >&2
exit 2
fi
instance_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)
exec python3 "$instance_dir/instance.py" stop