Commit 9e65d5f572da14a9be7f8378d68e29eeff1d2989
Committed by
Alexandre Barbosa
1 parent
9ea6e605
Exists in
master
and in
39 other branches
Add solr to provision
Showing
3 changed files
with
12 additions
and
2 deletions
Show diff stats
vagrant/centos.sh
... | ... | @@ -19,7 +19,7 @@ fi |
19 | 19 | |
20 | 20 | yum -y groupinstall "Development tools" |
21 | 21 | |
22 | -yum install -y git unzip mercurial libev-devel gettext libxml2-devel libxslt-devel openssl-devel libffi-devel libjpeg-turbo-devel zlib-devel freetype-devel postgresql-devel python-devel postgresql-server | |
22 | +yum install -y git unzip mercurial libev-devel gettext libxml2-devel libxslt-devel openssl-devel libffi-devel libjpeg-turbo-devel zlib-devel freetype-devel postgresql-devel python-devel postgresql-server java | |
23 | 23 | |
24 | 24 | ### Install Virtualenvwrapper |
25 | 25 | which pip2.7 > /dev/null || | ... | ... |
vagrant/provision.sh
... | ... | @@ -2,6 +2,16 @@ |
2 | 2 | |
3 | 3 | set -x |
4 | 4 | |
5 | +### Install solr | |
6 | + | |
7 | +curl http://archive.apache.org/dist/lucene/solr/4.10.2/solr-4.10.2.tgz > solr-4.10.2.tgz | |
8 | +tar xf solr-4.10.2.tgz | |
9 | +mv solr-4.10.2 /etc/solr-4.10.2 | |
10 | +rm -r solr-4.10.2.tgz | |
11 | +cp /etc/solr-4.10.2/example/solr/collection1/conf/lang/stopwords_en.txt /etc/solr-4.10.2/example/solr/collection1/conf/stopwords_en.txt | |
12 | +chown vagrant:vagrant /etc/solr-4.10.2 | |
13 | + | |
14 | +### Configure Colab | |
5 | 15 | export VIRTUALENVWRAPPER_PYTHON="/usr/bin/python2.7" |
6 | 16 | |
7 | 17 | set +e | ... | ... |
vagrant/ubuntu.sh
... | ... | @@ -5,7 +5,7 @@ set -ex |
5 | 5 | ### Install dependencies |
6 | 6 | apt-get update |
7 | 7 | |
8 | -apt-get install curl git unzip mercurial build-essential libev-dev gettext libxml2-dev libxslt1-dev libssl-dev libffi-dev libjpeg-dev zlib1g-dev libfreetype6-dev libpq-dev python-dev postgresql virtualenvwrapper python-pip -y | |
8 | +apt-get install curl git unzip mercurial build-essential libev-dev gettext libxml2-dev libxslt1-dev libssl-dev libffi-dev libjpeg-dev zlib1g-dev libfreetype6-dev libpq-dev python-dev postgresql virtualenvwrapper python-pip java -y | |
9 | 9 | |
10 | 10 | |
11 | 11 | ### Create conf directory | ... | ... |