-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathTiltfile
More file actions
29 lines (24 loc) · 774 Bytes
/
Copy pathTiltfile
File metadata and controls
29 lines (24 loc) · 774 Bytes
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
# -*- mode: Python -*-
# Records the current time, then kicks off a server update.
# Normally, you would let Tilt do deploys automatically, but this
# shows you how to set up a custom workflow that measures it.
local_resource(
'deploy',
'python3 record-start-time.py',
)
gradlew = "./gradlew"
if os.name == "nt":
gradlew = "gradlew.bat"
local_resource(
'example-java-compile',
gradlew + ' bootJar && ' +
'unzip -o build/libs/example-0.0.1-SNAPSHOT.jar -d build/jar',
deps=['src', 'build.gradle'],
resource_deps = ['deploy'])
docker_build(
'example-java-image',
'./build/jar',
dockerfile='./Dockerfile')
k8s_yaml('kubernetes.yaml')
k8s_resource('example-java', port_forwards=8000,
resource_deps=['deploy', 'example-java-compile'])