forked from laincloud/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlain.yaml
48 lines (43 loc) · 1.64 KB
/
lain.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
appname: console
build:
base: laincloud/centos-lain:20160503
prepare:
version: "20170612"
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 && sed -i '/deps = append(deps, "browserify", "coffeeify", "envify", "uglifyify", "babelify", "babel-preset-es2015", "babel-preset-react", "nib", "stylus")/d' cmds.go && 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 $(npm root -g)/npm && npm install fs-extra && sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs.move/ ./lib/utils/rename.js # fix npm error
- cd $GOPATH/src/github.com/laincloud/archon && git pull && gobuildweb dist && cp archon-0.1.zip /lain/app/ # note docker may use cache, you should delete the old image
- 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"