🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

exhibits_solr_conf

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exhibits_solr_conf

bundlerRubygems
Version
0.1.1
Version published
Maintainers
1
Created
Source

Build Status Gem Version

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

exhibits_solr_conf rake task

To use exhibits_solr_conf's rake task, in your Rakefile add:

require 'exhibits_solr_conf'

And then you can use the exhibits:configure_solr rake task. For example:

require 'exhibits_solr_conf'
desc 'Run tests in generated test Rails app with generated Solr instance running'
task ci: ['engine_cart:generate', 'jetty:clean', 'exhibits:configure_solr'] do
  ENV['environment'] = 'test'
  jetty_params = Jettywrapper.load_config

  Jettywrapper.wrap(jetty_params) do
    # run the tests
    Rake::Task['spec'].invoke
  end
end

Configuration

The default target directory for solr config files is jetty/solr/blacklight-core/conf/

You can configure the target directory for the solr config files by passing an argument:

$ rake exhibits:configure_solr[/my/solr/conf]

NOTE: no quotes around the directory name

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.

FAQs

Package last updated on 26 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts