Created
May 26, 2017 05:35
-
-
Save robsonvn/51d0bcd9f0b8a67f9506d54582e703f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update -y | |
add-apt-repository ppa:openjdk-r/ppa | |
sudo apt-get update -y | |
apt-get --no-install-recommends -y install build-essential pkg-config erlang libicu-dev libmozjs185-dev libcurl4-openssl-dev | |
apt install -y -s openjdk-7-jdk | |
wget https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz | |
sudo tar -xvzf apache-maven-3.2.5-bin.tar.gz | |
mv apache-maven-3.2.5 /opt/maven | |
echo export M2_HOME=/opt/maven$'\n'export PATH=${M2_HOME}/bin:${PATH}$'\n'export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre >> /etc/profile.d/mavenenv.sh | |
source /etc/profile.d/mavenenv.sh | |
git clone https://github.com/apache/couchdb | |
cd couchdb | |
#git checkout 2.0.0 | |
#apply patch | |
wget https://gist.githubusercontent.com/robsonvn/51eb0857a02a2460de52f0b5607e51b5/raw/d42c39fe5c9b88af6445fd6508f19e1e64c8b7c9/couchdb-fulltext-patch.diff | |
git apply couchdb-fulltext-patch.diff | |
curl https://raw.githubusercontent.com/cloudant/couchdb/c323f194328822385aa1bb2ab15b927cc604c4b7/share/server/dreyfus.js > share/server/dreyfus.js | |
./configure --disable-fauxton --disable-docs | |
make | |
cd .. | |
git clone https://github.com/cloudant-labs/clouseau | |
cd clouseau | |
mvn scala:run -Dlauncher=clouseau1 & | |
mvn scala:run -Dlauncher=clouseau2 & | |
mvn scala:run -Dlauncher=clouseau3 & | |
find rel/couchdb -type d -exec chmod 0770 {} \; | |
chmod 0644 rel/couchdb/etc/* | |
#start couchdb service | |
rel/couchdb/bin/couchdb 2>/dev/null & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment