Digital Repository / Northwestern University Toolkit
7.8K
Donut is a Hydra head based on Hyrax
Docker (we're using docker for mac: https://www.docker.com/docker-mac)
settings.local.yml with the geonames_username key, e.g. geonames_username: geonames_test_userAdd local fits path to /config/settings/local.yml
fits:
path: /usr/local/bin/fits
Clone the Donut GitHub repository
Install dependencies: bundle install
Run rake docker:dev:up in a separate tab to start solr, fedora, cantaloupe, and localstack
Setup the database: rake db:setup
Generate roles: rake generate_roles
Run rake donut:seed to initialize the stack.
donut:seed (may be used in combination):
ADMIN_USER=[your NetID] ADMIN_EMAIL=[your email] to automatically add an admin userSEED_FILE=[path to YAML file] to automatically add users and admin_sets. There is a sample seed file in spec/fixtures/files/test_seed.ymlRun the test suite:
$ rake donut:ci
You can run rubocop and the specs independently with:
$ rake donut:ci:rubocop
$ rake donut:ci:rspec
You may also want to run the Fedora and Solr servers in one window with:
$ rake docker:test:up
You'll need to run the SEED task for the test environment as well:
$ rake donut:seed RAILS_ENV=test
And run the test suite in another window:
$ rake spec
Run Jasmine server:
$ rake jasmine
Run all tests:
$ http://localhost:8888
Run the javascript test suite:
$ rake jasmine:ci
rake donut:seed or rake s3:setup rake task to create and populate the S3 bucket$ bin/import_from_s3 dev-batch sample.csv
the active elastic job gem requires an environment variable to be set otherwise all the specs fail. so run this first:
$ export PROCESS_ACTIVE_ELASTIC_JOBS=true
up with daemon in docker:dev:up and docker:test:up to run the Docker services in the background
instead of in a separate tab. To stop the stack, use (for example) rake docker:dev:down.rake docker:dev:clean.rake docker:dev:up (or daemon) and rails srake donut:add_admin_role ADMIN_USER[your NetID]Content type
Image
Digest
Size
621 MB
Last updated
over 8 years ago
docker pull nulib/donut