-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
19 lines (17 loc) · 828 Bytes
/
Tiltfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
load('.tanzu/tanzu_develop.py', 'tanzu_develop')
allow_k8s_contexts('eduk8s')
local_resource(
'spring-petclinic-compile',
'./mvnw -Dmaven.test.skip=true -Dspring-boot.repackage.excludeDevtools=false package && ' +
'rm -rf target/jar-staging && ' +
'unzip -o target/spring-petclinic-*.jar -d target/jar-staging && ' +
'rsync --delete --inplace --checksum -r target/jar-staging/ .build',
deps=['src', 'pom.xml'])
tanzu_develop(k8s_object="spring-petclinic",
deps=['.build/'],
resource_deps=['spring-petclinic-compile'],
live_update=[
sync('.build/BOOT-INF/lib', '/workspace/BOOT-INF/lib'),
sync('.build/META-INF', '/workspace/META-INF'),
sync('.build/BOOT-INF/classes', '/workspace/BOOT-INF/classes'),
])