-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-buildbarn.yml
115 lines (102 loc) · 2.61 KB
/
docker-compose-buildbarn.yml
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
# The contents of this file are covered by APACHE License Version 2.
# See licenses/APACHEV2-LICENSE.txt for more information.
version: '3.4'
services:
frontend:
image: bazel/cmd/bb_storage:bb_storage_container
command:
- /config/frontend.jsonnet
ports:
- 7980:7980
- 8980:8980
volumes:
- ./buildbarn_config:/config
storage-0:
image: bazel/cmd/bb_storage:bb_storage_container
command:
- /config/storage.jsonnet
expose:
- 8981
ports:
- 7981:7981
volumes:
- ./buildbarn_config:/config
- ./storage-ac-0:/storage-ac
- ./storage-cas-0:/storage-cas
- ./storage-ac-0/persistent_state:/storage-ac/persistent_state
- ./storage-cas-0/persistent_state:/storage-cas/persistent_state
storage-1:
image: bazel/cmd/bb_storage:bb_storage_container
command:
- /config/storage.jsonnet
expose:
- 8981
ports:
- 17981:7981
volumes:
- ./buildbarn_config:/config
- ./storage-ac-1:/storage-ac
- ./storage-cas-1:/storage-cas
- ./storage-ac-1/persistent_state:/storage-ac/persistent_state
- ./storage-cas-1/persistent_state:/storage-cas/persistent_state
scheduler:
image: bazel/cmd/bb_scheduler:bb_scheduler_container
command:
- /config/scheduler.jsonnet
expose:
- 8982
- 8983
ports:
- 7982:7982
volumes:
- ./buildbarn_config:/config
browser:
image: bazel/cmd/bb_browser:bb_browser_container
command:
- /config/browser.jsonnet
ports:
- 7984:7984
volumes:
- ./buildbarn_config:/config
worker:
image: bazel/cmd/bb_worker:bb_worker_container
command:
- /config/worker.jsonnet
ports:
- 7986:7986
volumes:
- ./buildbarn_config:/config
- ./worker:/worker
#- ./worker/build:/worker/build
#- ./worker/cache:/worker/cache
runner:
build:
context: docker
target: build_env
image: bb-runner:latest
command:
- sh
- -c
- while ! test -f /bb/installed; do sleep 1; done; exec /bb/tini -v -g -- /bb/bb_runner /config/runner.jsonnet
volumes:
- ./worker:/worker
- ./buildbarn_config:/config
- ./bb:/bb
depends_on:
- runner-installer
runner-installer:
image: bazel/cmd/bb_runner:bb_runner_installer
entrypoint: []
# This prevents ETXTBSY errors that result from attempting to run
# installed executables before they have been fully copied.
command: >
sh
-c
"mkdir tmp_bb &&
/install /bb/tmp_bb &&
mv tmp_bb/tini /bb &&
mv tmp_bb/bb_runner /bb &&
mv tmp_bb/installed /bb"
working_dir: /bb
volumes:
- ./bb:/bb