feat: unify docs portal and MCP servers into one config-driven service
- add config.yml as single source of truth for collected repos/categories - add collect.py CLI to pull lib/api/wiki site builds and mcp bundles from source repos and regenerate nginx.conf + _index/index.html - port mcp runtime (main.py/core.py/config.py): nginx + health + FastMCP servers started from config.yml - docker: python:3.13-slim + nginx, expose 8000-8006 + 9000 (html portal) - drone: publish html (6007:9000) and MCP ports 8000-8006 - move mongo-ops docs to wiki/, add auth-server (api) and hexa (lib) - refresh lib site builds (lib/ prefix) and collect mcp bundles
This commit is contained in:
26
.drone.yml
26
.drone.yml
@@ -16,25 +16,17 @@ volumes:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
steps:
|
||||
# # 🏗️ Step 1: Build static docs for all projects
|
||||
# - name: build-docs
|
||||
# image: squidfunk/mkdocs-material
|
||||
# commands:
|
||||
# - echo "🧱 Building documentation for all projects..."
|
||||
# - cd mongo-ops && mkdocs build --clean && cd ..
|
||||
# - echo "✅ All docs built successfully."
|
||||
|
||||
# 🐳 Step 2: Build Docker image for docs site
|
||||
# 🐳 Step 1: Build Docker image
|
||||
- name: build-image
|
||||
image: docker:24
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- echo "🔨 Building Docker image for docs..."
|
||||
- echo "🔨 Building Docker image for aetos-docs..."
|
||||
- docker build -t aetos/docs:latest .
|
||||
|
||||
# 📤 Step 3: Push image to private registry
|
||||
# 📤 Step 2: Push image to private registry
|
||||
- name: push-image
|
||||
image: docker:24
|
||||
environment:
|
||||
@@ -69,12 +61,18 @@ steps:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- echo "🚀 Starting container aetos/docs:latest ..."
|
||||
- echo "🚀 Starting aetos/docs:latest ..."
|
||||
- |
|
||||
docker run -d \
|
||||
--name docs \
|
||||
-p 6007:80 \
|
||||
-e NODE_ENV=production \
|
||||
-p 6007:9000 \
|
||||
-p 8000:8000 \
|
||||
-p 8001:8001 \
|
||||
-p 8002:8002 \
|
||||
-p 8003:8003 \
|
||||
-p 8004:8004 \
|
||||
-p 8005:8005 \
|
||||
-p 8006:8006 \
|
||||
--restart always \
|
||||
aetos/docs:latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user