feat: Add deployment scripts, Docker configuration, and documentation for Cloud MCP project
This commit is contained in:
42
Makefile
Normal file
42
Makefile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user