Skip to content

Commit 8841bb6

Browse files
authored
Merge pull request #59 from laincloud/s6
use s6 because of stdout
2 parents f68fb2b + fe8c045 commit 8841bb6

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

archon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
environ=$LAIN_DOMAIN
44

55
# specify the client id here
6-
source ./config
6+
source /lain/app/config
77

88
if [ $console_api_scheme == "https" ]; then
99
ws_scheme="wss";

entry.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# specify the client id, client secret and sso server here
4-
source ./config
4+
source /lain/app/config
55

66
export SSO_CLIENT_ID=$client_id
77
export SSO_CLIENT_SECRET=$client_sec
@@ -18,4 +18,4 @@ export CONSOLE_SENTRY_DSN=$console_sentry_dsn
1818
export GITLAB_TOKEN=$gitlab_token
1919

2020
mkdir -p /lain/logs
21-
exec gunicorn -w 3 -b 0.0.0.0:8000 --preload --error-logfile /lain/logs/error.log --access-logfile /lain/logs/access.log console.wsgi
21+
exec gunicorn -w 3 -b 0.0.0.0:8000 --preload --error-logfile /lain/logs/error.log --access-logfile /lain/logs/access.log --pythonpath /lain/app console.wsgi

lain.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
appname: console
22

33
build:
4-
base: laincloud/centos-lain:20160503
4+
base: laincloud/centos-lain:20171212
55
prepare:
6-
version: "20170612"
6+
version: "20171212"
77
script:
8+
- mkdir -p /root/.pip
9+
- cp -f pip.conf /root/.pip/pip.conf
810
- yum install -y yum-plugin-ovl
911
- yum install -y gcc-c++
1012
- git clone --depth=1 https://github.com/golang/sys.git $GOPATH/src/golang.org/x/sys
@@ -17,8 +19,6 @@ build:
1719
- touch /sbin/modprobe && chmod +x /sbin/modprobe
1820
- pip install -r pip-req.txt
1921
script:
20-
- mkdir -p /root/.pip
21-
- cp -f pip.conf /root/.pip/pip.conf
2222
- 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
2323
- 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
2424
- unzip -o /lain/app/archon-0.1.zip
@@ -32,15 +32,15 @@ test:
3232
- CONSOLE_DEBUG=1 py.test --cov=.
3333

3434
web:
35-
cmd: ./archon.sh
35+
cmd: /lain/app/archon.sh
3636
port: 9000
3737
memory: 256m
3838
secret_files:
3939
- config
4040
secret_files_bypass: True
4141

4242
web.console:
43-
cmd: ./entry.sh
43+
cmd: /lain/app/entry.sh
4444
port: 8000
4545
secret_files:
4646
- config
@@ -55,4 +55,4 @@ web.console:
5555
- console_op
5656

5757
notify:
58-
slack: "#lain"
58+
slack: "#lain"

0 commit comments

Comments
 (0)