forked from michael34435/docker-foswiki
-
Notifications
You must be signed in to change notification settings - Fork 12
Home
Timothy Legge edited this page Nov 20, 2018
·
7 revisions
Welcome to the docker-foswiki wiki!
The following notes assume you have run Foswiki with the following command, configured, installed and enables SolrPlugin:
- sudo docker run --rm --name docker-foswiki -idt -p 80:80 -v foswiki_www:/var/www/foswiki:z -v nginx_conf:/etc/nginx/conf.d:z timlegge/docker-foswiki
- sudo chown -R 8983:8983 /var/lib/docker/volumes/foswiki_www/_data/solr/configsets
- sudo docker run --rm --name my_solr -d -P -p 8983:8983 -t solr:5
- sudo docker exec -it -u solr my_solr mkdir /opt/solr/server/solr/solr_foswiki
- sudo docker stop my_solr
- sudo docker run --rm --name my_solr -d -P -v solr_logs:/opt/solr/server/logs:z -v solr_configsets:/opt/solr/server/solr/configsets:z -v solr_foswiki:/opt/solr/server/solr/solr_foswiki:z -v foswiki_www:/var/www/foswiki:z -e GC_LOG_OPTS='' -e SOLR_LOG_LEVEL='WARN' -p 8983:8983 -t solr:5
- sudo chown -R 8983:8983 /var/lib/docker/volumes/solr_foswiki
- sudo docker exec -it -u solr my_solr cp -r /var/www/foswiki/solr/cores /opt/solr/server/solr/solr_foswiki/
- sudo docker exec -it -u solr my_solr ln -s /var/www/foswiki/solr/configsets/foswiki_configs /opt/solr/server/solr/configsets
- sudo docker stop my_solr
- sudo docker run --rm --name my_solr -d -P -v solr_logs:/opt/solr/server/logs:z -v solr_configsets:/opt/solr/server/solr/configsets:z -v solr_foswiki:/opt/solr/server/solr/solr_foswiki:z -v foswiki_www:/var/www/foswiki:z -e GC_LOG_OPTS='' -e SOLR_LOG_LEVEL='WARN' -p 8983:8983 -t solr:5
- cd /var/www/foswiki/tools
- ./solrindex Topic=WebHome
It should show you the files being indexed
- cd /var/www/foswiki/bin
- ./rest /SolrPlugin/search