Giter VIP home page Giter VIP logo

mdsoar-vagrant's Introduction

mdsoar-vagrant

MD-SOAR development Vagrant environment

Prerequisites

Due to the need to manually click through Oracle's license agreement in order to download a JDK, the JDK is not automatically fetched by the provisioning scripts. Instead, manually download a tar.gz distribution for 64-bit Linux from Oracle's site and place it in a dist/ subdirectory of the mdsoar-vagrant checkout directory.

The bootstrap provisioning script will pick up any jdk-*.tar.gz file, but note that production is currently using Java 7u75, so that is the recommended version to use for local development.

The Vagrantfile expects the MD-SOAR source repo to be on your host machine at /apps/git/mdsoar, the MD-SOAR environment repo to be at /apps/git/mdsoar-env, and the Solr environment repo to be at /apps/git/solr-env.

Usage

Following the DSpace documentation conventions, [dspace-source] indicates the directory that you have the MD-SOAR source code in.

$ git clone https://github.com/umd-lib/mdsoar-vagrant.git

# download an Oracle JDK to mdsoar-vagrant/dist (see the "Prerequisites"
# section above for more information)

$ cp mdsoar-vagrant/local.properties [dspace-source]
$ cd [dspace-source]
$ mvn package -Denv=local -Dmirage2.on=true

Then, from the mdsoar-vagrant directory:

$ vagrant up
$ vagrant ssh

vagrant@localhost$ cd /apps/mdsoar/dspace-installer
vagrant@localhost$ ant fresh_install
vagrant@localhost$ /apps/mdsoar/bin/dspace create-administrator

# Add mdsoar solr cores
vagrant@localhost$ /vagrant/scripts/mdsoar-solr-cores.sh

# Restore database dump
# first place a production dump.tar.0 file in /vagrant, then run
vagrant@localhost$ sudo pg_restore --clean --verbose -d dspace /vagrant/dump.tar.0

# Start Tomcat
vagrant@localhost$ cd /apps/mdsoar/tomcat
vagrant@localhost$ ./control start

# After starting up Tomcat, you may want to run the following in a separate
# window, to monitor Tomcat's startup process:
vagrant@localhost$ tail -f /apps/mdsoar/tomcat/logs/catalina.out

You should now have a running DSpace/MD-SOAR installation at http://192.168.22.10:8080/

Using the local solr jetty instance:

Solr is started on system startup and the following can be done to stop/restart solr.

To stop: $ /apps/solr-env/jetty/control stop

To start: $ /apps/solr-env/jetty/control start

Additionally, to update the solr-env on the vagrant machine with changes on the local machine, the following script can be used: $ /vagrant/update-solr-env.sh

Redeploying

There is a convenience script, deploy.sh, that you can use to run the ant update_local target and restart Tomcat. Note that it does not build the application (you still need to do that yourself on the host using Maven), nor does it create the administrator account.

mdsoar-vagrant's People

Contributors

peichman-umd avatar mohideen avatar vthayil-umd avatar

Watchers

James Cloos avatar  avatar

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.