Commit f628dcccba04796f468a9bf185923c853bda08ee
Committed by
Alexandre Barbosa
1 parent
72eebe19
Exists in
master
and in
39 other branches
Installing solr using script
Showing
4 changed files
with
14 additions
and
19 deletions
Show diff stats
misc/lib/systemd/system/solr.service
vagrant/provision.sh
@@ -2,15 +2,6 @@ | @@ -2,15 +2,6 @@ | ||
2 | 2 | ||
3 | set -x | 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 | ### Configure Colab |
15 | export VIRTUALENVWRAPPER_PYTHON="/usr/bin/python2.7" | 6 | export VIRTUALENVWRAPPER_PYTHON="/usr/bin/python2.7" |
16 | 7 | ||
@@ -42,3 +33,7 @@ fi | @@ -42,3 +33,7 @@ fi | ||
42 | 33 | ||
43 | colab-admin migrate | 34 | colab-admin migrate |
44 | colab-admin loaddata /vagrant/tests/test_data.json | 35 | colab-admin loaddata /vagrant/tests/test_data.json |
36 | + | ||
37 | +### Install solr | ||
38 | +colab-admin build_solr_schema -f /tmp/schema.xml | ||
39 | +curl -sSL https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=4.10.3 SOLR_CONFS="/tmp/schema.xml /vagrant/vagrant/solr-config/stopwords.txt" bash |
vagrant/ubuntu.sh
@@ -5,7 +5,7 @@ set -ex | @@ -5,7 +5,7 @@ set -ex | ||
5 | ### Install dependencies | 5 | ### Install dependencies |
6 | apt-get update | 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 java -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-common -y |
9 | 9 | ||
10 | 10 | ||
11 | ### Create conf directory | 11 | ### Create conf directory |