Build Couchbase v4.0rc Cluster using Docker

Environment
– MacOS with boot2docker installed.

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

Command

$ 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 https://hub.docker.com/_/couchbase/
root@ $ ulimit -n 40960
root@ $ ulimit -c unlimited
root@ $ ulimit -l unlimited
# install Couchbase v4.0
root@ $ wget http://packages.couchbase.com/releases/4.0.0-rc0/couchbase-server-community_4.0.0-rc0-ubuntu14.04_amd64.deb
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



Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s