mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-13 09:07:20 +00:00
add updated container scripts
This commit is contained in:
@@ -19,6 +19,7 @@ This directory contains deployment, configuration, and management scripts for th
|
||||
- **`backup.sh`** - Manual database backup
|
||||
- **`backup-hourly.sh`** - Hourly automated backup script
|
||||
- **`backup-daily.sh`** - Daily automated backup script
|
||||
- **`backup-scheduler.sh`** - Enhanced backup scheduler with hourly and daily schedules
|
||||
- **`restore.sh`** - Database restoration from backup
|
||||
|
||||
### 🧹 Maintenance
|
||||
@@ -26,9 +27,18 @@ This directory contains deployment, configuration, and management scripts for th
|
||||
- **`rebuild-with-modules.sh`** - Rebuild containers with module compilation
|
||||
- **`test-local-worldserver.sh`** - Local worldserver testing
|
||||
|
||||
### 🔧 Service Management (GitHub-hosted)
|
||||
- **`download-client-data.sh`** - Downloads and extracts WoW client data files
|
||||
- **`manage-modules.sh`** - Comprehensive module management and configuration
|
||||
- **`manage-modules-sql.sh`** - SQL execution functions for module database setup
|
||||
- **`mysql-startup.sh`** - MySQL initialization with backup restoration support
|
||||
- **`db-init.sh`** - Database creation and initialization
|
||||
- **`db-import.sh`** - Database schema import operations
|
||||
|
||||
### 📚 Documentation
|
||||
- **`DEPLOYMENT.md`** - Complete documentation for deployment scripts
|
||||
- **`CLEANUP.md`** - Complete documentation for cleanup scripts
|
||||
- **`GITHUB-HOSTED-SCRIPTS.md`** - Comprehensive documentation for service scripts
|
||||
|
||||
## Quick Usage
|
||||
|
||||
@@ -100,6 +110,53 @@ cd scripts
|
||||
# Daily: ./scripts/backup-daily.sh
|
||||
```
|
||||
|
||||
### ☁️ GitHub-Hosted Script Usage
|
||||
|
||||
The GitHub-hosted scripts are automatically executed by Docker containers, but you can also run them manually for testing:
|
||||
|
||||
```bash
|
||||
# Download and test client data script
|
||||
curl -fsSL https://raw.githubusercontent.com/uprightbass360/acore-compose/main/scripts/download-client-data.sh -o /tmp/download-client-data.sh
|
||||
chmod +x /tmp/download-client-data.sh
|
||||
# Note: Requires proper environment variables and volume mounts
|
||||
|
||||
# Download and test module management script
|
||||
curl -fsSL https://raw.githubusercontent.com/uprightbass360/acore-compose/main/scripts/manage-modules.sh -o /tmp/manage-modules.sh
|
||||
chmod +x /tmp/manage-modules.sh
|
||||
# Note: Requires module environment variables
|
||||
|
||||
# Download backup scheduler
|
||||
curl -fsSL https://raw.githubusercontent.com/uprightbass360/acore-compose/main/scripts/backup-scheduler.sh -o /tmp/backup-scheduler.sh
|
||||
chmod +x /tmp/backup-scheduler.sh
|
||||
# Note: Requires backup environment variables
|
||||
```
|
||||
|
||||
**Script Dependencies:**
|
||||
- **Client Data Script**: Requires `/cache` and `/azerothcore/data` volumes
|
||||
- **Module Scripts**: Require module environment variables and `/modules` volume
|
||||
- **Database Scripts**: Require MySQL environment variables and connectivity
|
||||
- **Backup Scripts**: Require `/backups` volume and MySQL connectivity
|
||||
|
||||
## GitHub-Hosted Service Scripts
|
||||
|
||||
The AzerothCore deployment uses a hybrid approach for script management:
|
||||
|
||||
### 🏠 Local Scripts
|
||||
Traditional scripts that you run directly from your local environment for setup, configuration, and management tasks.
|
||||
|
||||
### ☁️ GitHub-Hosted Scripts
|
||||
Service scripts that are automatically downloaded and executed by Docker containers at runtime. These scripts handle:
|
||||
- **Client Data Management**: Automated download and caching of ~15GB WoW client data
|
||||
- **Module Management**: Dynamic installation and configuration of AzerothCore modules
|
||||
- **Database Operations**: MySQL initialization, backup restoration, and schema imports
|
||||
- **Service Initialization**: Container startup logic with error handling and logging
|
||||
|
||||
**Benefits of GitHub-Hosted Scripts:**
|
||||
- ✅ **Portainer Compatible**: Only requires docker-compose.yml and .env files
|
||||
- ✅ **Always Current**: Scripts are pulled from the latest repository version
|
||||
- ✅ **Maintainable**: Updates don't require container rebuilds
|
||||
- ✅ **Consistent**: Same logic across all deployment environments
|
||||
|
||||
## Features
|
||||
|
||||
### 🚀 Setup & Deployment Features
|
||||
|
||||
Reference in New Issue
Block a user