Add new frontend pages for the multi-tenant OCDP platform: - Charts page (/charts): Browse Harbor OCI registries to list Helm chart repositories and versions, with deploy modal to launch charts on selected clusters - Monitoring page (/monitoring): Display cluster metrics (CPU/Memory/GPU usage) and per-node details with resource utilization bars - Chart References page (/chart-references): CRUD for chart metadata references - Values Templates page (/templates): CRUD for Helm values templates with version history and rollback support - Sidebar: Add Charts navigation, update Storage and Templates links - api.ts: Add all API client functions (clusterApi, registryApi, instanceApi, monitoringApi, storageApi, chartReferenceApi, valuesTemplateApi, workspaceApi, userApi) with full TypeScript types Note: deploy flow and values template rollback not yet end-to-end tested.
28 lines
707 B
Bash
28 lines
707 B
Bash
#!/bin/bash
|
|
# OCDP 一键停止脚本 (Docker Compose)
|
|
|
|
set -e
|
|
|
|
echo "=== OCDP 停止 ==="
|
|
echo ""
|
|
|
|
# 询问是否删除数据卷
|
|
read -p "是否删除所有数据? (y/n): " -n 1 -r
|
|
echo
|
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
echo "删除所有容器和数据卷..."
|
|
docker compose -f docker-compose.yml -f backend/docker-compose.yml down -v
|
|
echo ""
|
|
echo "⚠️ 所有数据已删除"
|
|
else
|
|
echo "停止所有容器(保留数据)..."
|
|
docker compose -f docker-compose.yml -f backend/docker-compose.yml down
|
|
echo ""
|
|
echo "数据已保留"
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== OCDP 停止完成 ==="
|
|
echo ""
|
|
echo "重新启动: ./start.sh"
|
|
echo "完全清理: ./stop.sh (选择 y 删除数据)" |