Name: dashboard-ui
Owner: Sage Bionetworks
Description: null
Created: 2013-10-23 05:27:34.0
Updated: 2015-04-18 01:04:54.0
Pushed: 2015-04-18 01:04:52.0
Homepage:
null
Size: 962
Language: Scala
GitHub Committers
User | Most Recent Commit | # Commits |
Other Committers
User | Email | Most Recent Commit | # Commits |
README
This project is deprecated and should not be used.
Dashboard UI
Development
Prerequisites
- Install VirtualBox and Vagrant.
- Create the local configuration file
~/.dashboard/dashboard.conf
. Make sure the file is accessible only by you. In this file, youu will need pointers to the resources and their corresponding credentials.
How to test & run locally
- Initialize Vagrant
vagrant up
.
- Connect to the Vagrant box
vagrant ssh
.
- In the Vagrant box, go to the shared project folder
cd /vagrant
.
- Run tests
activator test
.
- To test the JavaScripts,
npm install
, then grunt
.
- Launch the Play console
activator
.
- Then in the Play console, use the command
run
to start a local dashboard web server.
- If you want to pull in real data, again within the Play console,
-Daws.access.key=<prod-access-key> -Daws.secret.key=<prod-secret-key> -Daccess.record.bucket=<prod-bucket> -Dstack=prod
Deployment
AMI creation
- Dashboard AMI creation
- Nginx reverse proxy setup behind a elastic load balancer and in front of a Play web app.
- Load balancer set up.
80 (HTTP) forwarding to 80 (HTTP)
443 (HTTPS, Certificate: wildcard.synapse.org-blah) forwarding to 8080 (HTTP)
- Note on log locations
- Access logs: /var/log/nginx/access.log
- Application logs: [/path/to/app]/logs/application.log
Deploy manually
- Generate a distribution package. Run the Play
dist
command.
- Launch a m3.medium EC2 instance from the customized AMI.
- Once the instance is active, upload the distribution package to the instance using
scp
.
- Go to the EC2 instance, unpack the package, and launch the dashboard app. Example:
dashboard-ui-1.0-20140127/bin/dashboard-ui -Dhttp.port=9001 2> /dev/null &
.
- After maybe 3 hours, cross-validate with the current dashboard.
- Once validated, swap the instance at the dashboard load balancer.
Design