Skip to content

Instantly share code, notes, and snippets.

@aelkiss
Created August 12, 2020 18:09
Show Gist options
  • Save aelkiss/2e42a390499493acf238a3a1970171f1 to your computer and use it in GitHub Desktop.
Save aelkiss/2e42a390499493acf238a3a1970171f1 to your computer and use it in GitHub Desktop.
catalog faker
# From any other service you start in this docker-compose.yml, you'll be able to do:
# curl -X POST -d q=ht_id:loc.ark:/13960/t6vx15d67&start=0&rows=1&fl=fullrecord,language,language008 \
# http://solr-sdr-catalog:9033/solr/catalog/select
# and get the result listed here: https://gist.github.com/respinos/d92b92e5a51307816fb429a9053fc995
version: '3'
services:
solr-sdr-catalog:
image: hathitrust/catalog_solr_faker
dev:
image: debian:buster
# To use it:
# $ docker-compose build
# $ docker-compose up -d solr-sdr-catalog
# $ docker-compose run --rm dev
# then inside the container
# # apt-get update; apt-get install curl
# # curl -X POST -d q=ht_id:loc.ark:/13960/t6vx15d67&start=0&rows=1&fl=fullrecord,language,language008 http://solr-sdr-catalog:9033/solr/catalog/select
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment