-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlain.yaml
More file actions
29 lines (25 loc) · 788 Bytes
/
lain.yaml
File metadata and controls
29 lines (25 loc) · 788 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
appname: backupctl
build:
base: registry.docker-cn.com/laincloud/centos-lain:20180103
script:
- mkdir -p $GOPATH/src/github.com/laincloud/ && ln -s /lain/app $GOPATH/src/github.com/laincloud/backupd && cd $GOPATH/src/github.com/laincloud/backupd && go build -v -a -tags netgo -installsuffix netgo -o backupd
release:
dest_base: registry.docker-cn.com/laincloud/centos-lain:20180103
copy:
- src: backupd
dest: /usr/bin/backupd
- src: ./script
dest: /lain/app/script
web:
cmd: /lain/app/script/run-controller.sh
port: 80
memory: 128m
volumes:
- /var/backupctl
- /var/backupctl-backup:
backup_full:
schedule: "0 0 * * *"
expire: "7d"
pre_run: "/lain/app/script/backup_pre.sh"
notify:
slack: "#lain"