Commits

Anonymous committed 45d9165

Added the steps I took to setup an amazon ami

Comments (0)

Files changed (1)

tools/amazon_linux_setup.txt

+# Setup an Amazon Linux AMI instance to run a Manos de Mono webserver and some Riak nodes.
+#
+
+# we'll need these
+sudo yum install git
+sudo yum install hg
+
+# add mono to the yum repos /etc/yum.repos.d
+[Mono]
+name=Mono Stack (RHEL_5)
+type=rpm-md
+baseurl=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/
+gpgcheck=1
+gpgkey=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/repodata/repomd.xml.key
+enabled=1
+
+sudo yum clean all
+
+# install mono
+sudo yum install libtool
+sudo yum install monotools-addon-server
+sudo cp /opt/novell/mono/bin/mono-addon-environment.sh /etc/profile.d
+sudo yum install mono-addon-devel
+
+# install stuff to build erlang
+sudo yum install make
+sudo yum install openssl098e
+sudo yum install gcc gcc-c++ glibc-devel glibc-devel ncurses-devel openssl-devel
+
+# install erlang, not sure why I didn't install 14
+wget http://erlang.org/download/otp_src_R13B04.tar.gz
+tar zxvf otp_src_R13B04.tar.gz
+cd otp_src_R13B04
+./configure && make 
+sudo make install
+
+# install riak
+wget http://downloads.basho.com/riak/riak-0.14/riak-0.14.2.tar.gz
+tar zxvf riak-0.14.2.tar.gz
+cd riak-0.14.2
+make rel
+
+# make a basic dev setup 
+# http://wiki.basho.com/Building-a-Development-Environment.html
+make devrel
+
+# start the clusters!
+cd dev
+dev1/bin/riak start
+dev2/bin/riak start
+dev3/bin/riak start
+
+# link them up
+dev2/bin/riak-admin join dev1@127.0.0.1
+dev3/bin/riak-admin join dev1@127.0.0.1
+
+# install manos
+git clone https://jacksonh@github.com/jacksonh/manos.git
+cd monos && ./autogen.sh
+make
+sudo make install
+# needed to export this path to build manos projects with make
+export set PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
+
+# install manosyakriak
+hg clone https://tarnacious@bitbucket.org/tarnacious/manosyakriak
+cd manosyakriak
+make 
+make && run