commit | b3ca0048ef12d597b0e0e344705d4fc55cc9f516 | [log] [tgz] |
---|---|---|
author | Matt Rosencrantz <mattr@google.com> | Fri Jan 09 09:59:51 2015 -0800 |
committer | Matt Rosencrantz <mattr@google.com> | Fri Jan 09 09:59:51 2015 -0800 |
tree | 30c2e1906b0784ea5303e51ef0028b291836f2ab | |
parent | 5a70136fbaa231c77299d7cfe35c5bcfb7efc43b [diff] |
TBR: playground: Fix the integration test by properly injecting the context. Change-Id: Ie8122aca59918d07749dc0ec2da0e8d8d8dab901
Install Docker:
On Goobuntu, we recommend overriding the default graph dir (/var/lib/docker
) to avoid filling up the root filesystem partition, which is quite small. To do so, add the following line to your /etc/default/docker
:
DOCKER_OPTS="${DOCKER_OPTS} -g /usr/local/google/docker"
Start (or restart) the Docker daemon:
$ sudo service docker restart
Build the playground Docker image (this will take a while...):
$ cp ~/.gitcookies $VANADIUM_ROOT/release/go/src/v.io/playground/builder/gitcookies $ cp ~/.hgrc $VANADIUM_ROOT/release/go/src/v.io/playground/builder/hgrc $ sudo docker build -t playground $VANADIUM_ROOT/release/go/src/v.io/playground/builder/.
Note: If you want to ensure an up-to-date version of Vanadium is installed in the Docker image, run the above command with the “--no-cache” flag.
Test your image (without running compilerd):
$ sudo docker run -i playground < /usr/local/google/home/sadovsky/dev/veyron-www/content/playgrounds/code/fortune/ex0-go/bundle.json
Install the playground binaries:
$ v23 go install v.io/playground/...
Run the compiler binary as root:
$ sudo $VANADIUM_ROOT/release/go/bin/compilerd --shutdown=false --address=localhost:8181
Or, run it without Docker (for faster iterations during development):
$ cd $(mktemp -d "/tmp/XXXXXXXX") $ PATH=$VANADIUM_ROOT/release/go/bin:$PATH compilerd --shutdown=false --address=localhost:8181 --use-docker=false
The server should now be running at http://localhost:8181 and responding to compile requests at http://localhost:8181/compile.
Add ?pgaddr=//localhost:8181
to any veyron-www page to make its embedded playgrounds talk to your server. Add ?debug=1
to see debug info from the builder.