exhibits_solr_conf
Gem supplying a set of Solr config files and a rake task to use in testing sul-dlss exhibit and spotlight git repos, such as:
- sul_exhibits_templates
- spotlight-dor-resources
- exhibits_requests
Production Solr config files for exhibits are part of sul-solr-configs.
Installation
Add this line to your engines's Gemfile:
gem 'exhibits_solr_conf'
And then execute:
$ bundle
Or install it yourself as:
$ gem install exhibits_solr_conf
Usage
With SolrWrapper, you can reference the solr configuration provided by this gem:
task :ci do
require 'solr_wrapper'
require 'exhibits_solr_conf'
ENV['environment'] = 'test'
SolrWrapper.wrap(port: '8983') do |solr|
solr.with_collection(name: 'blacklight-core', dir: ExhibitsSolrConf.path) do
...
end
end
end
To update Solr configs for testing:
- Clone this repo (
git clone git@github.com:sul-dlss/exhibits_solr_conf.git
) - Create your feature branch (
git checkout -b my-solr-config-tweaks
) - Commit your changes (
git commit -am 'Tweak solr configs thus'
) - Push to the branch (
git push origin my-solr-config-tweaks
) - Create a Pull Request
To update Solr configs for deployment to production:
- Ensure that all tests pass.
- Clone the sul-solr-configs repo (
git clone git@github.com:sul-dlss/sul-solr-configs.git
) - Create feature branch (
git checkout -b exhibits-new-feature
) - Commit your changes (
git commit -am 'exhibits: add some new feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a Pull Request; tag "@sul-dlss/devops" in your pull request comment.