Add dev infrastructure improvements
- Central config with logging on startup - Hot reload support for GPU worker (docker-compose.gpu-dev.yml) - Quick deploy script (scripts/gpu-dev-deploy.sh) - GPU/CPU frame compatibility tests - CI/CD pipeline for GPU worker (.gitea/workflows/gpu-worker.yml) - Standardize GPU_PERSIST default to 0 across all modules Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
34
scripts/gpu-dev-deploy.sh
Executable file
34
scripts/gpu-dev-deploy.sh
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
# Quick deploy to GPU node with hot reload
|
||||
# Usage: ./scripts/gpu-dev-deploy.sh
|
||||
|
||||
set -e
|
||||
|
||||
GPU_HOST="${GPU_HOST:-root@138.197.163.123}"
|
||||
REMOTE_DIR="/root/art-dag/celery"
|
||||
|
||||
echo "=== GPU Dev Deploy ==="
|
||||
echo "Syncing code to $GPU_HOST..."
|
||||
|
||||
# Sync code (excluding cache, git, __pycache__)
|
||||
rsync -avz --delete \
|
||||
--exclude '.git' \
|
||||
--exclude '__pycache__' \
|
||||
--exclude '*.pyc' \
|
||||
--exclude '.pytest_cache' \
|
||||
--exclude 'node_modules' \
|
||||
--exclude '.env' \
|
||||
./ "$GPU_HOST:$REMOTE_DIR/"
|
||||
|
||||
echo "Restarting GPU worker..."
|
||||
ssh "$GPU_HOST" "docker kill \$(docker ps -q -f name=l1-gpu-worker) 2>/dev/null || true"
|
||||
|
||||
echo "Waiting for new container..."
|
||||
sleep 10
|
||||
|
||||
# Show new container logs
|
||||
ssh "$GPU_HOST" "docker logs --tail 30 \$(docker ps -q -f name=l1-gpu-worker)"
|
||||
|
||||
echo ""
|
||||
echo "=== Deploy Complete ==="
|
||||
echo "Use 'ssh $GPU_HOST docker logs -f \$(docker ps -q -f name=l1-gpu-worker)' to follow logs"
|
||||
Reference in New Issue
Block a user