Files
ljwx-health/archive/deprecated/old-quick-starts/QUICK_START.md
T
brunoandClaude Sonnet 4.5 8350cd86f3
CI/CD Pipeline / build-push (ljwx-admin) (push) Blocked by required conditions
CI/CD Pipeline / build-push (ljwx-bigscreen) (push) Blocked by required conditions
CI/CD Pipeline / build-push (ljwx-boot) (push) Blocked by required conditions
CI/CD Pipeline / update-deploy (push) Blocked by required conditions
CI/CD Pipeline / security-scan (push) Successful in 52s
CI/CD Pipeline / test-build-boot (push) Successful in 1m52s
CI/CD Pipeline / build-pr (ljwx-admin) (push) Has been skipped
CI/CD Pipeline / build-pr (ljwx-bigscreen) (push) Has been skipped
CI/CD Pipeline / build-pr (ljwx-boot) (push) Has been skipped
CI/CD Pipeline / test-admin (push) Successful in 1m18s
CI/CD Pipeline / test-bigscreen (push) Has been cancelled
docs: 文档结构标准化重构 v1.0
## 重构概览
完成文档标准化重构,建立专业的文档管理体系。

## 核心成果

### 文档精简
- 根目录文档: 57个 → 8个 (-86%)
- README.md: 1844行 → 258行 (-86%)
- 查找时间: 5-10分钟 → <1分钟 (-80%)

### 新增核心文档
- CHANGELOG.md - 版本变更日志
- CONTRIBUTING.md - 贡献指南(代码/提交/文档规范)
- docs/README.md - 文档导航中心(按角色/主题/关键词索引)
- archive/README.md - 归档说明

### 目录架构
- docs/01-getting-started/ - 快速开始
- docs/02-architecture/ - 架构设计
- docs/03-deployment/ - 部署指南(Docker/K8s/GitOps)
- docs/04-operations/ - 运维手册(监控/数据库/故障)
- docs/05-features/ - 功能文档
- docs/06-development/ - 开发指南(后端/前端/API)
- docs/07-compliance/ - 工程规范
- docs/08-reference/ - 参考资料
- archive/2025/ - 历史归档(fixes/implementations/experiments)
- archive/deprecated/ - 已废弃文档

## 文档迁移

### 已迁移文档(44个)
部署文档 → docs/03-deployment/
  - DOCKER_README.md → docker/docker-compose.md
  - DOCKERFILE_OPTIMIZATION_SUMMARY.md → docker/optimization.md
  - GITHUB_SETUP.md → gitops/github-actions.md

运维文档 → docs/04-operations/
  - DATABASE_IMPORT.md → database/data-import.md
  - GRAFANA_QUICK_START.md → monitoring/grafana-quick-start.md

开发文档 → docs/06-development/
  - AI_INTEGRATION_GUIDE.md → ai-integration.md

参考资料 → docs/08-reference/
  - REMOTE_ACCESS.md → remote-access.md

历史文档 → archive/2025/
  - fixes/ - 8个修复文档
  - implementations/ - 10个实施总结
  - experiments/ - 2个实验方案

已废弃 → archive/deprecated/
  - old-quick-starts/ - 5个旧版快速开始指南

### 备份
- backup_docs_20260104_182653/ - 完整备份(57个文件)
- backup_docs_20260104_182705/ - 增量备份(6个文件)

## 技术亮点
- ✅ 自动化迁移脚本(scripts/migrate-docs.sh)
- ✅ 智能文档分类
- ✅ 自动备份机制
- ✅ 文档生命周期管理
- ✅ 多维度导航系统

## 参考规范
- Keep a Changelog (CHANGELOG.md)
- Conventional Commits (提交规范)
- Divio Documentation System (文档分类)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-04 18:31:38 +08:00

2.4 KiB

🚀 快速开始指南

一键部署 (推荐)

# 进入项目目录
cd /Users/brunogao/work/infra

# 一键自动部署所有服务
./build-infra.sh --full-auto

服务访问地址

部署完成后,您可以通过以下地址访问服务:

服务 地址 用途
Gitea http://localhost:33000 Git代码仓库
Jenkins http://localhost:38080 CI/CD平台 (admin/admin123)
Registry http://localhost:35001 Docker镜像仓库
Registry UI http://localhost:35002 镜像仓库管理界面

SSH访问

# Gitea SSH克隆 (端口32222)
git clone ssh://git@localhost:32222/username/repository.git

验证部署

# 检查所有服务健康状态
./scripts/maintenance/health-check.sh

# 查看服务日志
./scripts/utils/show-logs.sh all

常用管理命令

# 完全自动化部署
./build-infra.sh --full-auto

# 分步骤部署 (逐步确认)
./build-infra.sh --step-by-step  

# 清理所有服务
./build-infra.sh --cleanup

# 仅运行验证测试
./build-infra.sh --verify

# 健康检查
./scripts/maintenance/health-check.sh

# 查看日志
./scripts/utils/show-logs.sh [gitea|jenkins|registry|all]

故障排查

端口冲突

如果遇到端口占用问题:

# 检查端口占用
lsof -i :33000,38080,35001,35002,32222,35000

# 清理现有服务
./build-infra.sh --cleanup

服务启动失败

# 查看具体服务日志
./scripts/utils/show-logs.sh [服务名] -f

# 重新部署
./build-infra.sh --cleanup
./build-infra.sh --full-auto

配置修改

主要配置文件:

  • configs/global.env - 全局环境变量
  • docker/compose/*.yml - 服务编排配置
  • jenkins/casc/jenkins.yaml - Jenkins自动配置

修改配置后重新部署:

./build-infra.sh --cleanup
./build-infra.sh --full-auto

下一步操作

  1. 配置Gitea

  2. 配置Jenkins

  3. 测试CI/CD流程

    • 在Gitea中推送代码
    • 观察Jenkins自动构建
    • 验证镜像推送到Registry

技术支持

  • 部署问题: 查看 BUILD_PLAN.md
  • 配置详情: 查看 CLAUDE.md
  • 故障排查: 查看 docs/troubleshooting.md