-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathlain.yaml
More file actions
35 lines (31 loc) · 766 Bytes
/
lain.yaml
File metadata and controls
35 lines (31 loc) · 766 Bytes
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
appname: tinydns
build:
base: laincloud/centos-lain:20170405
prepare:
version: 230
script:
- yum install -y ndjbdns supervisor
- yum -y clean all
- rm -rf /tmp/*
- mkdir -p $GOPATH/src/github.com/laincloud
script:
- ln -s /lain/app $GOPATH/src/github.com/laincloud/tinydns
- go build -o /etc/ndjbdns/dns-creator $GOPATH/src/github.com/laincloud/tinydns/main.go
- cp -f tinydns.conf /etc/ndjbdns/
test:
script:
- go test github.com/laincloud/tinydns/dns
worker:
cmd: /usr/bin/supervisord -c /lain/app/supervisord.conf
memory: 256m
port: 53
setup_time: 30
env:
- LAINLET_PORT=9001
logs:
- tinydns.log
- tinydns.err
- dns-creator.log
- dns-creator.err
notify:
slack: "#lain"