Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
* note about preview repositories for libcouchbase
* mention bootstrapping using multiple nodes

Change-Id: Ieb14903e736cb6aaa3ee7073f652399aa7950c8c
Reviewed-on: http://review.couchbase.org/17556
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Chris Anderson <jchris@couchbase.com>
  • Loading branch information
avsej authored and Chris Anderson committed Jun 26, 2012
1 parent 09f7e7f commit b471d5a
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion README.markdown
Expand Up @@ -18,9 +18,15 @@ libcouchbase doesn't take much effort.

$ brew install libcouchbase

The official homebrew repository contains only stable versions of
libvbucket and libcouchbase, if you need preview, take a look at
Couchbase's fork: https://github.com/couchbase/homebrew

$ brew install https://raw.github.com/couchbase/homebrew/preview/Library/Formula/libcouchbase.rb

### Debian (Ubuntu)

Add the appropriate line to /etc/apt/sources.list.d/couchbase.list for
Add the appropriate line to `/etc/apt/sources.list.d/couchbase.list` for
your OS release:

# Ubuntu 11.10 Oneiric Ocelot (Debian unstable)
Expand All @@ -37,6 +43,15 @@ Then install them

$ sudo apt-get update && sudo apt-get install libcouchbase-dev

Again, if you need preview versions, just use another repositories in
your `couchbase.list`

# Ubuntu 11.10 Oneiric Ocelot (Debian unstable)
deb http://packages.couchbase.com/preview/ubuntu oneiric oneiric/main

# Ubuntu 10.04 Lucid Lynx (Debian stable or testing)
deb http://packages.couchbase.com/preview/ubuntu lucid lucid/main

### Centos (Redhat and rpm-based systems)

Add these lines to /etc/yum.repos.d/couchbase.repo using the correct architecture
Expand All @@ -53,6 +68,17 @@ Then to install libcouchbase itself, run:

$ sudo yum update && sudo yum install libcouchbase-devel

We have preview repositories for RPMs too, use them if you need to try
fresh version of couchbase gem:

[couchbase]
name = Couchbase package repository
baseurl = http://packages.couchbase.com/preview/rpm/5.5/i386

[couchbase]
name = Couchbase package repository
baseurl = http://packages.couchbase.com/preview/rpm/5.5/x86_64

### Windows

There no additional dependencies for Windows systems. The gem carry
Expand Down Expand Up @@ -89,6 +115,14 @@ This is equivalent to following forms:

The hash parameters take precedence on string URL.

If you worry about state of your nodes or not sure what node is alive,
you can pass the list of nodes and the library will iterate over it
until finds the working one. From that moment it won't use **your**
list, because node list from cluster config is more actual.

c = Couchbase.connect(:bucket => "mybucket",
:node_list => ['example.com:8091', example.net'])

There is also handy method `Couchbase.bucket` which uses thread local
storage to keep the reference to default connection. You can set the
connection options via `Couchbase.connection_options`:
Expand Down

0 comments on commit b471d5a

Please sign in to comment.