Generate operational runbooks by scanning project infrastructure files. Produces structured Markdown runbooks with procedures for common ops tasks.
python3 scripts/generate_runbook.py /path/to/project
# Markdown (default)
python3 scripts/generate_runbook.py /path/to/project
# JSON (structured)
python3 scripts/generate_runbook.py /path/to/project --format json
# Specific output file
python3 scripts/generate_runbook.py /path/to/project -o RUNBOOK.md
| File | What It Extracts |
|---|---|
| ------ | ----------------- |
| Dockerfile | Base image, exposed ports, entrypoint, build steps |
| docker-compose.yml | Services, ports, volumes, dependencies, env vars |
| systemd units (.service) | ExecStart/Stop/Reload, dependencies, restart policy |
| Makefile | Targets (build, test, deploy, clean, etc.) |
| package.json | Scripts (start, build, test, dev, deploy) |
| .env / .env.example | Required environment variables |
| nginx.conf | Upstream servers, listen ports, locations |
共 1 个版本