Commit graph

16 commits

Author SHA1 Message Date
3e1d752bfd refactor: extract shared utilities into common library
- Create bin/lib/common.sh with shared logging and utility functions
- Add minecraft/.env.example for environment configuration template
- Update bin scripts to source shared library (DRY principle)
- Consolidate duplicated logging functions across scripts
2025-12-13 10:00:00 +08:00
0fe7ed79ad refactor: 重构Minecraft服务器自动化管理方案
## 重构内容

### 新增自动化脚本系统 (scripts/)
- utils.sh: 通用工具库(日志、Docker操作、备份、网络检查)
- setup.sh: 环境初始化脚本(目录结构、权限、配置验证)
- mod-manager.sh: Mods管理(Modrinth下载、更新、清理)
- backup.sh: 备份管理(世界/配置/mods备份、恢复、清理)
- monitor.sh: 服务器监控(状态、资源、玩家、日志分析)

### 增强Makefile集成
新增命令:
- minecraft-status: 服务器状态检查
- minecraft-setup: 环境初始化
- minecraft-mods-*: Mods管理命令
- minecraft-backup-*: 备份管理命令

### 完善文档
- 重写README: 详细的使用指南、故障排查、迁移指南
- 新增CHANGELOG: 完整的重构说明和技术细节

## 架构改进

### 整合原有设计
- 继承src/automatic/的日志系统设计
- 改进Modrinth API集成逻辑
- 优化部署流程和备份机制

### 新增优势
- Docker优先的容器化方案
- 模块化脚本设计,职责单一
- Makefile统一管理入口
- 完整的生命周期自动化

## 技术特性

- 完善的错误处理和日志记录
- macOS/Linux跨平台兼容
- 敏感信息安全管理
- 持续监控模式

## 向后兼容

- 保留src/automatic/旧脚本(供参考)
- 配置文件格式完全兼容
- Docker Compose配置无变化
2025-12-09 10:00:00 +08:00
4ff60014df refactor: improve Minecraft automation scripts
Standardize shebang to #!/usr/bin/env bash
Add descriptive headers to all scripts
Make all scripts executable

Consistent with Unix best practices:
- Portable shebang usage
- Self-documenting code
- Proper file permissions
2025-12-08 10:30:00 +08:00
2e55194f5c feat: add operational utilities for monitoring and backup
Add healthcheck.sh for service status monitoring
- Check container health and port accessibility
- Support individual service or all-services check

Add backup.sh for data protection
- Backup service data and configurations
- List existing backups
- Cleanup old backups with retention policy

Unix philosophy: small sharp tools that do one thing well
2025-12-07 13:00:00 +08:00
01054f7b22 feat: add unified Makefile for service management
Provide consistent interface for all operations
Simplify common tasks across services
Support both individual and batch operations

Unix philosophy: composable tools with standard interface
Make targets: help, status, up, down, logs, restart per service
2025-12-06 16:20:00 +08:00
594cdf586d feat: add TeamSpeak environment template
Provide .env.example for TeamSpeak configuration
Ensures consistency across service deployments

All services now have .env.example files
2025-12-05 11:45:00 +08:00
5be2155b3c refactor: improve org-clone script with proper error handling
- Add comprehensive error checking and validation
- Implement proper argument parsing with usage help
- Add colored output for better readability
- Include prerequisite checks for gh CLI
- Track success/failure statistics

Unix philosophy: do one thing well, fail gracefully
2025-12-04 09:15:00 +08:00
0f71ff88ea docs: add comprehensive project README
Document project philosophy and structure
Provide clear usage instructions for all services
Follow documentation-as-code principle

Unix philosophy: be clear about what tools do
2025-12-03 14:30:00 +08:00
546a923e76 chore: add project infrastructure files
Add .gitignore to exclude sensitive and generated files
Add MIT License for open source compliance

Following Unix philosophy: clear project boundaries
2025-12-02 10:00:00 +08:00
97e44ab818
Merge pull request #1 from m1ngsama/feature/nextcloud
feat(nextcloud): add local nextcloud docker compose setup
2025-11-18 16:47:55 +08:00
35dcacdc7c feat(nextcloud): add local nextcloud docker compose setup 2025-11-18 16:47:11 +08:00
33ade46a99 upload org multi repository clone scripts 2025-11-14 11:08:39 +08:00
2207914289 update minecraft compose file and some specific config 2025-11-12 15:33:22 +08:00
dcb32e6b91 init the compose file for the establishment of teamspeak server 2025-11-06 18:44:46 +08:00
a177ec70d7 add compose.yaml 2025-11-02 18:13:50 +08:00
3bafd84230 init index and upload the scripts of minecraft 2025-10-28 11:13:41 +08:00