forked from Soluto/tweek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tiltfile
27 lines (24 loc) · 1.23 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
docker_compose("./deployments/dev/tilt.yml" )
docker_build("soluto/tweek-gateway", "services/gateway",dockerfile="services/gateway/debug.Dockerfile")
docker_build("soluto/tweek-authoring", "services/authoring")
docker_build("soluto/tweek-api", ".", dockerfile="TweekApi.Dockerfile")
docker_build("soluto/tweek-publishing", "services/publishing")
docker_build("soluto/tweek-editor", "services/editor",dockerfile="services/editor/debug.Dockerfile",
live_update=[
fall_back_on(['services/editor/package.json']),
sync('services/editor/src', '/app/src'),
]
)
dc_resource('minio')
dc_resource('redis')
dc_resource('git')
dc_resource('nats')
dc_resource('oidc-server-mock')
dc_resource('api', resource_deps=['minio', 'nats'])
dc_resource('publishing', resource_deps=['git', 'minio', 'nats'])
dc_resource('authoring', resource_deps=['publishing'])
dc_resource('gateway', resource_deps=['minio', 'nats', 'oidc-server-mock', 'api', 'authoring'])
dc_resource('editor', resource_deps=['gateway'])
if os.getenv('RUN_TESTS', 'false') == 'true':
local_resource('integration-tests', cmd='yarn test', dir='e2e/integration', resource_deps=['gateway'])
local_resource('ui-tests', cmd='yarn test', dir='e2e/ui', resource_deps=['integration-tests'])