14 lines
1.1 KiB
Plaintext
14 lines
1.1 KiB
Plaintext
# 205-container-rebuild-recovery: Container rebuild recovery standardization
|
|
|
|
Goal: Standardize recover-after-rebuild.sh in container workspaces (/home/hatch/workspace/recover/) to preserve tools, keys, and environment across rebuilds
|
|
|
|
Steps:
|
|
1. Inventory existing recovery scripts across containers. 2. Template recover-after-rebuild.sh for hatch workspace. 3. Verify non-destructive dry run.
|
|
|
|
Done criteria: result notes appended below; file moved to done/.
|
|
|
|
Result notes (append below before moving to done/):
|
|
|
|
Completed 2026-10-09T12:54:35Z via box tasks done:
|
|
Standardized recover-after-rebuild.sh for container workspaces under cloud-uptime/recover-after-rebuild.sh. Implemented: 1) dynamic sourcing of ~/workspace/tunnel/machine.env (MUSE_MACHINE, SSH_PORT, TERM_PORT), 2) single-transaction apt package installs with deb cache check, 3) persistent crontab restore via persistent-crontab.sh, 4) SSH key and host key auto-restoration, 5) dry-run mode support. Added test suite in tests/test_recover_after_rebuild.py with 4/4 passing unit tests (syntax, dry-run, env override). Committed to branch builder/container-rebuild-recovery (a5990a0).
|