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.
This commit is contained in:
eezd committed 2026-11-01 18:27:14 +08:00
1 parent 0a150eca0f
commit 3b7aec0024
8 files changed
+408 -4

No files matched your search

Executable
+9
View File
@@ -0,0 +1,9 @@
#!/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