Contact us

Solrwin, Solr in a Windows container with SSL

Senior Sitecore Developer
Valtech DK

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:

  1. Remove the "StopSolr" and "StartSolr" tasks.
  2. 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

 
There is a license error on this site:
License has expired
The Web site remains functional, but this message will be displayed until the license error has been corrected.

To correct this error:
  • Ensure that you have a valid license file for the site configuration.
  • Store the license file in the application directory.
If you do not have a license file, please request one from EPiServer License Center.

Contact us

Let's reinvent the future