feat: Add deployment scripts, Docker configuration, and documentation for Cloud MCP project

This commit is contained in:
ethan.chen
2026-01-07 13:54:32 +08:00
parent 47ecc40186
commit 6ab690fa40
10 changed files with 942 additions and 0 deletions

42
Makefile Normal file
View File

@@ -0,0 +1,42 @@
# Makefile for Cloud MCP Deployment
.PHONY: help build up down restart logs status deploy clean
# Default target
help:
@echo "Cloud MCP Deployment Commands:"
@echo " make build - Build Docker image"
@echo " make up - Start container"
@echo " make down - Stop container"
@echo " make restart - Restart container"
@echo " make logs - Show container logs"
@echo " make status - Show container status"
@echo " make deploy - Full deployment (pull, build, restart)"
@echo " make clean - Clean up unused Docker resources"
build:
docker-compose build
up:
docker-compose up -d
down:
docker-compose down
restart:
docker-compose restart
logs:
docker-compose logs -f
status:
docker-compose ps
@echo ""
@docker logs --tail 20 cloud-mcp 2>/dev/null || echo "Container not running"
deploy:
@./deploy.sh --pull --rebuild
clean:
docker system prune -f