Skip to content
Browse files

Membase install scripts

  • Loading branch information...
1 parent 23c97f5 commit e2db9cbfd1f939f9d3947ead6f1865bfb40e6d0b @steveyen steveyen committed Jul 14, 2011
Showing with 36 additions and 0 deletions.
  1. +36 −0 membase-server-community_x86_64_1.7.0.rpm.install
View
36 membase-server-community_x86_64_1.7.0.rpm.install
@@ -0,0 +1,36 @@
+#!/bin/bash -ex
+
+# Install script for membase-server.
+#
+# You can use this script as a CloudInit "#include" file on Amazon EC2.
+# The Default Amazon Linux AMI, for example, is CloudInit-capapble...
+#
+# Basic 64-bit Amazon Linux AMI 2011.02.1 Beta (AMI Id: ami-8e1fece7)
+#
+# When launching your EC2 instance, specify a UserData of...
+#
+# #include
+# https://raw.github.com/couchbaselabs/cloud-init/master/membase-server-community_x86_64_1.7.0.rpm.install
+#
+PASSWORD=password
+export PASSWORD
+
+yum -y install openssl098e
+
+wget http://packages.couchbase.com/releases/1.7.0/membase-server-community_x86_64_1.7.0.rpm
+
+rpm -i membase-server-community*.rpm
+
+/opt/membase/bin/membase cluster-init -c 127.0.0.1 \
+ --cluster-init-username=Administrator \
+ --cluster-init-password=${PASSWORD} \
+ --cluster-init-ramsize=500
+
+/opt/membase/bin/membase bucket-create -c 127.0.0.1 \
+ -u Administrator -p ${PASSWORD} \
+ --bucket=default \
+ --bucket-type=membase \
+ --bucket-password= \
+ --bucket-ramsize=500 \
+ --bucket-replica=1
+

0 comments on commit e2db9cb

Please sign in to comment.
Something went wrong with that request. Please try again.