
brunoandClaude
9b323ee8f8
Add complete DevOps solution with 3 deployment methods
This commit introduces a comprehensive DevOps infrastructure supporting
local development, Docker Compose, and Kubernetes deployments.
Features:
- One-click local startup script (start_app.sh)
* Auto Python 3.12 virtual environment management
* Smart dependency installation with USTC pip mirror
* Concurrent backend and frontend startup
* Graceful shutdown with Ctrl+C
- Docker deployment (docker-compose.prod.yml)
* Multi-stage optimized Dockerfiles
* Pull from localhost:5000 (business) and :5001 (base cache)
* Complete service stack: Backend + Frontend + PostgreSQL + Redis + Nginx
* Health checks and auto-restart
- Kubernetes deployment (deploy_k8s.sh)
* Full K8s configurations (8 YAML files)
* ConfigMap/Secret management
* HPA auto-scaling for backend
* Ingress routing
- CI/CD with Gitea Actions
* Code quality checks (black, ruff, mypy)
* Automated testing with coverage reports
* Auto build and push images
* Auto deploy to K8s dev/prod
- Dependency caching
* pip: USTC mirror (https://pypi.mirrors.ustc.edu.cn/simple/)
* npm: Taobao mirror (https://registry.npmmirror.com)
* Docker: localhost:5001 pull-through cache
- Testing and notifications
* HTML test reports
* Code coverage visualization
* QQ email notifications (38455629@qq.com)
Documentation:
- DEVOPS_SOLUTION.md: Complete architecture design
- DEVOPS_QUICKSTART.md: Step-by-step guide
- README_DEVOPS.md: DevOps overview
- DEVOPS_FILES.md: File reference
Total: 30+ configuration files and scripts
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>