Build Couchbase v4.0rc Cluster using Docker

– MacOS with boot2docker installed.

– 3 docker VM running Couchbase v4.0 to form a Couchbase cluster


$ boot2docker up
$ docker pull ubuntu
# start a vm to build a template
$ docker run -h couchbase-template --name couchbase-template -i -t ubuntu /bin/bash

# inside the vm couchbase-template
root@ $ apt-get update
root@ $ apt-get install openssh-server

# setup for docker as recommended here
root@ $ ulimit -n 40960
root@ $ ulimit -c unlimited
root@ $ ulimit -l unlimited

# install Couchbase v4.0
root@ $ wget
root@ $ dpkg -i couchbase-server-community_4.0.0-rc0-ubuntu14.04_amd64.deb
root@ $ ps -ef | grep couchbase

## confirm that couchbase processes are running.
root@ $ exit

# Commit your change
$ docker commit -m "Build Couchbase 4.0rc" -a "Your Name" {container ID} {dockerhubUsername}/couchbase:v4.0rc

# login to your dockerhub account
$ docker login
Username: yourname
Password: yourpw
Email: youremail

# then push the image
$ docker push {dockerhubUsername}/couchbase


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s