commit | c8137f19497eda5ddc279889304e9caacb3b9366 | [log] [tgz] |
---|---|---|
author | Asim Shankar <ashankar@google.com> | Wed Oct 29 21:52:10 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Oct 29 21:52:10 2014 +0000 |
tree | 08790fd64fc1bff00db5b3099e2efa655a84a8d2 | |
parent | 28fce402e1a452817cf24365f7acf6508fb53ab9 [diff] | |
parent | 2ea9a523afca429e2bab21ca6fa413b9820e74b9 [diff] |
Merge "TBR: testdata/src: Remove unnecessary ForceNewSecurityModel option."
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 $VEYRON_ROOT/veyron/go/src/veyron.io/playground/builder/netrc $ sudo docker build -t playground $VEYRON_ROOT/veyron/go/src/veyron.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 veyron.io/playground/...
Run the compiler binary as root:
$ sudo $VEYRON_ROOT/veyron/go/bin/compilerd --shutdown=false --address=localhost:8181
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.