samvera-labs / nurax-pg

This is a Hyrax application configured to use Postgres for metadata storage instead of ActiveFedora.
Apache License 2.0
0 stars 0 forks source link

nurax-pg

This is an application used for testing the state of Hyrax using Postgres as the metadata store for objects. In this application, Fedora is not used for storing object metadata or files. The Hyrax gem is pinned to the main branch to ensure it has the latest possible code for testing.

Known Issues

Collection model

Default Admin Set

Questions

Please direct questions about this code or the servers where it runs to the #nurax channel on Samvera slack.

Contributing

If you're working on a PR for this project, create a feature branch off of main.

This repository follows the Samvera Community Code of Conduct and language recommendations. Please do not create a branch called master for this repository or as part of your pull request; the branch will either need to be removed or renamed before it can be considered for inclusion in the code base and history of this repository.

Running Locally

There are two ways to run locally, with Docker or with the rails server. For both, the first step is to get the repository from GitHub.

git clone https://github.com/samvera-labs/nurax-pg.git

Docker

Execute the following commands from the application root to start the app using Docker.

docker-compose build
docker-compose up

You can find help with additional commands in Hyrax' FAQ-for-Dassie-Docker-Test-App. Most commands can be used directly as described in the FAQ. A few might require a slight adjustment to work with nurax-pg as a Docker app.

Rails Server

Copy /.env.example to /.env and update as needed (e.g. passwords).

If you want to run directly, there are several services that need to be running on your machine.

_NOTE: You can use solrwrapper to start solr. You will start redis and postgres using their CLI commands.

To start solr, execute the following command from the application root:

bundle exec solr_wrapper -d solr/conf/ nurax-pg -i -p 8987"

Deployment

The application is set up to deploy to DCE infrastructure (nurax-pg.curationexperts.com) using Capistrano.

Currently, DCE staff and Hyrax working group members should have their github ssh keys added to the server to enable them to deploy.

You can deploy to the "production" instance (currently the only instance) using bundle exec cap prod deploy. This defaults to deploying the main branch. If you want to deploy a different branch, you can set it using the environment variable BRANCH, e.g. BRANCH=MY_BRANCHNAME bundle exec cap prod deploy.