This repository was archived by the owner on Aug 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 604
Expand file tree
/
Copy pathinit
More file actions
executable file
·72 lines (50 loc) · 1.79 KB
/
init
File metadata and controls
executable file
·72 lines (50 loc) · 1.79 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
set -o errexit
HOSTNAME="$(ec2metadata --public-ipv4).xip.io"
sed --in-place --expression "s/\(127.0.0.1 localhost\)/\1 $HOSTNAME/g" /etc/hosts
export HOME=/root/
export REPOSITORY_PATH='/opt/koding'
export CI="true"
export WERCKER="true"
export CONFIG_DEBUGMODE="true"
ulimit -n 10240
service nginx stop
cd $REPOSITORY_PATH
git config user.email 'sysops@koding.com'
git config user.name 'Koding Bot'
export KONFIG_SNEAKERS3_AWSSECRETACCESSKEY="" \
KONFIG_SNEAKERS3_AWSACCESSKEYID="" \
KONFIG_SNEAKERS3_SNEAKERS3PATH="" \
KONFIG_SNEAKERS3_SNEAKERMASTERKEY="" \
KONFIG_SNEAKERS3_AWSREGION="" \
KONFIG_KLOUD_CREDENTIALENDPOINT="" \
KONFIG_SENDEVENTSTOSEGMENT="false" \
KONFIG_CLIENT_RUNTIMEOPTIONS_SENDEVENTSTOSEGMENT="false"
npm install --unsafe-perm
./configure --config dev --host $HOSTNAME --hostname $HOSTNAME --publicPort 80 --disable-segment
go/build.sh
make -C client dist
TEST_EXTRAS="--no-start-selenium --url http://$HOST" \
make -C client/test build
./run buildservices force
sleep 60 # let dockers boot up
./run exec supervisord -c $REPOSITORY_PATH/supervisord.conf
export TEST_VENDOR=$REPOSITORY_PATH/client/test/vendor
export DISPLAY=:0
Xvfb $DISPLAY -shmem -screen 0 1440x900x16 &
java -jar $TEST_VENDOR/selenium-server-standalone.jar \
-host 0.0.0.0 \
-port 42420 \
-Dwebdriver.gecko.driver=$TEST_VENDOR/geckodriver/linux64/geckodriver \
&>$REPOSITORY_PATH/.logs/selenium-host.log &
export DISPLAY=:1
Xvfb $DISPLAY -shmem -screen 1 1440x900x16 &
java -jar $TEST_VENDOR/selenium-server-standalone.jar \
-host 0.0.0.0 \
-port 42421 \
-Dwebdriver.gecko.driver=$TEST_VENDOR/geckodriver/linux64/geckodriver \
&>$REPOSITORY_PATH/.logs/selenium-participant.log &
sleep 10
x11vnc -passwd secret -display :0 -N -forever &
x11vnc -passwd secret -display :1 -N -forever &
exit 0