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:
1 parent
0a150eca0f
commit
3b7aec0024
8 files changed
+408
-4
No files matched your search
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# Resolve the instance independently of the caller's working directory.
|
||||
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" start
|
||||
Reference in new issue
Block a user