docker compose build
docker compose run dev bundle install
docker compose run dev bin/reset_database.shdocker compose run --rm test
For resetting everything (cleaning up containers & their persistent volumes):
# Clear it out
docker compose down # to stop services
docker volume rm holdings-backend_data_db # to clear out the development database
docker volume rm holdings-backend_gem_cache # to clear out gems
# Initialize the database
docker compose run dev bin/reset_database.shThis will generate a synthetic OCLC concordance, HT items, and holdings for a single institution, and load it:
bash bin/load_test_data.shSee Routine Tasks for Holdings System (restricted access) for procedures for loading holdings, processing the OCLC concordance, and running various reports.
Setting the DEBUG environment variable will log more information in reporting about individual data elements as they are processed.
Setting LOG_SQL will log each statement run against the database.