UNPKG

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