Commit f628dcccba04796f468a9bf185923c853bda08ee

Authored by Sergio Oliveira
Committed by Alexandre Barbosa
1 parent 72eebe19

Installing solr using script

misc/lib/systemd/system/solr.service
... ... @@ -1,9 +0,0 @@
1   -[Unit]
2   -Description=Solr
3   -
4   -[Service]
5   -Type=oneshot
6   -ExecStart=/etc/solr-4.10.2/bin/solr start -p 8983
7   -ExecStop=/etc/solr-4.10.2/bin/solr stop -p 8983
8   -RemainAfterExit=yes
9   -
vagrant/misc/lib/systemd/system/solr.service 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +[Unit]
  2 +Description=Solr
  3 +
  4 +[Service]
  5 +Type=oneshot
  6 +ExecStart=/etc/solr-4.10.2/bin/solr start -p 8983
  7 +ExecStop=/etc/solr-4.10.2/bin/solr stop -p 8983
  8 +RemainAfterExit=yes
  9 +
... ...
vagrant/provision.sh
... ... @@ -2,15 +2,6 @@
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 5 ### Configure Colab
15 6 export VIRTUALENVWRAPPER_PYTHON="/usr/bin/python2.7"
16 7  
... ... @@ -42,3 +33,7 @@ fi
42 33  
43 34 colab-admin migrate
44 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 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 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 11 ### Create conf directory
... ...