Giter Site home page Giter Site logo

labradford / community_archive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from notch8/community_archive

0.0 1.0 0.0 2.4 MB

LBCC's institutional repository

Home Page: http://libarchive.linnbenton.edu/

Shell 0.08% JavaScript 0.63% Ruby 86.76% CSS 0.40% HTML 11.16% SCSS 0.96%

community_archive's Introduction

community_archive

LBCC's institutional repository

Installing a development instance on your own computer

Be sure the following software is installed on your computer:

  • Docker
  • Docker compose
  • Git

Then run these commands:

git clone https://github.com/lbcclib/community_archive
cd community_archive
docker-compose up -d
docker-compose exec app bin/rake db:migrate
docker-compose exec app bundle exec rails hyrax:default_collection_types:create
docker-compose exec app bin/rails hyrax:default_admin_set:create

To make life easier, after you create an account, you'll also want to:

docker-compose exec db psql -U commarch -W commarch -c "UPDATE users SET admin=true"

Installing a production or staging instance in kubernetes

Be sure the following software is installed on your computer:

  • Azure CLI
  • Git
  • Kubectl
  • Helm
  • Ruby

Create a new temporary directory on your own computer (not strictly necessary; I just find that it keeps things tidier to do this in its own directory than getting it mixed in with the directory you use for development). From that directory:

git clone https://github.com/lbcclib/community_archive
ruby community_archive/.helm/deploy.rb install [COMMIT HASH] [Name of new environment, e.g. beta]

Note: this will create an application with a completely blank SQL database, which will not work right away. It's very suitable if you have a pg_dump that you'd like to pg_restore into an empty database with minimal fuss. However, if you just want a working system and don't care about importing a previous database export, edit helm/values.yml to set skipHyraxEngineSeed to true before installing.

Updating a production or staging instance in kubernetes

Be sure the following software is installed on your computer:

  • Azure CLI
  • Git
  • Kubectl
  • Helm
  • Ruby

Create a new temporary directory on your own computer (not strictly necessary; I just find that it keeps things tidier to do this in its own directory than getting it mixed in with the directory you use for development). From that directory:

git clone https://github.com/lbcclib/community_archive
ruby community_archive/.helm/deploy.rb install [COMMIT HASH] [Name of environment, e.g. production]

Note that all new commits to the master branch are automatically deployed to the staging server via Github actions, so you never have to push them.

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.