Skip to content
/ solr_api Public

Solr configuration and velocity templates for the UCLDC project

License

Notifications You must be signed in to change notification settings

ucldc/solr_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c644ef7 · May 26, 2022
May 26, 2022
May 26, 2022
Jul 25, 2017
May 24, 2016
Oct 26, 2016
Sep 11, 2013
Jan 17, 2017
Aug 25, 2015
Sep 22, 2016
Mar 28, 2019
May 1, 2015
Aug 30, 2013
Mar 3, 2016
May 1, 2015
May 24, 2022
Jun 27, 2013
May 5, 2015
Oct 16, 2013
Jun 28, 2013

Repository files navigation

ucldc_solr

Solr configuration and velocity templates for the UCLDC project

Deploying new configurations

When changes are made to the dc-collection schema.xml or solrconfig.xml, the running environments must be rebuilt to update the solr instances.

test locally by running following in the repo root dir:

  • docker build --tag=ucldc/solr .
  • docker run -d -p 8983:8983 --name=solr ucldc/solr

Now point browser to http://localhost:8983 on linux or to :8983

You can go to the files and check the schema or solrconfig then.

Once it runs and looks good, push the code to https://github.com/ucldc/solr_api

Deploying to harvesting infrastructure

ssh to the majorTom machine for the environment you want to update.

  • update the ~/code/solr_api repo

ssh to the solr server:

  • sudo docker stop solr
  • sudo docker rm solr
  • sudo docker rmi ucldc/solr

Then ssh to the majorTom machine.

  • . ~/workers_local/bin/activate
  • ansible-playbook -i ~/code/ingest_deploy/ansible/hosts /code/ingest_deploy/ansible/provision_solr.yml --vault-password-file=/.vault_pass_ingest

Deploying to AWS

  • update the ~/code/solr_api
  • clone an existing solr environment
  • from the solr_api directory, run deploy-version.sh. This will prompt you for required parameters. Set the new cloned environment to be the one updated and give the version an appropriate name.
  • ./deploy-version.sh add-start-end-date ucldc-solr-stage-2

Creating a new api key

  • Generate a new API key, see scripts/generate_api_key.py, though any string will work
  • Download token_auth file from S3 solr.ucldc
  • Add the API key to the file & upload
  • Clone & rebuild the solr environments to grab the new key