-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTiltfile
26 lines (22 loc) · 816 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
load('ext://restart_process', 'docker_build_with_restart')
k8s_yaml('deployments/api.yaml')
k8s_yaml('deployments/dgraph-single.yaml')
docker_build_with_restart('dating-app/api', '.',
entrypoint='/app/build/api',
ignore=['./Dockerfile', '.git'],
live_update=[
sync('.', '/app'),
run('go build -o /app/build/api /app/cmd'),
]
)
# docker_build_with_restart('dating-app/api', '.',
# dockerfile='./Dockerfile.debug',
# entrypoint='$GOPATH/bin/dlv --listen=:40000 --api-version=2 --headless=true exec /app/build/api',
# ignore=['./Dockerfile', '.git'],
# live_update=[
# sync('.', '/app'),
# run('go build -gcflags "-N -l" -o /app/build/api /app/cmd'),
# ]
# )
k8s_resource('api', port_forwards=[3000, 40000])
k8s_resource('dgraph', port_forwards=[9080])