-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (31 loc) · 1.01 KB
/
Makefile
File metadata and controls
50 lines (31 loc) · 1.01 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
MCP_DIR = mcp_servers
MCP_APP = threat_intel.server:mcp_app
HOST = 0.0.0.0
MCP_PORT = 8001
FASTAPI_PORT = 8000
.PHONY: mcp_server
mcp_server:
cd $(MCP_DIR) && uvicorn $(MCP_APP) --reload --host $(HOST) --port $(MCP_PORT)
# BACKEND
.PHONY:sentinel
server:
cd sentinel && uvicorn app.main:app --reload --host $(HOST) --port $(FASTAPI_PORT)
worker_:
python3 -m worker.consumer
engine:
python3 -m worker.clickhouse_writer
make build:
docker compose down
docker system prune -f
docker compose up
# curl -G https://api.abuseipdb.com/api/v2/check \
# --data-urlencode "ipAddress=118.25.6.39" \
# -d maxAgeInDays=90 \
# -d verbose \
# -H "Key: ab7ad4b933fd1db9026c067561948bc36030fd42db2a404179f387c5b7bed8023182fa7e11e87875" \
# -H "Accept: application/json"
# docker run --rm \
# -v $(pwd)/observability/vector.yaml:/etc/observability/vector.yaml:ro \
# -v $(pwd)/app/logs/app.log:/var/log/sentinel/app/logs/app.log:ro \
# timberio/vector:latest-alpine \
# --config /etc/observability/vector.yaml