Thursday, December 9, 2010

/me waves @ clouds

Hurray, finally it is here! introducing-apache-wave.html

So time to go grab the code via "hg" (apt-get install mercurial: yeah I know yet another "superior" version control system!) from:

http://code.google.com/p/wave-protocol/

$ hg clone https://wave-protocol.googlecode.com/hg/ wave-protocol

...and then attempt to install this on our freebie micro.ml amazon instance... Alas it totally failed to "ant build" on the m1.tinyResult was a classic "out of memory error" (Killed)! Now time to be rather brave and locate the operating system swap partition on EBS... Lord knows if this is going to cost actual real money - or work for that matter!



ubuntu@iamazon:~/wave-protocol$ sudo dd if=/dev/zero of=/swap bs=1024k count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 26.054 s, 40.2 MB/s

ubuntu@amazon:~/wave-protocol$ sudo mkswap /swap
Setting up swapspace version 1, size = 1023996 KiB
no label, UUID=164072b5-23b3-45c1-b026-5947db2a656e

ubuntu@amazon:~/wave-protocol$ sudo swapon /swap

ubuntu@amazon:~$ free
total used free shared buffers cached
Mem: 610080 505888 104192 0 13716 374328
-/+ buffers/cache: 117844 492236
Swap: 1023996 0 1023996

Build time:
ubuntu@amazon:~/wave-protocol$ ant
Buildfile: /home/ubuntu/wave-protocol/build.xml
(snip)
dist:
BUILD SUCCESSFUL
Total time: 13 minutes 13 seconds

Hurray!

Ok next piece, a swift ssh port forward to the amazon image so we can take some screen grabs from safari:
James-Cuffs-iMac:.ssh jcuff$ ssh -L9898:localhost:9898 aws


tada!



Ok couple of bugs to work out...
(TypeError): Cannot call method 'replace' of null
stack: TypeError: Cannot call method 'replace' of null at AUb (http://localhost:9898/webclient/77EA2642D65EA826108BDCB77BE30AEB.cache.html:633:39)
at $zd

But other than that we are pretty much good to go!

At least for some value of "go" ;-)


[any opinions here are all mine, and have absolutely nothing to do with my employer]
(c) 2011 James Cuff