-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
158 lines (131 loc) · 3.59 KB
/
Taskfile.yaml
File metadata and controls
158 lines (131 loc) · 3.59 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
# https://taskfile.dev
version: '3'
includes:
attraction:
taskfile: trip-attraction-service/Taskfile.yaml
dir: trip-attraction-service
internal: true
chat:
taskfile: trip-chat-service/Taskfile.yaml
dir: trip-chat-service
internal: true
file:
taskfile: trip-file-service/Taskfile.yaml
dir: trip-file-service
internal: true
hotel:
taskfile: trip-hotel-service/Taskfile.yaml
dir: trip-hotel-service
internal: true
itinerary-planner:
taskfile: trip-itinerary-planner/Taskfile.yaml
dir: trip-itinerary-planner
internal: true
itinerary:
taskfile: trip-itinerary-service/Taskfile.yaml
dir: trip-itinerary-service
internal: true
journey-assistant:
taskfile: trip-journey-assistant/Taskfile.yaml
dir: trip-journey-assistant
internal: true
next-frontend:
taskfile: trip-next-frontend/Taskfile.yaml
dir: trip-next-frontend
internal: true
note:
taskfile: trip-note-service/Taskfile.yaml
dir: trip-note-service
internal: true
review:
taskfile: trip-review-service/Taskfile.yaml
dir: trip-review-service
internal: true
review-summary:
taskfile: trip-review-summary/Taskfile.yaml
dir: trip-review-summary
internal: true
user:
taskfile: trip-user-service/Taskfile.yaml
dir: trip-user-service
internal: true
k8s:
taskfile: deployment/kubernetes/Taskfile.yaml
dir: deployment/kubernetes
tasks:
default:
desc: List all available tasks
cmds:
- task --list-all
silent: true
buf:
desc: Run buf format and buf lint
dir: contracts
cmds:
- buf format --write
- buf lint
gen-proto:
desc: Generate protobuf and gRPC codes
cmds:
- task: attraction:gen-proto
- task: chat:gen-proto
- task: file:gen-proto
- task: hotel:gen-proto
- task: itinerary-planner:gen-proto
- task: itinerary:gen-proto
- task: journey-assistant:gen-proto
- task: next-frontend:gen-proto
- task: note:gen-proto
- task: review:gen-proto
- task: review-summary:gen-proto
- task: user:gen-proto
build:
desc: Build Docker images for all services
cmds:
- task: attraction:build
- task: chat:build
- task: file:build
- task: hotel:build
- task: itinerary-planner:build
- task: itinerary:build
- task: journey-assistant:build
- task: next-frontend:build
- task: note:build
- task: review:build
- task: review-summary:build
- task: user:build
start:
desc: Start all services by Docker Compose
cmds:
- docker compose up --force-recreate --remove-orphans --detach
stop:
desc: Stop all services by Docker Compose
cmds:
- docker compose down --remove-orphans --volumes
# =============================================================================
# Kubernetes Deployment Tasks
# =============================================================================
k8s-init:
desc: Initialize Kubernetes deployment
cmds:
- task: k8s:init
k8s-deploy:
desc: Deploy entire TripSphere stack to Kubernetes
cmds:
- task: k8s:deploy-all
k8s-deploy-middlewares:
desc: Deploy only middlewares to Kubernetes
cmds:
- task: k8s:deploy-middlewares
k8s-deploy-services:
desc: Deploy only TripSphere services to Kubernetes
cmds:
- task: k8s:deploy-services
k8s-status:
desc: Show Kubernetes deployment status
cmds:
- task: k8s:status
k8s-cleanup:
desc: Cleanup all Kubernetes resources
cmds:
- task: k8s:cleanup