-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathlain.yaml
More file actions
49 lines (44 loc) · 1.15 KB
/
lain.yaml
File metadata and controls
49 lines (44 loc) · 1.15 KB
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
appname: hagrid
build:
base: laincloud/centos-lain:20170217
prepare:
version: 6
script:
- npm install -g webpack webpack-dev-server
- mkdir -p /go/src/github.com/laincloud
- yum install -y nagios-plugins-all
- yum clean all
script:
- npm install
- ln -s /lain/app $GOPATH/src/github.com/laincloud/hagrid
- go build -o hagrid $GOPATH/src/github.com/laincloud/hagrid/main.go
- webpack -p
- rm -rf node_modules
web:
cmd: ./hagrid
env:
- PLUGIN_DIR=/usr/lib64/nagios/plugins/
port: 8080
memory: 64m
secret_files:
- hagrid.conf.json
web.icinga:
image: laincloud/centos-lain-icinga2:20170310
memory: 256M
cmd: ./run_icinga.sh
port: 80
mountpoint:
- icinga.lain.local
https_only: true
stateful: true
secret_files:
- /etc/icinga2/features-available/ido-mysql.conf
- /etc/icinga2/scripts/util.sh
- /etc/icingaweb2/resources.ini
persistent_dirs:
- /var/lib/icinga2
logs:
- icingaweb2.log
use_services:
mysql-service:
- mysql-master