-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiltfile
More file actions
37 lines (33 loc) · 1.01 KB
/
Tiltfile
File metadata and controls
37 lines (33 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
# Tiltfile for observability-dashboard development
# Install base resources via Helm chart (local development)
# Override image repositories to use local Tilt-built images (without registry prefix)
k8s_yaml(helm(
'chart',
name='observability-dashboard',
namespace='observability-dashboard',
values=['chart/values.yaml'],
set=[
'image.repository=observability-dashboard',
],
))
docker_build(
'observability-dashboard',
context='.',
live_update=[
# Sync backend source code changes
sync('app', '/app/app'),
sync('pyproject.toml', '/app/pyproject.toml'),
sync('uv.lock', '/app/uv.lock'),
# Re-install backend dependencies if project files change
run(
'cd /app && uv sync --frozen',
trigger=['pyproject.toml', 'uv.lock']
)
],
entrypoint=["uv", "run", "fastapi", "run", "--reload"],
)
k8s_resource(
'observability-dashboard',
port_forwards='10005:8000',
labels=['observability-dashboard'],
)