forked from iimacs/.emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTiltfile
51 lines (48 loc) · 2.29 KB
/
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
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
# -*- mode: python; -*-
k8s_yaml(kustomize('.'))
# Lists of ports are broken. When having [P1, P2, P3], P2 and P3 get forwarded
# to P1. Unless in the N:N format.
# k8s_resource('session', port_forwards=[
# '2200:2200', # ssh
# '4001:4001']) # http
# k8s_resource('master', port_forwards=[
# '4000:4000', # http
# '9100:9100']) # metrics port
# k8s_resource('postgres', port_forwards=[5432])
# docker_build('tmate/tmate-ssh-server',
# '../../../../tmate-ssh-server',
# dockerfile='../../../../tmate-ssh-server/Dockerfile',
# # dockerfile='../../../../tmate-ssh-server/Dockerfile.dev',
# live_update=[
# fall_back_on(['../../../../tmate-ssh-server/Makefile.am']),
# sync('../../../../tmate-ssh-server',
# '/src/tmate-ssh-server'),
# run('make -j "$(nproc)"'),
# restart_container()]
# )
# docker_build('tmate/tmate-websocket',
# '../../../../tmate-websocket',
# dockerfile='../../../../tmate-websocket/Dockerfile',
# # dockerfile='../../../../tmate-websocket/Dockerfile.dev',
# live_update=[
# fall_back_on(['../../../../tmate-websocket/config',
# '../../../../tmate-websocket/mix.exs',
# '../../../../tmate-websocket/mix.lock']),
# sync('../../../../tmate-websocket',
# '/src/tmate-websocket'),
# run('echo recompile > console')]
# )
# docker_build('tmate/tmate-master', '../../../../tmate-master',
# dockerfile='../../../../tmate-websocket/Dockerfile',
# # dockerfile='../../../../tmate-master/Dockerfile.dev',
# live_update=[
# fall_back_on(
# ['../../../../tmate-master/config',
# '../../../../tmate-master/assets/package.json',
# '../../../../tmate-master/assets/package-lock.json',
# '../../../../tmate-master/mix.exs',
# '../../../../tmate-master/mix.lock']),
# sync('../../../../tmate-master', '/src/tmate-master'),
# run('echo recompile > console')]
# )
allow_k8s_contexts('in-cluster')