-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (37 loc) · 1.26 KB
/
Makefile
File metadata and controls
50 lines (37 loc) · 1.26 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
.PHONY: build up down logs test health pull-model setup-hooks test-ringgo
build:
docker compose build
up:
docker compose up -d
down:
docker compose down
logs:
docker compose logs -f processor
test:
curl -X POST http://localhost:8090/notification \
-H "Content-Type: application/json" \
-d '{"app": "discord", "title": "Uptime Kuma", "body": "Server X is down"}'
test-drop:
curl -X POST http://localhost:8090/notification \
-H "Content-Type: application/json" \
-d '{"app": "discord", "title": "Random User", "body": "Hello world"}'
test-messages:
curl -X POST http://localhost:8090/notification \
-H "Content-Type: application/json" \
-d '{"app": "messages", "title": "Friend", "body": "Hey, are you free?"}'
test-ringgo:
curl -X POST http://localhost:8090/notification \
-H "Content-Type: application/json" \
-d '{"app": "messages", "title": "81025", "body": "RingGo: Parking confirmed. Location 26205, 2 hours until 14:30. Cost 4.50 GBP."}'
health:
curl http://localhost:8090/health
pull-model:
docker compose exec ollama ollama pull qwen2.5:3b
restart:
docker compose restart processor
rebuild:
docker compose up -d --build processor
setup-hooks:
cp hooks/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
@echo "Git hooks installed"