blob: cafa1d99e32b0cbad884add5c343e89a4301b5e7 [file] [log] [blame]
#!/bin/bash
set -e
set -x
CWD=$(pwd)
# Install deps
sudo apt-get update
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 --disable-docs
make
# All done, run a cluster
python dev/run -n 1 --with-admin-party-please &
cd $CWD