Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

vmware-archive/xray

Repository files navigation

#XRAY Peer into the Lattice

Build Status

X-ray screenshot

##Installation To get started with xray:

git clone git@github.com:pivotal-cf-experimental/xray.git
cd xray
npm install
RECEPTOR_URL='http://receptor.example.com' node_modules/.bin/gulp s

There should now be a server listening on port 3000 that will visualize the state of the lattice instance at RECEPTOR_URL

If you would like basic auth, use

XRAY_USER='user' XRAY_PASSWORD='password' RECEPTOR_URL='http://receptor.example.com' node_module/.bin/gulp s

where you are free to choose user and password.

##Deployment

To deploy to your own CF, follow the steps in Installation, make sure your cf cli is logged in, then:

NODE_ENV=production gulp assets
cf push

For a blue-green deployment, you can add an entry to config/deploy.json and use

ENV=KEY_IN_DEPLOY.JSON node_modules/.bin/gulp deploy

##Development

To run server:

gulp s

To run tests:

npm test

This assumes you have phantomjs installed in your environment.

(c) Copyright 2015 Pivotal Software, Inc. All Rights Reserved.