-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiltfile
More file actions
89 lines (77 loc) · 2.5 KB
/
Copy pathTiltfile
File metadata and controls
89 lines (77 loc) · 2.5 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
# Simplified Tiltfile for viewing logs
# All services are managed via docker-compose, Tilt just provides a nice UI for logs
# Load docker-compose with matching project name
# Disable file watching to prevent rebuilds - we only want log viewing
docker_compose(
"docker-compose.yml",
project_name="raidhub",
)
watch_settings(ignore=['*', '!apps/**', '!lib/**'])
# Explicitly expose all services with correct names for log viewing
# Infrastructure services
dc_resource("postgres", labels=["database"])
dc_resource("rabbitmq", labels=["messaging"])
dc_resource("clickhouse", labels=["database"])
dc_resource("prometheus", labels=["metrics-logging"])
dc_resource("loki", labels=["metrics-logging"])
dc_resource("promtail", labels=["metrics-logging"])
dc_resource("grafana", labels=["metrics-logging"])
# Application services
dc_resource("atlas", labels=["app"])
dc_resource("zeus", labels=["app"])
dc_resource("hermes", labels=["app"])
# =============================================================================
# TOOLS
# =============================================================================
# Automatically discover and create local resources for all tools
tool_deps = ["postgres", "rabbitmq", "clickhouse"]
# Explicitly list all tools to avoid auto-discovery issues
tools = [
"activity-history-update",
"cheat-detection",
"fix-sherpa-clears",
"flag-restricted-pgcrs",
"leaderboard-clan-crawl",
"manifest-downloader",
"seed",
"update-skull-hashes",
]
for tool in tools:
tool_path = "tools/" + tool
local_resource(
tool,
cmd="go run ./%s" % tool_path,
auto_init=False,
labels=["tools"],
)
views = [
"individual_global_leaderboard",
"individual_raid_leaderboard",
"world_first_contest_leaderboard",
"team_activity_version_leaderboard",
"team_pantheon_custom_race_leaderboard",
]
for view in views:
local_resource(
"refresh %s" % view,
cmd="go run ./tools/refresh-view %s" % view,
auto_init=False,
labels=["views"],
)
# =============================================================================
# DATABASE
# =============================================================================
local_resource(
"migrate-postgres",
cmd="make migrate-postgres",
resource_deps=["postgres"],
auto_init=False,
labels=["database"],
)
local_resource(
"migrate-clickhouse",
cmd="make migrate-clickhouse",
resource_deps=["clickhouse"],
auto_init=False,
labels=["database"],
)