-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
91 lines (79 loc) · 2.61 KB
/
Taskfile.yml
File metadata and controls
91 lines (79 loc) · 2.61 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
version: "3"
tasks:
up:
desc: "Start all services. For Enterprise: LICENSE_PUBLIC_KEY=... LICENSE_KEY=... task up"
dir: "{{.USER_WORKING_DIR}}"
preconditions:
- "test -f docker-compose.yml"
cmds:
- "docker compose up --build --remove-orphans --detach"
up-minimal:
dir: "{{.USER_WORKING_DIR}}"
preconditions:
- "test -f docker-compose.yml"
cmds:
- "sh -c 'EASYP_POSTGRES_PORT=${EASYP_POSTGRES_PORT:-5433} docker compose up -d postgres'"
down:
dir: "{{.USER_WORKING_DIR}}"
preconditions:
- "test -f docker-compose.yml"
cmds:
- "docker compose down --volumes"
build-plugins:
desc: "Build all plugin binaries from registry/ Dockerfiles"
dir: "{{.USER_WORKING_DIR}}"
cmds:
- "go run ./cmd/epctl plugins build"
register-plugins:
desc: "Register all built plugins via gRPC CreatePlugin API"
dir: "{{.USER_WORKING_DIR}}"
cmds:
- "go run ./cmd/epctl plugins register"
run:
desc: "Full cycle: build plugins → restart services → register → follow logs"
dir: "{{.USER_WORKING_DIR}}"
cmds:
- task: build-plugins
- task: down
- task: up
- "echo 'Waiting for service to be ready...' && until curl -sf http://localhost:8082/health >/dev/null 2>&1; do sleep 2; done && echo 'Service is ready!'"
- task: register-plugins
setup:
desc: "Build plugins, start services, register plugins (no logs)"
dir: "{{.USER_WORKING_DIR}}"
cmds:
- task: build-plugins
- task: down
- task: up
- "echo 'Waiting for service to be ready...' && until curl -sf http://localhost:8082/health >/dev/null 2>&1; do sleep 2; done && echo 'Service is ready!'"
- task: register-plugins
run-local:
dir: "{{.USER_WORKING_DIR}}"
preconditions:
- "test -f config.local.yml"
cmds:
- "go run ./cmd/easyp/ -cfg config.local.yml -log_level debug"
test-mcp:
dir: "{{.USER_WORKING_DIR}}"
cmds:
- "go test ./internal/mcpserver -run TestMCPServer -count=1"
smoke-mcp:
dir: "{{.USER_WORKING_DIR}}"
deps:
- "up"
cmds:
- "go run ./cmd/mcp-smoke --endpoint http://localhost:8083/mcp"
generate:
desc: "Run easyp generate against locally running service (localhost:8080)"
dir: "{{.USER_WORKING_DIR}}"
preconditions:
- "test -f easyp.yaml"
cmds:
- "easyp --cfg easyp.yaml generate"
generate-local:
desc: "Run easyp generate against local service (localhost:8080)"
dir: "{{.USER_WORKING_DIR}}"
preconditions:
- "test -f easyp.local.yaml"
cmds:
- "easyp --cfg easyp.local.yaml generate"