Open computate opened 4 years ago
Extend the existing Dockerfile to build banana into the Solr application at the same time for analytics.
Banana is a fork of Elastic Kibana for analytics. Fork this repository to extend the Dockerfile with banana: https://github.com/computate/computate-solr
The original version of banana, as it stands, has some CSP Security errors in the browser and JavaScript warnings. These issues have been fixed in my forked version of banana: https://github.com/computate/banana
You would want to incorporate these bash commands after the installation of Solr into the Dockerfile, in a Dockerfile kind of way.
sudo install -o $USER -g $USER -d /usr/local/src/banana
rsync -r /usr/local/src/banana/ /opt/solr/server/solr-webapp/webapp/banana/
git clone https://github.com/computate/banana.git /usr/local/src/banana
(cd /usr/local/src/banana && npm install)
(cd /usr/local/src/banana && sudo npm install -g bower)
(cd /usr/local/src/banana && sudo npm install -g grunt)
(cd /usr/local/src/banana && bower install)
(cd /usr/local/src/banana && grunt build --force)
mv /usr/local/src/banana/dist/ /opt/solr/server/solr-webapp/webapp/banana
rsync -r /usr/local/src/banana/resources/banana-int-solr-5.0/ /opt/solr/server/solr-webapp/webapp/banana/resources/banana-int/
/srv/solr-7.1.0/bin/solr zk upconfig -n banana-int -d /opt/solr/server/solr-webapp/webapp/banana/resources/banana-int -z localhost:2181
/opt/solr/bin/solr create_collection -c banana-int -n banana-int
Dockerfiles, OpenShift, Ansible Willingness to learn about Apache Solr Search data and LucidWorks Banana for analytics.