-
Notifications
You must be signed in to change notification settings - Fork 1
/
Tiltfile.compose
128 lines (115 loc) · 2.99 KB
/
Tiltfile.compose
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
docker_compose("./docker-compose.yml")
#
# Common Go projects
#
# We're using a custom Dockerfile since the staged dockerfile doesn't have
# the go development environment
#
go_common = ['./pkg', './twpb', './services', './cmd', './go.sum', './go.mod', './tilt-scripts']
docker_build('public-auth', 'src/go',
dockerfile='./src/go/cmd/compose/publicapi/auth/Dockerfile.tilt',
only=go_common + [
'./cmd/compose/publicapi/auth',
'./services/api/auth',
],
live_update=[
sync('./src/go', '/build'),
run('./tilt-scripts/restart.sh'),
],
)
docker_build('public-todo', 'src/go',
dockerfile='./src/go/cmd/compose/publicapi/todo/Dockerfile.tilt',
only=go_common + [
'./cmd/compose/publicapi/todo',
'./services/api/todo',
],
live_update=[
sync('./src/go', '/build'),
run('./tilt-scripts/restart.sh'),
],
)
docker_build('public-websocket', 'src/go',
dockerfile='./src/go/cmd/compose/publicapi/websocket/Dockerfile.tilt',
only=go_common + [
'./cmd/compose/publicapi/websocket',
'./services/websocket/todo',
],
live_update=[
sync('./src/go', '/build'),
run('./tilt-scripts/restart.sh'),
],
)
docker_build('core-user', 'src/go',
dockerfile='./src/go/cmd/compose/core/user/Dockerfile.tilt',
only=go_common + [
'./cmd/compose/core/user',
'./services/core/user',
],
live_update=[
sync('./src/go', '/build'),
run('./tilt-scripts/restart.sh'),
],
)
docker_build('core-todo', 'src/go',
dockerfile='./src/go/cmd/compose/core/todo/Dockerfile.tilt',
only=go_common + [
'./cmd/compose/core/todo',
'./services/core/todo',
],
live_update=[
sync('./src/go', '/build'),
run('./tilt-scripts/restart.sh'),
],
)
docker_build('core-oauth-user', 'src/go',
dockerfile='./src/go/cmd/compose/core/oauth_user/Dockerfile.tilt',
only=go_common + [
'./cmd/compose/core/oauth_user',
'./services/core/oauth_user',
],
live_update=[
sync('./src/go', '/build'),
run('./tilt-scripts/restart.sh'),
],
)
docker_build('core-send-email', 'src/go',
dockerfile='./src/go/cmd/compose/core/send_email/Dockerfile.tilt',
only=go_common + [
'./cmd/compose/core/send_email',
'./services/core/send_email',
],
live_update=[
sync('./src/go', '/build'),
run('./tilt-scripts/restart.sh'),
],
)
docker_build('core-workers', 'src/go',
dockerfile='./src/go/cmd/compose/core/workers/Dockerfile.tilt',
only=go_common + [
'./cmd/compose/core/workers',
'./services/core/workers',
],
live_update=[
sync('./src/go', '/build'),
run('./tilt-scripts/restart.sh'),
],
)
docker_build('websocket-todo', 'src/go',
dockerfile='./src/go/cmd/compose/websocket/todo/Dockerfile.tilt',
only=go_common + [
'./cmd/compose/websocket/todo',
],
live_update=[
sync('./src/go', '/build'),
run('./tilt-scripts/restart.sh'),
],
)
#
#
#
docker_build('ts-client-react', 'ts-client-react',
dockerfile='./ts-client-react/Dockerfile.tilt',
live_update=[
sync('./ts-client-react', '/app'),
],
)