-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
71 lines (61 loc) · 1.93 KB
/
Taskfile.yml
File metadata and controls
71 lines (61 loc) · 1.93 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
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 registry'"
down:
dir: "{{.USER_WORKING_DIR}}"
preconditions:
- "test -f docker-compose.yml"
cmds:
- "docker compose down --volumes"
local-push-registry:
dir: "{{.USER_WORKING_DIR}}"
preconditions:
- "test -f push.sh"
cmds:
- "./push.sh localhost:5005 --push"
local-push-required:
dir: "{{.USER_WORKING_DIR}}"
preconditions:
- "test -f registry/protocolbuffers/go/v1.36.10/Dockerfile"
- "test -f registry/grpc/go/v1.5.1/Dockerfile"
cmds:
- "docker build --platform linux/amd64 -t localhost:5005/protocolbuffers/go:v1.36.10 registry/protocolbuffers/go/v1.36.10"
- "docker push localhost:5005/protocolbuffers/go:v1.36.10"
- "docker build --platform linux/amd64 -t localhost:5005/grpc/go:v1.5.1 registry/grpc/go/v1.5.1"
- "docker push localhost:5005/grpc/go:v1.5.1"
run:
dir: "{{.USER_WORKING_DIR}}"
deps:
- "down"
- "up"
- "local-push-registry"
cmds:
- "docker compose logs -f service"
run-local:
dir: "{{.USER_WORKING_DIR}}"
preconditions:
- "test -f config.local.yml"
cmds:
- "go run ./cmd/main.go -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"