添加配置文件管理和完整文档系统
All checks were successful
Build and Release / build-and-test (arm64, alpine) (push) Successful in 30s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 42s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 41s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 54s
Build and Release / release (push) Has been skipped

- 重构配置方式:使用 params.conf 替代命令行参数
- postinst 自动创建配置文件,升级时保护用户配置
- 初始化 llmdoc 文档系统(概述、架构、指南、参考)
- 创建 README.md 和配置指南
- 提供完整的配置模板示例

配置文件优势:升级安全、集中管理、易于维护
This commit is contained in:
2025-12-19 09:20:33 +08:00
parent 1bafc36670
commit 9ff0daa938
14 changed files with 1083 additions and 19 deletions

View File

@@ -0,0 +1,45 @@
# 项目概述P2Pool Docker 构建基础设施
## 项目背景
P2Pool 是一个去中心化的 Monero 矿池,本项目旨在提供一个标准化、可靠的构建和打包基础设施。
## 主要目标
1. 自动化构建 p2pool 二进制包
2. 支持多架构amd64, arm64
3. 生成 Debian 和通用包
4. 禁用合并挖矿捐赠功能
## 构建输出
- **二进制包**
- amd64 架构
- arm64 架构
- **包格式**
- tar.gz 压缩包
- Debian 包(.deb
- **构建基础镜像**
- Alpine Linux (推荐)
- Ubuntu LTS
## 关键特性
- 使用 Docker 多阶段构建
- 通过 Gitea Actions 自动化 CI/CD
- 支持版本化构建
- 原生架构构建,性能优化
- 自动包发布到 Gitea 包仓库
## 版本管理
- 直接从 [SChernykh/p2pool](https://github.com/SChernykh/p2pool) 上游仓库构建
- 通过 `P2POOL_VERSION` 环境变量控制构建版本
- 使用 Git 标签管理版本发布
## 使用限制
- 不包含 p2pool 源代码
- 构建时需要互联网连接
- 依赖 Docker Buildx
- 需要配置钱包地址才能运行服务