-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiltfile
More file actions
61 lines (55 loc) · 1.76 KB
/
Tiltfile
File metadata and controls
61 lines (55 loc) · 1.76 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
################################################
# Imports
################################################
load('ext://uibutton', 'cmd_button')
load('packages/tilt/common.tiltfile', 'REGISTRY', 'NAMESPACE', 'TF_ROOT_DIR')
################################################
# INIT
################################################
allow_k8s_contexts('development-primary')
if k8s_context() != 'development-primary':
fail("You can only use the 'development-primary' context when using Tilt. Switch by running 'kubectx development-primary'")
default_registry (REGISTRY)
update_settings ( max_parallel_updates = 3 , k8s_upsert_timeout_secs = 900 , suppress_unused_image_warnings = None )
include('./packages/primary-api/Tiltfile')
include('./packages/public-app/Tiltfile')
################################################
# Global resources
################################################
local_resource(
"pgadmin4",
"",
serve_cmd="pgadmin4",
auto_init = True,
allow_parallel = True,
readiness_probe = probe(
http_get = http_get_action(5050, path = "/misc/ping")
),
labels=['local'],
links=["http://localhost:5050"]
)
local_resource(
"pnpm",
"pnpm install",
auto_init = True,
allow_parallel = True,
deps = [
".npmrc",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
"packages/build/package.json",
"packages/build/pnpm-lock.yaml",
"packages/eslint/package.json",
"packages/eslint/pnpm-lock.yaml",
"packages/internal-docs/package.json",
"packages/internal-docs/pnpm-lock.yaml",
"packages/primary-api/package.json",
"packages/primary-api/pnpm-lock.yaml",
"packages/public-app/package.json",
"packages/public-app/pnpm-lock.yaml",
"pnpm-workspace.yaml",
"package"
],
labels=['local'],
links=["http://localhost:5050"]
)