forked from laincloud/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lain-with-ui.yaml
47 lines (42 loc) · 1.27 KB
/
lain-with-ui.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
appname: console
build:
base: laincloud/centos-lain:20160503
prepare:
version: "20161215"
script:
- yum install -y gcc-c++
- git clone --depth=1 https://github.com/golang/sys.git $GOPATH/src/golang.org/x/sys
- git clone --depth=1 https://github.com/golang/net.git $GOPATH/src/golang.org/x/net
- go get github.com/mijia/gobuildweb
- cd $GOPATH/src/github.com/mijia/gobuildweb && go install
- mkdir -p $GOPATH/src/github.com/laincloud
- cd $GOPATH/src/github.com/laincloud && git clone https://github.com/laincloud/archon.git
- cd $GOPATH/src/github.com/laincloud/archon && gobuildweb dist
- touch /sbin/modprobe && chmod +x /sbin/modprobe
- pip install -r pip-req.txt
script:
- cd $GOPATH/src/github.com/laincloud/archon && git pull && gobuildweb dist && cp archon-0.1.zip /lain/app/
- unzip -o /lain/app/archon-0.1.zip
- pip install -r pip-req.txt
- mv externalbin /externalbin
test:
script:
- mkdir /lain/logs/
- make pylint test
web:
cmd: ./archon.sh
port: 9000
memory: 256m
web.console:
cmd: ./entry.sh
port: 8000
memory: 256m
mountpoint:
- /api
env:
- CONSOLE_APISERVER=http://deployd.lain:9003
logs:
- console_log
- console_op
notify:
slack: "#lain"