mirror of
https://github.com/zenlm/zen-family.git
synced 2026-10-30 14:58:06 +00:00
- Add LaTeX whitepapers for zen-artist, zen-coder, zen-eco, zen-nano, zen-next, zen-omni - Add Dockerfile, Makefile, docker-compose.yml deployment files - Add docs content: guides, models, architecture reference - Add training/scripts/tools utilities - Update .gitignore: exclude models/, archive/, generated files - Remove AI-generated slop status files
53 lines
1.2 KiB
Bash
Executable File
53 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Deploy Zen AI Models
|
|
#
|
|
|
|
set -e
|
|
|
|
echo "๐ Deploying Zen AI Models..."
|
|
|
|
# Stop existing containers
|
|
echo "๐ Stopping existing containers..."
|
|
docker-compose down 2>/dev/null || true
|
|
|
|
# Remove old traefik container if it exists
|
|
docker stop traefik 2>/dev/null || true
|
|
docker rm traefik 2>/dev/null || true
|
|
|
|
# Build images
|
|
echo "๐๏ธ Building Docker images..."
|
|
docker-compose build
|
|
|
|
# Start services
|
|
echo "๐ Starting services..."
|
|
docker-compose up -d
|
|
|
|
# Wait for services
|
|
echo "โณ Waiting for services to start..."
|
|
sleep 10
|
|
|
|
# Check status
|
|
echo ""
|
|
echo "๐ Service Status:"
|
|
docker-compose ps
|
|
|
|
# Test API
|
|
echo ""
|
|
echo "๐งช Testing API..."
|
|
curl -s http://localhost:8000/health | jq . || echo "API not ready yet"
|
|
|
|
echo ""
|
|
echo "โ
Deployment complete!"
|
|
echo ""
|
|
echo "๐ Access points:"
|
|
echo " - API: http://localhost:8000"
|
|
echo " - API Docs: http://localhost:8000/docs"
|
|
echo " - Traefik Dashboard: http://localhost:8080"
|
|
echo " - Ollama: http://localhost:11434"
|
|
echo ""
|
|
echo "๐ Useful commands:"
|
|
echo " - View logs: docker-compose logs -f"
|
|
echo " - Stop services: docker-compose down"
|
|
echo " - Restart services: docker-compose restart"
|
|
echo " - Scale API: docker-compose up -d --scale zen-api=3" |