refactor: migrate to src/ package + add DinD-based E2E runner with debug artifacts

- Replace legacy standalone scripts with a proper src-layout Python package
  (baudolo backup/restore/configure entrypoints via pyproject.toml)
- Remove old scripts/files (backup-docker-to-local.py, recover-docker-from-local.sh,
  databases.csv.tpl, Todo.md)
- Add Dockerfile to build the project image for local/E2E usage
- Update Makefile: build image and run E2E via external runner script
- Add scripts/test-e2e.sh:
  - start DinD + dedicated network
  - recreate DinD data volume (and shared /tmp volume)
  - pre-pull helper images (alpine-rsync, alpine)
  - load local baudolo:local image into DinD
  - run unittest E2E suite inside DinD and abort on first failure
  - on failure: dump host+DinD diagnostics and archive shared /tmp into artifacts/
- Add artifacts/ debug outputs produced by failing E2E runs (logs, events, tmp archive)

https://chatgpt.com/share/694ec23f-0794-800f-9a59-8365bc80f435
This commit is contained in:
2025-12-26 18:13:26 +01:00
parent 41910aece2
commit c30b4865d4
55 changed files with 2950 additions and 804 deletions

View File

@@ -0,0 +1,25 @@
=== docker -H ps -a ===
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
=== docker -H images ===
WARNING: This output is designed for human readability. For machine-readable output, please use --format.
IMAGE ID DISK USAGE CONTENT SIZE EXTRA
alpine:3.20 765942a40399 12.2MB 3.71MB
baudolo:local 84e1ce4363e7 763MB 368MB
ghcr.io/kevinveenbirkenbach/alpine-rsync:latest 049c6ec3dad7 21.1MB 7.53MB
=== docker -H network ls ===
NETWORK ID NAME DRIVER SCOPE
f9303d265b7c bridge bridge local
5bb6398b93ad host host local
bf26d6f0dd45 none null local
=== docker -H volume ls ===
DRIVER VOLUME NAME
=== docker -H system df ===
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 3 0 796.3MB 10.82kB (0%)
Containers 0 0 0B 0B
Local Volumes 0 0 0B 0B
Build Cache 0 0 0B 0B