forked from parca-dev/parca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
32 lines (27 loc) · 915 Bytes
/
Tiltfile
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
docker_prune_settings(num_builds=5)
# Parca
## API Only
docker_build(
'parca.io/parca/parca:dev', '.',
dockerfile='Dockerfile.go.dev',
only=['./cmd', './pkg', './proto', './gen', './go.mod', './go.sum', 'parca.yaml'],
)
## All-in-one
# docker_build('parca.io/parca/parca:dev', '.',
# dockerfile='Dockerfile.dev',
# only=['./cmd', './pkg', './proto', './gen', './ui', './go.mod', './go.sum', 'parca.yaml'],
# )
k8s_yaml('deploy/tilt/parca-server-deployment.yaml')
k8s_resource('parca', port_forwards=[7070])
## UI
docker_build(
'parca.io/parca/parca-ui:dev', './ui',
entrypoint='yarn workspace @parca/web dev',
dockerfile='./ui/Dockerfile.dev',
live_update=[
sync('./ui', '/app'),
run('cd /app && yarn install', trigger=['./package.json', './yarn.lock']),
],
)
k8s_yaml('deploy/tilt/parca-ui-deployment.yaml')
k8s_resource('parca-ui', port_forwards=3000)