-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
173 lines (144 loc) · 3.75 KB
/
Copy pathTaskfile.yml
File metadata and controls
173 lines (144 loc) · 3.75 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
version: "3"
tasks:
up:
desc: Start all services in detached mode
cmds:
- docker-compose up -d
down:
desc: Stop all services
cmds:
- docker-compose down
logs:
desc: Follow logs from all services
cmds:
- docker-compose logs -f
build:
desc: Rebuild all images
cmds:
- docker-compose build --parallel
restart:
desc: Restart all services
cmds:
- task: down
- task: up
# Individual Service Management
backend:
desc: Start image-memory-backend separately
cmds:
- docker-compose up -d image-memory-backend
frontend:
desc: Start image-memory-frontend separately
cmds:
- docker-compose up -d image-memory-frontend
docs:
desc: Start image-memory-docs separately
cmds:
- docker-compose up -d image-memory-docs
db:
desc: Start postgres_db
cmds:
- docker-compose up -d db
redis:
desc: Start redis_cache
cmds:
- docker-compose up -d redis
# Log Following
backend-logs:
desc: Follow image-memory-backend logs
cmds:
- docker-compose logs -f image-memory-backend
frontend-logs:
desc: Follow image-memory-frontend logs
cmds:
- docker-compose logs -f image-memory-frontend
docs-logs:
desc: Follow image-memory-docs logs
cmds:
- docker-compose logs -f image-memory-docs
# Cleanup & Utility
clean:
desc: Remove all containers, networks, and volumes (Fresh start)
cmds:
- docker-compose down -v --remove-orphans
status:
desc: Check the status of all services
cmds:
- docker-compose ps
# Development & Quality
lint:
desc: Run linting for all services and root
cmds:
- npm run lint
- cd image-memory/backend && npm run lint
- cd image-memory/frontend && npm run lint
typecheck:
desc: Run typechecking for all services and root
cmds:
- npm run typecheck
- cd image-memory/backend && npm run build
- cd image-memory/frontend && npm run build
test:
desc: Run unit tests for backend
cmds:
- cd image-memory/backend && npm run test
agent-cli:
desc: Apply the k8 resource manifests for the agent-cli
cmds:
- kubectl apply -f k8s/agent-cli
nodes:
desc: Get the nodes in the cluster
cmds:
- kubectl get nodes
pods:
desc: Get the pods in the cluster
cmds:
- kubectl get pods
cli:
desc: Run the agent CLI locally
cmds:
- npm run dev
# Docker Service Management
build-cli:
desc: Build the agent-cli image
cmds:
- docker-compose build agent-cli
run-cli:
desc: Run the agent-cli in a Docker container (Interactive)
cmds:
- docker-compose run --rm agent-cli
build-backend:
desc: Build the image-memory-backend image
cmds:
- docker-compose build image-memory-backend
run-backend:
desc: Run the image-memory-backend separately in Docker
cmds:
- docker-compose up -d image-memory-backend
build-frontend:
desc: Build the image-memory-frontend image
cmds:
- docker-compose build image-memory-frontend
run-frontend:
desc: Run the image-memory-frontend separately in Docker
cmds:
- docker-compose up -d image-memory-frontend
build-docs:
desc: Build the image-memory-docs image
cmds:
- docker-compose build image-memory-docs
run-docs:
desc: Run the image-memory-docs separately in Docker
cmds:
- docker-compose up -d image-memory-docs
run-db:
desc: Start postgres_db in Docker
cmds:
- docker-compose up -d db
run-redis:
desc: Start redis_cache in Docker
cmds:
- docker-compose up -d redis
add-cli-to-kind:
desc: Add the agent-cli image to kind
cmds:
- kind load docker-image agent-cli