commit | ee7a6375a0604c884c302bc6f9ac4f21f87803e7 | [log] [tgz] |
---|---|---|
author | Ali Ghassemi <aghassemi@google.com> | Thu Mar 12 20:47:29 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Mar 12 20:47:29 2015 +0000 |
tree | 91b41d762b39a1a3b4a233444a9da354addb47ec | |
parent | 24dca57fb3507ef02f3c0e7ff25341d909f90d3f [diff] | |
parent | 9499dae98833c0747c43909661839f2b27c3fe36 [diff] |
Merge "chat: Hooking up the PromptToInstallVanadiumExtension to the web client."
There are currently have two clients: a web client and a shell client.
Please file bugs and feature requests in our issue tracker.
Install the Vanadium Chrome Extension: https://chrome.google.com/webstore/detail/vanadium-extension/jcaelnibllfoobpedofhlaobfcoknpap
Visit the chat webpage: https://staging.chat.v.io/
These instructions assume you have an up-to-date Vanadium development environment inside $VANADIUM_ROOT
.
In order to install the shell client, please do the following:
Build the chat binary.
cd $VANADIUM_ROOT/release/projects/chat make build-shell
Start the Vanadium Security Agent
$VANADIUM_ROOT/release/go/src/v.io/x/ref/cmd/mgmt/vbash
You may be prompted for a password, and may have to select blessing caveats in your web browser.
TODO(nlacasse): Is there a better way to get the agent that does not require $VANADIUM_ROOT ?
Run the chat binary.
$VANADIUM_ROOT/release/projects/chat/clients/shell/go/bin/chat
To get the chat environment running locally, you will need to run mounttable and proxyd servers with a valid identity. The following script will request and identity from the identity service and run mounttabled and proxyd with that identity.
./tools/services.sh
You will be prompted to log in with your google account in order to get an identity. You will also be asked to select a blessing. Leave the values at their default setting and click “Bless”.
Once the identity is in place, the script runs mounttabled on port 8101, and proxyd on port 8100. The proxy mounts itself in the mounttable under the name “proxy”.
You can run the chat web server with:
NOMINIFY=1 make serve-web
This will run the web server on port 4000. The NOMINIFY environment varible prevents the code from being minified, making debugging easier.
Once the web server is running, visit the chap app page, and pass the names of the mountable and proxyd in query params.
http://localhost:4000?mounttable=/localhost:8101&proxy=proxy
Build the chat binary:
make build-shell
Get an identity from the identity server:
export VEYRON_CREDENTIALS=/tmp/vanadium-credentials $VANADIUM_ROOT/release/go/bin/principal seekblessings
Then run the binary and pass in the veyron.namespace.root and veyron.proxy flags.
./clients/shell/bin/chat --mounttable=/localhost:8101 --proxy=proxy
If you do not have access to the vanadium-staging GCE account ping jasoncampbell@. Once you have access you will need to login to the account via the command line.
gcloud auth login
To deploy the site to https://staging.chat.v.io use the make target deploy-staging
.
make deploy-staging
This will sync the build directory to the private Google Storage bucket gs://staging.chat.v.io
which gets automatically updated to the nginx front-end servers. Currently all static content is protected by OAuth. For more details on the deployment infrastructure see this doc and the infrastructure repository.