This package must be used alongside an RCloud version
rcloud.solr with something like:
docker pull mangothecat/rcloud-solr
to start the service run something like:
sudo docker run --rm -d -p 8983:8983 mangothecat/rcloud-solr
Your RCloud config will then need the line:
When you bring up RCloud it should pick up this service.
I recommend using Docker to setup the development environment. The repository contains a Docker file to build an RStudio image (mostly based on rocker/tidyverse). This also installs any dev dependencies that
rcloud.solr needs so rebuild it if these ever change. To build the RStudio image run (from project root):
sudo docker build . -t rcsolr-rstudio
Or you can pull the version that matches the development head from docker hub:
docker pull mangothecat/rcsolr-rstudio.
The repo also contains a Docker Compose file to bring up the whole environment. This includes the RStudio container and an instance of Solr. To run all this in the background run:
sudo docker-compose up -d
and then you can use
down depending how you want to tear down.
Some of the unit tests require a connection to a solr instance to work. The docker-compose.yml file lays out a configuration that will allow testing. There needs to be a solr instance, setup for RCloud, running on
http://solr:8983/. It is recommnded to use this docker image.
Also note that this package will not work in Windows due to use of parallel forks.