Skip to content

Commit

Permalink
Updated to 1.8.0 Couchbase Server.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyen committed Jan 9, 2012
1 parent 10c948c commit dd6c7fe
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
13 changes: 4 additions & 9 deletions README.md
Expand Up @@ -14,18 +14,13 @@ You can use these scripts with any CloudInit-compatible VM's, via the
"#include" UserData directive. The Default Amazon Linux AMI's on EC2,
for example, are CloudInit-compatible...

* Basic 32-bit Amazon Linux AMI 2011.09 (AMI Id: ami-7f418316)
* Basic 64-bit Amazon Linux AMI 2011.09 (AMI Id: ami-7341831a)
* Basic 32-bit Amazon Linux AMI 2011.09 (AMI Id: ami-31814f58)
* Basic 64-bit Amazon Linux AMI 2011.09 (AMI Id: ami-1b814f72)

When launching your EC2 instance, merely specify a UserData text of...

#include
https://raw.github.com/couchbaselabs/cloud-init/master/membase-server-community_x86_64_1.7.2.rpm.install

Or like...

#include
https://raw.github.com/couchbaselabs/cloud-init/master/couchbase-single-server-community_x86_64_2.0.0-dev-preview-3.rpm.install
https://raw.github.com/couchbaselabs/cloud-init/master/couchbase-server-community_x86_64_1.8.0.rpm.install

The script takes awhile to download the relevant packages, so please
be patient before accessing your server at...
Expand All @@ -39,7 +34,7 @@ be patient before accessing your server at...
* http://aws.amazon.com/articles/2944359479955804

Also, to launch more than just single nodes and instead launch
auto-joined, "N-pack" clusters of Membase servers, please consider the
auto-joined, "N-pack" clusters of Couchbase servers, please consider the
CloudFormation templates at...

* https://github.com/couchbaselabs/cloud-formation
Expand Down
30 changes: 30 additions & 0 deletions couchbase-server-community_x86_64_1.8.0.rpm.install
@@ -0,0 +1,30 @@
#!/bin/bash -ex

COUCHBASE_REST_PASSWORD=password
COUCHBASE_MAX_RAM_MB_PER_SERVER=500
COUCHBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET=500
COUCHBASE_REPLICAS_FOR_DEFAULT_BUCKET=1

yum -y install openssl098e

wget http://packages.couchbase.com/releases/1.8.0/couchbase-server-community_x86_64_1.8.0.rpm

rpm -i couchbase-server-community*.rpm

sleep 5

/opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1 \
--cluster-init-username=Administrator \
--cluster-init-password=${COUCHBASE_REST_PASSWORD} \
--cluster-init-ramsize=${COUCHBASE_MAX_RAM_MB_PER_SERVER}

/opt/couchbase/bin/couchbase-cli bucket-create -c 127.0.0.1 \
-u Administrator -p ${COUCHBASE_REST_PASSWORD} \
--bucket=default \
--bucket-type=couchbase \
--bucket-password= \
--bucket-ramsize=${COUCHBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET} \
--bucket-replica=${COUCHBASE_REPLICAS_FOR_DEFAULT_BUCKET}

# At this point, visit http://$HOST:8091 for the Couchbase web console.

0 comments on commit dd6c7fe

Please sign in to comment.