forked from ProboCI/probo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaults.yaml
215 lines (204 loc) · 6.29 KB
/
defaults.yaml
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# App name
name: amour
# Port for the server to listen on
port: 3010
# The host time bind to.
host: '0.0.0.0'
hostname: localhost
# Can be any { socketPath: '/path' } or { host: 'somehost', port: 9999 }
# See dockerode constructor for details: https://github.com/apocas/dockerode
docker:
socketPath: '/var/run/docker.sock'
# name of the instance used in status updates
instanceName: 'ProboCI-dev'
# prefix to use for container names
containerNamePrefix: "probo"
# container capacity of this container manager instance
containerCapacity: -1 # -1 is unlimited or not set
#proxyStartupPause: 2s # Amount of time to pause after a proxy request starts a container
# If a container proxy lookup needs to start a non-running (but existing)
# container, it'll automatically stop the container after this timeout
# However, every time the proxy's lookup cache expires and it sends another
# proxy lookup request to the Container Manager, that container's idle timeout
# is reset again to this timeout value
containerIdleTimeout: 30m # can use time units here. no units = ms
# Prefixes all routes so that the app can be namespaced.
prefix: ''
# If a container is not specified in the repository's configuration, use this one.
defaultImage: 'proboci/ubuntu:18.04-php7.3'
# The default image used if none is specified.
image: 'proboci/ubuntu:18.04-php7.3'
# The images used by the host manager
images:
'proboci/ubuntu:18.04-php5.6':
services:
cleanapache:
command: 'rm /var/run/apache2/apache2.pid'
memcached:
command: memcached -u memcache
mysql:
command: 'mysqld_safe'
redis:
command: 'redis-server'
solr:
command: '/opt/solr/bin/solr start -f -force'
varnish:
command: 'service varnish start'
apache:
command: '/usr/sbin/apache2ctl -D FOREGROUND'
port: 80
php_log:
command: 'tail -F /var/log/php/error.log'
'proboci/ubuntu:18.04-php7.0':
services:
cleanapache:
command: 'rm /var/run/apache2/apache2.pid'
memcached:
command: memcached -u memcache
mysql:
command: 'mysqld_safe'
redis:
command: 'redis-server'
solr:
command: '/opt/solr/bin/solr start -f -force'
varnish:
command: 'service varnish start'
apache:
command: '/usr/sbin/apache2ctl -D FOREGROUND'
port: 80
php_log:
command: 'tail -F /var/log/php/error.log'
'proboci/ubuntu:18.04-php7.1':
services:
cleanapache:
command: 'rm /var/run/apache2/apache2.pid'
memcached:
command: memcached -u memcache
mysql:
command: 'mysqld_safe'
redis:
command: 'redis-server'
solr:
command: '/opt/solr/bin/solr start -f -force'
varnish:
command: 'service varnish start'
apache:
command: '/usr/sbin/apache2ctl -D FOREGROUND'
port: 80
php_log:
command: 'tail -F /var/log/php/error.log'
'proboci/ubuntu:18.04-php7.2':
services:
cleanapache:
command: 'rm /var/run/apache2/apache2.pid'
memcached:
command: memcached -u memcache
mysql:
command: 'mysqld_safe'
redis:
command: 'redis-server'
solr:
command: '/opt/solr/bin/solr start -f -force'
varnish:
command: 'service varnish start'
apache:
command: '/usr/sbin/apache2ctl -D FOREGROUND'
port: 80
php_log:
command: 'tail -F /var/log/php/error.log'
'proboci/ubuntu:18.04-php7.3':
services:
cleanapache:
command: 'rm /var/run/apache2/apache2.pid'
apache:
command: '/usr/sbin/apache2ctl -D FOREGROUND'
port: 80
memcached:
command: memcached -u memcache
mysql:
command: 'mysqld_safe'
redis:
command: 'redis-server'
solr:
command: '/opt/solr/bin/solr start -f -force'
varnish:
command: 'service varnish start'
php_log:
command: 'tail -F /var/log/php/error.log'
'proboci/ubuntu:18.04-php7.4':
services:
cleanapache:
command: 'rm /var/run/apache2/apache2.pid'
apache:
command: '/usr/sbin/apache2ctl -D FOREGROUND'
port: 80
memcached:
command: memcached -u memcache
mysql:
command: 'mysqld_safe'
redis:
command: 'redis-server'
solr:
command: '/opt/solr/bin/solr start -f -force'
varnish:
command: 'service varnish start'
php_log:
command: 'tail -F /var/log/php/error.log'
'proboci/ubuntu:18.04-php8.0':
services:
cleanapache:
command: 'rm /var/run/apache2/apache2.pid'
memcached:
command: memcached -u memcache
mysql:
command: 'mysqld_safe'
redis:
command: 'redis-server'
solr:
command: '/opt/solr/bin/solr start -f -force'
varnish:
command: 'service varnish start'
apache:
command: '/usr/sbin/apache2ctl -D FOREGROUND'
port: 80
php_log:
command: 'tail -F /var/log/php/error.log'
dataDir: './container-manager-data'
# Volumes to mount into created containers.
binds: []
# Settings for the github handler
# port
githubWebhookPath: '/github-webhook'
githubWebhookSecret: 'CHANGE-ME'
# This is temporary, we will need a proper oauth system to get the tokens that should be used.
githubAPIToken: 'personal token here'
# Settings for the API or Container Manager server
# port
api:
url: "http://localhost:3000"
token: "API token here"
# loom (log aggregator server)
loom:
url: "http://localhost:3060"
token: "API token here"
# asset server (must NOT be localhost because it's called from within container)
assets:
url: "http://localhost:3070"
token: "API token here"
# auth credentials service (i.e., for stash)
auth:
url: "http://localhost:3000/auth_lookup"
buildsEventStream:
# currently supported plugins are: Kafka and Memory
plugin: 'Memory'
# buildsEventStream:
# # currently supported plugins are: Kafka and Memory
# plugin: 'Kafka'
# # config for kafaka; memory plugin doesn't need a config
# config:
# version: 1
# topic: build_events
# # see https://github.com/SOHU-Co/kafka-node#clientconnectionstring-clientid-zkoptions-noackbatchoptions
# # for available options
# kafkaClientOptions:
# connectionString: 'localhost:2181'