-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (57 loc) · 2.08 KB
/
Makefile
File metadata and controls
75 lines (57 loc) · 2.08 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
# Makefile for building images and managing compose
DC := docker-compose.yml
TAG := latest
# image names
IMG_WEB := CommitBoy/webhook-listener:$(TAG)
IMG_MCP := CommitBoy/mcp-engine:$(TAG)
IMG_LLM := CommitBoy/llm-service:$(TAG)
IMG_GIT := CommitBoy/git-cmd:$(TAG)
IMG_AIR := CommitBoy/airflow:2.7.1-opt
IMG_STATUS := CommitBoy/status-site:latest
.PHONY: all build-images build-webhook build-mcp build-llm build-git build-airflow \
up down logs clean help
all: build-images
build-images: build-webhook build-mcp build-llm build-git build-airflow build-status
build-webhook:
@echo "→ Building webhook-listener"
docker build -t $(IMG_WEB) services/webhook-listener
build-mcp:
@echo "→ Building mcp-engine"
docker build -t $(IMG_MCP) -f services/mcp-engine/Dockerfile .
build-llm:
@echo "→ Building llm-service"
docker build -t $(IMG_LLM) -f services/llm-service/Dockerfile .
build-git:
@echo "→ Building git-cmd"
docker build -t $(IMG_GIT) services/git-cmd
build-airflow:
@echo "→ Building custom airflow"
docker build -t $(IMG_AIR) airflow
build-status:
@echo "→ Building status-site"
docker build -t $(IMG_STATUS) -f services/status-site/Dockerfile .
up:
@echo "→ Starting stack"
docker-compose -f $(DC) up -d
down:
@echo "→ Tearing down stack"
docker-compose -f $(DC) down
logs:
@echo "→ Streaming all logs"
docker-compose -f $(DC) logs -f
clean:
@echo "→ Removing built images"
docker rmi -f $(IMG_WEB) $(IMG_MCP) $(IMG_LLM) $(IMG_GIT) $(IMG_AIR) || true
help:
@echo "Usage:"
@echo " make Build all images"
@echo " make build-images Build all images"
@echo " make build-webhook Build webhook-listener only"
@echo " make build-mcp Build mcp-engine only"
@echo " make build-llm Build llm-service only"
@echo " make build-git Build git-cmd only"
@echo " make build-airflow Build custom Airflow image"
@echo " make up Start all services"
@echo " make down Stop and remove containers"
@echo " make logs Tail all logs"
@echo " make clean Remove built images"