🚀 Major Release: DigiServer v1.1.0 Production Deployment ## 📁 Project Restructure - Moved all application code to app/ directory for Docker containerization - Centralized persistent data in data/ directory with volume mounting - Removed development artifacts and cleaned up project structure ## 🐳 Docker Integration - Added production-ready Dockerfile with LibreOffice and poppler-utils - Updated docker-compose.yml for production deployment - Added .dockerignore for optimized build context - Created automated deployment script (deploy-docker.sh) - Added cleanup script (cleanup-docker.sh) ## 📄 Document Processing Enhancements - Integrated LibreOffice for professional PPTX to PDF conversion - Implemented PPTX → PDF → 4K JPG workflow for optimal quality - Added poppler-utils for enhanced PDF processing - Simplified PDF conversion to 300 DPI for reliability ## 🔧 File Management Improvements - Fixed absolute path resolution for containerized deployment - Updated all file deletion functions with proper path handling - Enhanced bulk delete functions for players and groups - Improved file upload workflow with consistent path management ## 🛠️ Code Quality & Stability - Cleaned up pptx_converter.py from 442 to 86 lines - Removed all Python cache files (__pycache__/, *.pyc) - Updated file operations for production reliability - Enhanced error handling and logging ## 📚 Documentation Updates - Updated README.md with Docker deployment instructions - Added comprehensive DEPLOYMENT.md guide - Included production deployment best practices - Added automated deployment workflow documentation ## 🔐 Security & Production Features - Environment-based configuration - Health checks and container monitoring - Automated admin user creation - Volume-mounted persistent data - Production logging and error handling ## ✅ Ready for Production - Clean project structure optimized for Docker - Automated deployment with ./deploy-docker.sh - Professional document processing pipeline - Reliable file management system - Complete documentation and deployment guides Access: http://localhost:8880 | Admin: admin/Initial01!
65 lines
1.6 KiB
Bash
Executable File
65 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
# DigiServer Docker Cleanup Script
|
|
# Version: 1.1.0
|
|
|
|
set -e
|
|
|
|
echo "🧹 DigiServer Docker Cleanup"
|
|
echo "============================"
|
|
|
|
# Colors for output
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m' # No Color
|
|
|
|
# Function to print colored output
|
|
print_status() {
|
|
echo -e "${BLUE}[INFO]${NC} $1"
|
|
}
|
|
|
|
print_success() {
|
|
echo -e "${GREEN}[SUCCESS]${NC} $1"
|
|
}
|
|
|
|
print_warning() {
|
|
echo -e "${YELLOW}[WARNING]${NC} $1"
|
|
}
|
|
|
|
print_error() {
|
|
echo -e "${RED}[ERROR]${NC} $1"
|
|
}
|
|
|
|
# Confirm cleanup
|
|
print_warning "This will stop and remove all DigiServer containers and images."
|
|
print_warning "Your data in the ./data directory will be preserved."
|
|
echo ""
|
|
read -p "Are you sure you want to continue? (y/N): " -n 1 -r
|
|
echo
|
|
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
print_status "Cleanup cancelled."
|
|
exit 0
|
|
fi
|
|
|
|
# Stop and remove containers
|
|
print_status "Stopping DigiServer containers..."
|
|
docker compose down
|
|
|
|
# Remove DigiServer images
|
|
print_status "Removing DigiServer images..."
|
|
docker rmi digiserver:latest 2>/dev/null || print_warning "DigiServer image not found"
|
|
|
|
# Clean up unused Docker resources
|
|
print_status "Cleaning up unused Docker resources..."
|
|
docker system prune -f
|
|
|
|
# Clean up development cache files
|
|
print_status "Cleaning up development cache files..."
|
|
find ./app -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true
|
|
find ./app -name "*.pyc" -delete 2>/dev/null || true
|
|
|
|
print_success "Cleanup completed!"
|
|
print_status "Data directory preserved at: ./data"
|
|
print_status "To redeploy, run: ./deploy-docker.sh"
|