1 | #!/bin/bash
|
2 | set -e
|
3 | set -x
|
4 |
|
5 | CWD=$(pwd)
|
6 |
|
7 | sudo apt-get remove erlang-base erlang-crypto erlang-base-hipe
|
8 | sudo apt-get -y install haproxy default-jdk libwxgtk3.0
|
9 | wget http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_18.1-1~ubuntu~precise_amd64.deb
|
10 | sudo dpkg -i esl-erlang_18.1-1~ubuntu~precise_amd64.deb
|
11 |
|
12 |
|
13 | git clone https://github.com/apache/couchdb.git ~/couchdb
|
14 | cd ~/couchdb
|
15 | ./configure --disable-docs --disable-fauxton
|
16 | make
|
17 |
|
18 |
|
19 | python dev/run -n 1 --with-admin-party-please --with-haproxy &
|
20 | sleep 10
|
21 |
|
22 | cd $CWD
|