初始提交 - FutureOSS v1.0 插件化运行时框架

一切皆为插件的开发者工具运行时框架

🧩 核心特性:
  - 插件热插拔 (importlib 动态加载)
  - 依赖自动解析 (拓扑排序 + 循环检测)
  - 企业级稳定 (熔断/降级/重试/隔离)
  - 事件驱动 (发布/订阅事件总线)
  - 完整配置 (YAML 配置 + 热重载)
This commit is contained in:
Falck
2026-04-06 09:57:10 +08:00
commit 76147bae94
174 changed files with 15626 additions and 0 deletions

46
Dockerfile Normal file
View File

@@ -0,0 +1,46 @@
FROM python:3.12-slim AS builder
WORKDIR /app
# 构建依赖
COPY pyproject.toml ./
COPY README.md ./
# 安装 Python 依赖
RUN pip install --no-cache-dir --prefix=/install . 2>/dev/null || \
pip install --no-cache-dir --prefix=/install --break-system-packages . 2>/dev/null || true
# 兜底核心依赖
RUN pip install --no-cache-dir --prefix=/install click pyyaml websockets 2>/dev/null || true
# ─────────────────────────────────────────────────────────
FROM python:3.12-slim
LABEL maintainer="Falck <https://gitee.com/starlight-apk>"
LABEL description="FutureOSS — 一切皆为插件的开发者工具运行时框架"
WORKDIR /app
# 复制依赖
COPY --from=builder /install /usr/local
# 复制项目文件
COPY oss/ ./oss/
COPY store/ ./store/
COPY data/ ./data/
COPY start.sh ./start.sh
COPY pyproject.toml ./pyproject.toml
COPY README.md ./README.md
# 创建必要目录
RUN mkdir -p /app/data/html-render /app/data/web-toolkit /app/data/plugin-storage /app/data/DCIM /app/data/pkg /app/logs
# 暴露端口
EXPOSE 8080 8081 8082
# 健康检查
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8080/health || exit 1
# 启动
CMD ["python", "-m", "oss.cli", "serve"]