January 22, 2018
If you run Sitecore in Docker or just prefer to not have all kinds of dependencies (and often in multiple versions) installed on your workstation(s), then I have created a new Docker image with Solr and SSL just for you! ... if not (?) then I will recommend you to at least use @kamsar's installation script.
Anyways... clone and try out the Docker image from https://github.com/pbering/solrwin.
It also works with Sitecore 9.0.0 and 9.0.1 (where Solr now is the default search engine) and you can install the default cores using the Sitecore Installation Framework (SIF). The installed cores are persisted between restarts using volume mounts.
To use with SIF you need to copy the default "sitecore-solr.json" configuration and in that:
- Remove the "StopSolr" and "StartSolr" tasks.
- Change the variable "Solr.Server" value to "[variable('Solr.FullRoot')]"
Then you can install the Solr cores with
Install-SitecoreConfiguration @{ Path = "PATH-TO-SITECORE-SOLR.JSON-COPY" SolrUrl = "https://solr:8983" SolrRoot = "PATH-TO-CLONE-DIR/data/solrhome" SolrService = "void" CorePrefix = "my-prefix" }
As always, enjoy!
Article originally published on Invoke Command Blog: Solrwin, Solr in a Windows container with SSL