Created
March 14, 2010 21:42
-
-
Save dysinger/332255 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ubuntu @ ec2 (canonical official ubuntu-images-us - I grabbed 64bit) | |
# then login as 'ubuntu' & start working - however this should be reproducable | |
# anywhere you have tip riak installed... | |
sudo perl -p -i -e 's/universe$/universe multiverse/g' /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# deps | |
sudo apt-get install -y build-essential mercurial stow \ | |
sun-java6-jdk libncurses5-dev libssl-dev | |
mkdir ~/src | |
# erlang 13B04 | |
export OTP=R13B04 | |
cd ~/src | |
curl http://www3.erlang.org/download/otp_src_$OTP.tar.gz | tar oxz | |
cd ./otp_src_$OTP | |
./configure --prefix=$HOME/stow/otp-$OTP | |
make && make install | |
# symlink-install otp into $HOME | |
stow -d $HOME/stow otp-$OTP | |
source ~/.profile ;# adds $HOME/bin to $PATH | |
# riak | |
cd ~/src | |
hg clone http://hg.basho.com/riak/ | |
cd ./riak | |
make clean all rel | |
# config | |
perl -p -i -e 's/\@127\.0\.0\.1//g' ./rel/riak/etc/vm.args | |
perl -p -i -e 's/127\.0\.0\.1/0\.0\.0\.0/g' ./rel/riak/etc/app.config | |
# symlink riak into $HOME/bin | |
stow -d ./rel -t $HOME riak | |
# start | |
riak start | |
# 51mb test file | |
curl -L -O http://www.archive.org/download/\ | |
CC_1914_08_13_CharliesRecreation/CC_1914_08_13_CharliesRecreation_512kb.mp4 | |
curl -X PUT \ | |
-H "Content-Type: video/mpeg4" \ | |
--data-binary \ | |
@CC_1914_08_13_CharliesRecreation_512kb.mp4 \ | |
http://localhost:8098/riak/test/cc.mp4 | |
# 51mb works great (>50mb) | |
# 89mb test file | |
curl -L -O http://www.archive.org/download/FlashGordon213/\ | |
Flash.Gordon.Space.Soldiers.Ep13.Rocketing.To.Earth_agk_512kb.mp4 | |
curl -v -X PUT \ | |
-H "Content-Type: video/mpeg4" \ | |
--data-binary \ | |
@Flash.Gordon.Space.Soldiers.Ep13.Rocketing.To.Earth_agk_512kb.mp4 \ | |
http://localhost:8098/riak/test/fg.mp4 | |
# 89mb FAIL-burger {error,enomem} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment