aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental
diff options
context:
space:
mode:
authorGravatar tfarina <tfarina@chromium.org>2014-10-01 09:18:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-01 09:18:58 -0700
commitb1dfb03685d707bfcb21347f0236cee0c6958303 (patch)
tree1e50948f4f98b818e2890a95266d980ab346063a /experimental
parentcda6885f0a53255965a46b6cdb19800053b001fd (diff)
webtry: More README doc cleanups.
Puts it much more in sync with the README in perf/. BUG=None TEST=None R=jcgregorio@google.com Review URL: https://codereview.chromium.org/615313002
Diffstat (limited to 'experimental')
-rw-r--r--experimental/webtry/README.md54
1 files changed, 30 insertions, 24 deletions
diff --git a/experimental/webtry/README.md b/experimental/webtry/README.md
index b95e46bc75..609a84b1be 100644
--- a/experimental/webtry/README.md
+++ b/experimental/webtry/README.md
@@ -1,10 +1,11 @@
-WebTry
-======
+WebTry Server
+=============
Allows trying out Skia code in the browser. Run a local webserver
and from the pages it serves try out Skia code and see the results
immediately. To make sandboxing easier this must be built w/GPU off.
+
Running Locally
===============
@@ -19,8 +20,9 @@ Then visit http://localhost:8000 in your browser.
Only tested under linux, doubtful it will work on other platforms.
-Full Server Setup
-=================
+
+Server Setup
+============
Create a GCE instance:
@@ -38,24 +40,28 @@ SSH into the instance:
gcutil --project=google.com:skia-buildbots ssh --ssh_user=default skia-webtry-b
-Do once
--------
+Do the first time
+=================
+
+The following things only need to be done once.
-The following things only need to be done once
+1. SSH into the server as default.
+2. sudo apt-get install git schroot debootstrap
+3. git clone https://skia.googlesource.com/skia
+4. cd ~/skia/experimental/webtry/setup
+5. ./webtry_setup.sh
-1. sudo apt-get install git schroot debootstrap
-2. git clone https://skia.googlesource.com/skia
-3. Add the following to /etc/fstab and reboot:
+6. Add the following to /etc/fstab and reboot:
none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
The above will allow ninja to run. See http://stackoverflow.com/questions/2009278/python-multiprocessing-permission-denied
-4. Add the following to the /etc/schroot/minimal/fstab:
+7. Add the following to the /etc/schroot/minimal/fstab:
/home/webtry/inout /inout none rw,bind 0 0
-5. Change /etc/monit/monitrc to:
+8. Change /etc/monit/monitrc to:
set daemon 2
@@ -65,30 +71,30 @@ then run the following so it applies:
This means that monit will poll every two seconds that our application is up and running.
-6. Set the TCP keepalive. For more info see:
+9. Set the TCP keepalive. For more info see:
https://developers.google.com/cloud-sql/docs/gce-access
sudo bash -c 'echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time'
-Do the first time
------------------
-
-Do the following the first time you setup a machine, and each time you want to update the code running on the server
+Once, after setup
+=================
- cd ~/skia/experimental/webtry/setup
- ./webtry_setup.sh
+Do this step only once, but only after running webtry_setup.sh the first time.
+ sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry
-Once, after setup
------------------
-Do this step only once, but only after running webtry_setup.sh the first time
+To update the code
+==================
- sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry
+1. SSH into the server as default.
+2. cd ~/skia/experimental/webtry/setup
+3. git pull
+4. ./webtry_setup.sh
Third Party Code
-----------------
+================
* res/js/polyfill.js - Various JS polyfill libraries. To rebuild or update
see poly/README.md.