Giter Club home page Giter Club logo

hyrax_leaf's Introduction

hyrax_leaf

HyraxLeaf is the base Hyrax application used by the Research Technologies team

Environment Variables

  • The environment variables used by docker when running the containers and by the rails application should be in file named .env
  • For docker, copy the file .env.template to .env and change / add the necessary information
  • For running the application without docker, setup the ENVIRONMENT VARIABLES as you would normally do so (eg. .rbenv-vars)

Secrets

Generate a new secret with:

rails secret

Embedding a Gem

HyraxLeaf can be used stand-alone, but has been designed for use with a Ruby Gem containing customisations that are applied by running the gem install generator. An example of one such gem is hull_culture

The convention for using a gem is:

  1. clone the gem to vendor/
  2. add the gem to the Gemfile: gem 'gem_name', path: 'vendor/gem_name'
  3. run the installer: rails g gem_name:install
  4. optionally (if available), run the initialize generator on first run to run setup tasks like creating the default admin set: rails g gem_name:initialize

Install from docker

Ensure you have docker and docker-compose. See notes on installing docker

To build and run the system in your local environment.

  1. Clone the repository
git clone https://github.com/research-technologies/hyrax_leaf.git
  1. Copy .env-template to .evn and review the environment variables carefully

  2. Issue the docker-compose up command (add --build to build the images):

$ docker-compose up --build

You should see the rails app at localhost:3000 (if you set EXTERNAL_PORT to a different port, it will be running on that port)

Embedding a Gem

As noted above, a Gem may be used to customise hyrax_leaf. If the GEM_KEY and GEM_SOURCE variables are set, docker-compose will perform the steps noted earlier.

If the GEM_SOURCE requires an ssh key, add the private key file to the docker folder and set SSH_PRIVATE_KEY to the path (eg. docker/id_rsa). Docker uses an intermediate image to ensure this key file is not included in the final docker image.

Build an Azure Kubernetes Cluster with Terraform (experimental)

See the separate README in the /terraform directory

hyrax_leaf's People

Contributors

anusharanganathan avatar cziaarm avatar dependabot[bot] avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

cjcolvar

hyrax_leaf's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.