aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/webtry/README.md
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-14 14:54:07 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-14 14:54:07 +0000
commit282333ffa2f0f343b4bde51af9be5720184c872a (patch)
tree5b95cc85dd41870e74c6e3ad1f658d9d1f13ef4f /experimental/webtry/README.md
parent94cf9fad381152155762af3ac7c0fd6bc1e1b017 (diff)
Add design for sql storage, implementation of db that stores the data, not retrieving yet.
BUG=skia: R=mtklein@google.com Author: jcgregorio@google.com Review URL: https://codereview.chromium.org/235373002 git-svn-id: http://skia.googlecode.com/svn/trunk@14175 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/webtry/README.md')
-rw-r--r--experimental/webtry/README.md52
1 files changed, 29 insertions, 23 deletions
diff --git a/experimental/webtry/README.md b/experimental/webtry/README.md
index c7573110f6..d5bc6189b4 100644
--- a/experimental/webtry/README.md
+++ b/experimental/webtry/README.md
@@ -8,11 +8,11 @@ immediately. To make sandboxing easier this must be built w/GPU off.
Running Locally
===============
-$ GYP_GENERATORS=ninja ./gyp_skia gyp/webtry.gyp gyp/most.gyp -Dskia_gpu=0
-$ ninja -C out/Debug webtry
-$ cd experimental/webtry
-$ go build webtry.go
-$ ./webtry
+ $ GYP_GENERATORS=ninja ./gyp_skia gyp/webtry.gyp gyp/most.gyp -Dskia_gpu=0
+ $ ninja -C out/Debug webtry
+ $ cd experimental/webtry
+ $ go build webtry.go
+ $ ./webtry
Then visit http://localhost:8000 in your browser.
@@ -23,52 +23,58 @@ Full Server Setup
Create a GCE instance:
-gcutil --project=google.com:skia-buildbots addinstance skia-webtry-b \
- --zone=us-central2-b --external_ip_address=108.170.220.126 \
- --service_account=default \
- --service_account_scopes="https://www.googleapis.com/auth/devstorage.full_control" \
- --network=default --machine_type=n1-standard-1 --image=backports-debian-7-wheezy-v20140331 \
- --persistent_boot_disk
+ gcutil --project=google.com:skia-buildbots addinstance skia-webtry-b \
+ --zone=us-central2-b --external_ip_address=108.170.220.126 \
+ --service_account=default \
+ --service_account_scopes="https://www.googleapis.com/auth/devstorage.full_control" \
+ --network=default --machine_type=n1-standard-1 --image=backports-debian-7-wheezy-v20140331 \
+ --persistent_boot_disk
SSH into the instance:
- gcutil --project=google.com:skia-buildbots ssh --ssh_user=default skia-webtry-b
+ gcutil --project=google.com:skia-buildbots ssh --ssh_user=default skia-webtry-b
+Do once
+-------
+
The following things only need to be done once
-----------------------------------------------
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:
- none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
+ 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:
- /home/webtry/inout /inout none rw,bind 0 0
+ /home/webtry/inout /inout none rw,bind 0 0
5. Change /etc/monit/monitrc to:
- set daemon 2
+ set daemon 2
then run the following so it applies:
- sudo /etc/init.d/monit restart
+ sudo /etc/init.d/monit restart
This means that monit will poll every two seconds that our application is up and running.
+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
---------------------------------------------------------------------------------------------------------------------
-cd ~/skia/experimental/webtry/setup
-./webtry_setup.sh
+ cd ~/skia/experimental/webtry/setup
+ ./webtry_setup.sh
+
+Once, after setup
+-----------------
-Do these steps only once, but only after running webtry_setup.sh the first time
--------------------------------------------------------------------------------
+Do this step only once, but only after running webtry_setup.sh the first time
-1. sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry
+ sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry