Sage-Bionetworks/dashboard

Name: dashboard

Owner: Sage Bionetworks

Description: null

Created: 2013-09-24 16:37:55.0

Updated: 2015-07-14 02:11:37.0

Pushed: 2015-04-17 19:07:48.0

Homepage: null

Size: 1821

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

dashboard development environment

Build Status

Set up the required configuration
$ touch ~/.dashboard/dashboard.config
$ chmod 600 ~/.dashboard/dashboard.config

Add the following lines:

access.record.bucket=<S3 bucket for the access records>

aws.access.key=<Your AWS dev account access key>
aws.secret.key=<Your AWS dev account secrete Key>

synapse.user=<Your Synapse admin user account>
synapse.password=<Your Synapse admin account password>

google.client.id=<Your Google account info>
google.client.secret=<Your Google account info>

(Alternatively, these parameters can be passed in as command-line arguments which will overwrite the above entries in the Gradle properties file.)

Development
  1. Download and install VirtualBox.
  2. Download and install Vagrant.
  3. At the project root, run vagrant up.
  4. Once the box is up, ssh to it vagrant ssh.
  5. Go to the shared folder cd /vagrant.
  6. Run ./gradlew clean build.
  7. Outside the guest, at the host's project folder, run ./gradlew eclipse to generate the files for importing the project into Eclipse.
  8. The package has a command-line interface that can be used to read local copies of access records and populates the Redis cache.
    gradlew run -PfilePath=</local/path/to/access/log/files>
    pileJava UP-TO-DATE
    cessResources UP-TO-DATE
    sses UP-TO-DATE
    
    l number of files: 956
    ing file 1 of 956
    teResult [filePath=/logs/access-records/22/2013-11-18/18-10-14.csv.gz, lineCount=12, status=SUCCEEDED]
    
    teResult [filePath=/logs/access-records/22/2013-12-07/04-15-51.csv.gz, lineCount=1, status=SUCCEEDED]
    D SUCCESSFUL
    l time: 43 mins 7.178 secs
    

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.