blob: 583abf6823b3804206d045ab48a8edce9aed6541 [file]
#!/bin/bash
CWD=$(pwd)
# Install deps
sudo apt-get --no-install-recommends -y install \
build-essential \
ca-certificates \
curl \
erlang-dev \
erlang-nox \
git \
libicu-dev \
libmozjs185-dev \
python
# Rebar isnt in apt
git clone git://github.com/rebar/rebar.git ~/rebar
cd ~/rebar
./bootstrap
sudo cp ./rebar /usr/local/bin
# Sweet, build CouchDB
cd ..
git clone https://github.com/apache/couchdb.git ~/couchdb
cd ~/couchdb
./configure && make
# All done, run a cluster
python dev/run &
# Lets get rid of this at some point :)
sleep 10
cd $CWD