联系我们

Solrwin, Solr in a Windows container with SSL

Senior Sitecore Developer
Valtech DK

一月 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

 

联系我们

我们很想听到您的声音! 请填写表格,离办公室最近的人将与您联系。

让我们重新创造未来