Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 WebTry Server | 1 WebTry Server |
| 2 ============= | 2 ============= |
| 3 | 3 |
| 4 Allows trying out Skia code in the browser. Run a local webserver | 4 Allows trying out Skia code in the browser. Run a local webserver |
| 5 and from the pages it serves try out Skia code and see the results | 5 and from the pages it serves try out Skia code and see the results |
| 6 immediately. To make sandboxing easier this must be built w/GPU off. | 6 immediately. To make sandboxing easier this must be built w/GPU off. |
| 7 | 7 |
| 8 | 8 |
| 9 Running Locally | 9 Running Locally |
| 10 =============== | 10 =============== |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 | 39 |
| 40 gcutil --project=google.com:skia-buildbots ssh --ssh_user=default skia-webtr y-b | 40 gcutil --project=google.com:skia-buildbots ssh --ssh_user=default skia-webtr y-b |
| 41 | 41 |
| 42 | 42 |
| 43 Do the first time | 43 Do the first time |
| 44 ================= | 44 ================= |
| 45 | 45 |
| 46 The following things only need to be done once. | 46 The following things only need to be done once. |
| 47 | 47 |
| 48 1. SSH into the server as default. | 48 1. SSH into the server as default. |
| 49 | |
| 49 2. sudo apt-get install git schroot debootstrap | 50 2. sudo apt-get install git schroot debootstrap |
|
tfarina
2014/10/02 17:56:27
As you noted, schroot and debootstrap are also ins
humper
2014/10/02 20:43:15
Done.
| |
| 50 3. git clone https://skia.googlesource.com/skia | |
| 51 4. cd ~/skia/experimental/webtry/setup | |
| 52 5. ./webtry_setup.sh | |
| 53 | 51 |
| 54 6. Add the following to /etc/fstab and reboot: | 52 3. Add the following to the /etc/schroot/minimal/fstab: |
|
tfarina
2014/10/02 17:56:27
Does this needs to happen before we call webtry_se
humper
2014/10/02 20:43:15
Not really -- the setup scripts just use regular c
| |
| 55 | 53 |
| 56 none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0 | 54 none /run/shm tmpfs rw,nosuid,nodev,noexec 0 0 |
|
tfarina
2014/10/02 18:55:27
Should we do this in the script as well rather tha
humper
2014/10/02 20:43:15
Well, line 32 only runs once, when the chroot is v
| |
| 55 /home/webtry/inout /skia_build/inout none rw,bind 0 0 | |
| 56 /home/webtry/cache /skia_build/cache none rw,bind 0 0 | |
| 57 | 57 |
| 58 The above will allow ninja to run. See http://stackoverflow.com/questions/200927 8/python-multiprocessing-permission-denied | |
| 59 | 58 |
| 60 7. Add the following to the /etc/schroot/minimal/fstab: | 59 4. git clone https://skia.googlesource.com/skia |
| 61 | 60 |
| 62 /home/webtry/inout /inout none rw,bind 0 0 | 61 5. cd ~/skia/experimental/webtry/setup |
| 63 | 62 |
| 64 8. Change /etc/monit/monitrc to: | 63 6. ./webtry_setup.sh |
| 64 | |
| 65 7. Change /etc/monit/monitrc to: | |
| 65 | 66 |
| 66 set daemon 2 | 67 set daemon 2 |
| 67 | 68 |
| 68 then run the following so it applies: | 69 then run the following so it applies: |
| 69 | 70 |
| 70 sudo /etc/init.d/monit restart | 71 sudo /etc/init.d/monit restart |
| 71 | 72 |
| 72 This means that monit will poll every two seconds that our application is up and running. | 73 This means that monit will poll every two seconds that our application is up and running. |
| 73 | 74 |
| 74 9. Set the TCP keepalive. For more info see: | 75 8. Set the TCP keepalive. For more info see: |
| 75 https://developers.google.com/cloud-sql/docs/gce-access | 76 https://developers.google.com/cloud-sql/docs/gce-access |
| 76 | 77 |
| 77 sudo bash -c 'echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time' | 78 sudo bash -c 'echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time' |
|
tfarina
2014/10/02 17:56:27
s/bash/sh?
humper
2014/10/02 20:43:15
Done.
| |
| 78 | 79 |
| 79 Once, after setup | |
| 80 ================= | |
| 81 | |
| 82 Do this step only once, but only after running webtry_setup.sh the first time. | |
| 83 | |
| 84 sudo debootstrap --variant=minbase wheezy /srv/chroot/webtry | |
|
tfarina
2014/10/02 17:56:27
OK. This is done by webtry_setup.sh with:
sudo de
humper
2014/10/02 20:43:15
Acknowledged.
| |
| 85 | |
| 86 | |
| 87 To update the code | 80 To update the code |
| 88 ================== | 81 ================== |
| 89 | 82 |
| 90 1. SSH into the server as default. | 83 1. SSH into the server as default. |
| 91 2. cd ~/skia/experimental/webtry/setup | 84 2. cd ~/skia/experimental/webtry/setup |
| 92 3. git pull | 85 3. git pull |
| 93 4. ./webtry_setup.sh | 86 4. ./webtry_setup.sh |
| 94 | 87 |
| 95 | |
| 96 Third Party Code | 88 Third Party Code |
| 97 ================ | 89 ================ |
| 98 | 90 |
| 99 * res/js/polyfill.js - Various JS polyfill libraries. To rebuild or update | 91 * res/js/polyfill.js - Various JS polyfill libraries. To rebuild or update |
| 100 see poly/README.md. | 92 see poly/README.md. |
| OLD | NEW |