The Hydra-in-a-Box repository application
Ruby HTML CSS JavaScript
Latest commit 3279ac5 Feb 28, 2017 @jcoyne jcoyne committed on GitHub Merge pull request #835 from projecthydra-labs/update_hyrax_to_latest
Update Hyrax to latest
Permalink
Failed to load latest commit information.
.ebextensions Bumps nginx timeouts to 10m Jan 29, 2017
.github Add GitHub templates from Hyrax to be consistent with other repos Jan 26, 2017
app Add an editiable "Help Page" block Feb 23, 2017
bin Job for importing an object from Purl (Stanford) Jan 17, 2017
config Merge pull request #824 from projecthydra-labs/cbeer-patch-2 Feb 22, 2017
db Run latest hyrax migrations Feb 23, 2017
lib Refactor importers to use Hyrax's actor stack Feb 23, 2017
public Add honeybadger custom error page markup Aug 31, 2016
solr/config Set lucene to match version of solr Jan 19, 2017
spec Add an editiable "Help Page" block Feb 23, 2017
vendor/assets Use the flot source from the flot-rails gem Jun 7, 2016
.coveralls.yml Add .coveralls.yml Mar 28, 2016
.fcrepo_wrapper Generate sufia using the installer Mar 28, 2016
.gitignore Ignore postgres artifacts Jan 24, 2017
.hound.yml Adding scss-lint because hound enforces scss style Jan 24, 2017
.rspec Require rails_helper in one place instead of 100 Feb 14, 2017
.rubocop.yml Split AccountsController into tenant and superadmin controllers Feb 16, 2017
.rubocop_todo.yml Retry on LDP::Conflict. Fixes #657 Feb 7, 2017
.scss-lint.yml Allow BEM-style class names in CSS selectors Jan 24, 2017
.solr_wrapper Rename Lerna to Hyku. Fixes #461 Nov 7, 2016
.travis.yml Update travis build matrix Jan 26, 2017
CONTRIBUTING.md Updating CONTRIBUTING.md as per Hydra v11.0.0 Jan 31, 2017
Dockerfile Add docker file for local installs Oct 24, 2016
Gemfile Update to riiif 1.1 Feb 23, 2017
Gemfile.lock Update Hyrax to latest Feb 27, 2017
LICENSE Fill in Apache license; fixes #3 Apr 11, 2016
README.md Link to Development Guide wiki page (#777) Feb 14, 2017
Rakefile Use with_server from active-fedora Oct 7, 2016
config.ru Generate an initial rails application Mar 28, 2016
docker-compose.base.yml Add docker file for local installs Oct 24, 2016
docker-compose.yml Add docker file for local installs Oct 24, 2016

README.md

Build Status Coverage Status Stories in Ready

Hydra-in-a-Box Repository App

Codename: Hyku

Running the stack

For development

solr_wrapper
fcrepo_wrapper
postgres -D ./db/postgres
redis-server /usr/local/etc/redis.conf
bin/setup
DISABLE_REDIS_CLUSTER=true bundle exec sidekiq
DISABLE_REDIS_CLUSTER=true bundle exec rails server -b 0.0.0.0

For testing

See the Hyku Development Guide for how to run tests.

On AWS

AWS CloudFormation templates for the Hyku stack are available in a separate repository:

https://github.com/hybox/aws

With Docker

We distribute a docker-compose.yml configuration for running the Hyku stack and application using docker. Once you have docker installed and running, launch the stack using e.g.:

docker-compose up -d

Switching accounts

The recommend way to switch your current session from one account to another is by doing:

AccountElevator.switch!('repo.example.com')

Development Dependencies

Postgres

Hydra-in-a-Box supports multitenancy using the apartment gem. apartment works best with a postgres database.

Importing

from CSV:

./bin/import_from_csv localhost spec/fixtures/csv/gse_metadata.csv ../hyku-objects

from purl:

./bin/import_from_purl ../hyku-objects bc390xk2647 bc402fk6835 bc483gc9313