commit | 486aad902eb1ccc8736148f6660692c8d97f03f7 | [log] [tgz] |
---|---|---|
author | Jiri Simsa <jsimsa@google.com> | Thu Dec 25 15:39:10 2014 -0800 |
committer | Jiri Simsa <jsimsa@google.com> | Thu Dec 25 15:39:18 2014 -0800 |
tree | 22545ef1e07dcf5c30c12d1a588114cbe440428f | |
parent | adc17a4623d0ffd6f60a6399b8dba7d52fe53988 [diff] |
Replacing veyron.io with v.io.
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 ~/.netrc $VANADIUM_ROOT/veyron/go/src/v.io/playground/builder/netrc $ cp ~/.hgrc $VANADIUM_ROOT/veyron/go/src/v.io/playground/builder/hgrc $ sudo docker build -t playground $VANADIUM_ROOT/veyron/go/src/v.io/playground/builder/.
Note: If you want to ensure an up-to-date version of veyron 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:
$ veyron go install v.io/playground/...
Run the compiler binary as root:
$ sudo $VANADIUM_ROOT/veyron/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/veyron/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.