generated from Linkurious/docker-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiltfile
More file actions
49 lines (41 loc) · 1.43 KB
/
Tiltfile
File metadata and controls
49 lines (41 loc) · 1.43 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
# version_settings() enforces a minimum Tilt version
# https://docs.tilt.dev/api.html#api.version_settings
version_settings(constraint='>=0.30.8')
load('ext://kubectl_build', 'kubectl_build')
load('ext://helm_resource', 'helm_resource', 'helm_repo')
ctx = k8s_context()
if ctx.endswith('k8s-dev'):
allow_k8s_contexts(ctx)
if not k8s_namespace().endswith("dev"):
fail("You are not targeting a dev namespace")
builder = "builder-" + k8s_namespace()
# kubectl_build(
# 'memgraph',
# #context='packages/memgraph/.',
# context='.',
# dockerfile='Dockerfile',
# build_args={'NPM_TOKEN': os.getenv('NPM_TOKEN'),'BUILD_ENV': 'test', 'target_build': 'builder'},
# builder=builder,
# #ignore=['./client/'],
# # live_update=[
# # sync('./api/', '/app/api/'),
# # run(
# # 'pip install -r /app/requirements.txt',
# # trigger=['./api/requirements.txt']
# # )
# # ]
# )
deps=['charts/memgraph']
extra_values = ['--set=networkPolicies.allowAllNamespaceIngress=true']
internal_values_filename = 'values.internal.yaml'
if os.path.exists(internal_values_filename):
extra_values = ['--values='+internal_values_filename]
deps += [internal_values_filename]
helm_resource(
name=ctx.removesuffix('@k8s-dev') + '-tilt-memgraph',
chart='charts/memgraph',
deps=deps,
flags=extra_values,
#image_deps=['memgraph'],
#image_keys=[('linkurious-enterprise.image.repository','linkurious-enterprise.image.tag')]
)