683 Tests in a 15-Package Monorepo: Docker Testing Strategy for AI Wallets
说明与用途
WAIaaS 15 包单体仓库中包含 684+ 个测试,在 Docker 镜像构建前验证 7 步交易管道的每个阶段,确保自托管 AI 钱包的可靠性和安全性。
问题
Self‑hosted AI wallet services must be trustworthy, but third‑party providers expose private keys and can fail or change APIs. Without rigorous testing, bugs in transaction pipelines can cost real money.
结果
The 15‑package monorepo with 684+ tests ensures that every stage of the transaction pipeline is validated before the Docker image is built, giving self‑hosters confidence that their AI wallet infrastructure is secure and reliable.
工作流
- Clone the WAIaaS repo
- Run "docker compose up -d" for development
- Use "docker run" with WAIAAS_AUTO_PROVISION=true for production
- Retrieve auto‑generated master password from /data/recovery.key
- Configure secrets via Docker Secrets for production
- Start the daemon and use the CLI to initialize wallets and MCP sessions
- Generate a session token for the AI agent
- Use the session token with the SDK to perform wallet operations
证据
WAIaaS is an open‑source, self‑hosted Wallet‑as‑a‑Service built for exactly this. And the 684+ test files spread across its 15‑package monorepo are what make the self‑hosting story believable rather than aspirational.
The Compose file includes a secrets overlay specifically for production: ... docker compose -f docker-compose.yml -f docker-compose.secrets.yml up -d
Once the daemon is running, the CLI handles the rest: npm install -g @waiaas/cli waiaas init waiaas start waiaas quickset --mode mainnet
- 记录日期: 2026-10-16T12:56:09.839Z