Initial CHORUS project setup
🎭 CHORUS - Container-First P2P Task Coordination System - Docker-first architecture designed from ground up - Environment variable-based configuration (no config files) - Structured logging to stdout/stderr for container runtimes - License validation required for operation - Clean separation from BZZZ legacy systemd approach Core features implemented: - Container-optimized logging system - Environment-based configuration management - License validation with KACHING integration - Basic HTTP API and health endpoints - Docker build and deployment configuration Ready for P2P protocol development and AI integration. 🤖 Generated with Claude Code
This commit is contained in:
36
docker/build.sh
Executable file
36
docker/build.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# CHORUS Build and Deployment Script
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
||||
IMAGE_NAME="chorus"
|
||||
IMAGE_TAG="${1:-latest}"
|
||||
|
||||
echo "🎭 Building CHORUS container image..."
|
||||
echo "📁 Project root: $PROJECT_ROOT"
|
||||
echo "🏷️ Image: $IMAGE_NAME:$IMAGE_TAG"
|
||||
|
||||
# Build the Docker image
|
||||
cd "$PROJECT_ROOT"
|
||||
docker build -f docker/Dockerfile -t "$IMAGE_NAME:$IMAGE_TAG" .
|
||||
|
||||
echo "✅ CHORUS container built successfully!"
|
||||
echo ""
|
||||
echo "🚀 Quick Start:"
|
||||
echo " 1. Copy environment file:"
|
||||
echo " cp docker/chorus.env.example docker/chorus.env"
|
||||
echo ""
|
||||
echo " 2. Edit docker/chorus.env with your license key:"
|
||||
echo " CHORUS_LICENSE_EMAIL=your-email@example.com"
|
||||
echo " CHORUS_LICENSE_KEY=your-license-key-here"
|
||||
echo ""
|
||||
echo " 3. Start CHORUS:"
|
||||
echo " docker-compose -f docker/docker-compose.yml --env-file docker/chorus.env up -d"
|
||||
echo ""
|
||||
echo " 4. Check status:"
|
||||
echo " docker-compose -f docker/docker-compose.yml logs -f"
|
||||
echo " curl http://localhost:8081/health"
|
||||
echo ""
|
||||
echo "📖 For production deployment instructions, see README.md"
|
||||
Reference in New Issue
Block a user