Heiðrún is the DPLA metadata ingestion and QA system, and is an implementation of the Kri-kri Rails engine.
More information about Heidrun and Kri-kri can be found on DPLA's Technology Team site.
Run these commands:
bundle install
bundle exec rake db:migrate
Prerequisites:
- VirtualBox (Version 4.3)
- Vagrant (Version 1.6)
- vagrant-vbguest (
vagrant plugin install vagrant-vbguest
) - Ansible (Version 1.7 or greater; installation instructions)
Add this line to your /etc/hosts
or equivalent:
192.168.50.21 heidrun
Then do this:
$ cd /path/to/this/directory
$ vagrant up
$ vagrant reload # Because of o/s packages having been upgraded
$ vagrant ssh
$ cd /vagrant
$ bundle exec rake jetty:start
$ bundle exec rake db:migrate
$ bundle exec rails s
You should be able to browse to http://heidrun:3000/
to see the application.
You may re-run the provisioning with vagrant provision
.
To run tests, make sure jetty is not already running, and then run rake ci
:
$ bundle exec rake jetty:stop
$ bundle exec rake ci
Please see the notes in our automation project README regarding the use of this VM.
In Norse mythology, Heiðrún is the goat that consumes leaves from the tree Læraðr and produces mead for the einherjar.
Please observe the following guidelines:
- Write tests for your contributions.
- Document methods you add using YARD annotations.
- Use well formed commit messages.
- Copyright Digital Public Library of America, 2014-2017
- License: MIT