-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
118 lines (92 loc) · 3.57 KB
/
Makefile
File metadata and controls
118 lines (92 loc) · 3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# ============================================================================
# PrescriberPoint Development Environment - Makefile
# ============================================================================
# Convenient commands for managing the development environment
# ============================================================================
.PHONY: help clone start stop restart logs status cli clean build mcp-setup
# Default target - show help
help:
@echo "PrescriberPoint Development Environment - Make Commands"
@echo ""
@echo "Setup:"
@echo " make clone Clone all PPT repositories to repos/"
@echo " make mcp-setup Configure MCP servers (GitHub, Atlassian)"
@echo ""
@echo "Development:"
@echo " make start Start multi-container development environment"
@echo " make stop Stop all containers"
@echo " make restart Restart all containers"
@echo " make build Build all Docker images"
@echo ""
@echo "Monitoring:"
@echo " make logs View logs from all containers"
@echo " make status Show status of all containers"
@echo " make cli Shell into the CLI container"
@echo ""
@echo "Maintenance:"
@echo " make clean Stop all containers and remove volumes"
@echo ""
@echo "Repository Locations (after clone):"
@echo " repos/ppt-agentic"
@echo " repos/microservice-epa"
@echo " repos/microservice-case-management"
@echo " repos/microservice-profile"
@echo " repos/microservice-sam-gateway"
@echo " repos/ppt-common-csharp"
@echo ""
# ============================================================================
# Setup
# ============================================================================
clone:
@./scripts/clone-repos.sh
mcp-setup:
@./scripts/setup-shared-auth.sh
# ============================================================================
# Development
# ============================================================================
start:
@./scripts/start-dev.sh
stop:
@./scripts/stop-dev.sh
restart: stop start
build:
@echo "Building Docker images..."
@DOCKER_BUILDKIT=1 docker-compose build
# ============================================================================
# Monitoring
# ============================================================================
logs:
@docker-compose logs -f
status:
@docker-compose ps
cli:
@docker exec -it ppt-dev bash
# ============================================================================
# Individual Service Logs
# ============================================================================
logs-sql:
@docker-compose logs -f sqlserver
logs-redis:
@docker-compose logs -f redis
logs-azurite:
@docker-compose logs -f azurite
logs-epa:
@docker-compose logs -f microservice-epa
logs-cm:
@docker-compose logs -f microservice-case-management
logs-agentic:
@docker-compose logs -f ppt-agentic
# ============================================================================
# Maintenance
# ============================================================================
clean:
@echo "Stopping all containers and removing volumes..."
@docker-compose down -v 2>/dev/null || true
@echo "Cleanup complete"
# ============================================================================
# Database Operations
# ============================================================================
db-shell:
@docker exec -it ppt-sqlserver /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "$(shell grep MSSQL_SA_PASSWORD .env | cut -d '=' -f2)" -C
redis-shell:
@docker exec -it ppt-redis redis-cli