Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated to 1.8.0 Couchbase Server.

  • Loading branch information...
commit dd6c7fe8b703286f78211040b1e79c4cc9fe7fe6 1 parent 10c948c
Steve Yen authored January 09, 2012
13  README.md
Source Rendered
@@ -14,18 +14,13 @@ You can use these scripts with any CloudInit-compatible VM's, via the
14 14
 "#include" UserData directive.  The Default Amazon Linux AMI's on EC2,
15 15
 for example, are CloudInit-compatible...
16 16
 
17  
-* Basic 32-bit Amazon Linux AMI 2011.09 (AMI Id: ami-7f418316)
18  
-* Basic 64-bit Amazon Linux AMI 2011.09 (AMI Id: ami-7341831a)
  17
+* Basic 32-bit Amazon Linux AMI 2011.09 (AMI Id: ami-31814f58)
  18
+* Basic 64-bit Amazon Linux AMI 2011.09 (AMI Id: ami-1b814f72)
19 19
 
20 20
 When launching your EC2 instance, merely specify a UserData text of...
21 21
 
22 22
     #include
23  
-    https://raw.github.com/couchbaselabs/cloud-init/master/membase-server-community_x86_64_1.7.2.rpm.install
24  
-
25  
-Or like...
26  
-
27  
-    #include
28  
-    https://raw.github.com/couchbaselabs/cloud-init/master/couchbase-single-server-community_x86_64_2.0.0-dev-preview-3.rpm.install
  23
+    https://raw.github.com/couchbaselabs/cloud-init/master/couchbase-server-community_x86_64_1.8.0.rpm.install
29 24
 
30 25
 The script takes awhile to download the relevant packages, so please
31 26
 be patient before accessing your server at...
@@ -39,7 +34,7 @@ be patient before accessing your server at...
39 34
 * http://aws.amazon.com/articles/2944359479955804
40 35
 
41 36
 Also, to launch more than just single nodes and instead launch
42  
-auto-joined, "N-pack" clusters of Membase servers, please consider the
  37
+auto-joined, "N-pack" clusters of Couchbase servers, please consider the
43 38
 CloudFormation templates at...
44 39
 
45 40
 * https://github.com/couchbaselabs/cloud-formation
30  couchbase-server-community_x86_64_1.8.0.rpm.install
... ...
@@ -0,0 +1,30 @@
  1
+#!/bin/bash -ex
  2
+
  3
+COUCHBASE_REST_PASSWORD=password
  4
+COUCHBASE_MAX_RAM_MB_PER_SERVER=500
  5
+COUCHBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET=500
  6
+COUCHBASE_REPLICAS_FOR_DEFAULT_BUCKET=1
  7
+
  8
+yum -y install openssl098e
  9
+
  10
+wget http://packages.couchbase.com/releases/1.8.0/couchbase-server-community_x86_64_1.8.0.rpm
  11
+
  12
+rpm -i couchbase-server-community*.rpm
  13
+
  14
+sleep 5
  15
+
  16
+/opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1 \
  17
+  --cluster-init-username=Administrator \
  18
+  --cluster-init-password=${COUCHBASE_REST_PASSWORD} \
  19
+  --cluster-init-ramsize=${COUCHBASE_MAX_RAM_MB_PER_SERVER}
  20
+
  21
+/opt/couchbase/bin/couchbase-cli bucket-create -c 127.0.0.1 \
  22
+  -u Administrator -p ${COUCHBASE_REST_PASSWORD} \
  23
+  --bucket=default \
  24
+  --bucket-type=couchbase \
  25
+  --bucket-password= \
  26
+  --bucket-ramsize=${COUCHBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET} \
  27
+  --bucket-replica=${COUCHBASE_REPLICAS_FOR_DEFAULT_BUCKET}
  28
+
  29
+# At this point, visit http://$HOST:8091 for the Couchbase web console.
  30
+

0 notes on commit dd6c7fe

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