Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Docker Demo Setup on localhost

Felix Hupfeld edited this page Mar 19, 2015 · 4 revisions

Docker Demo Setup on localhost

This describes the steps necessary to run a complete non-replicated Quobyte instance in containers on localhost.

Device preparation

First we prepare three empty dummy devices:

mkdir -p /mnt/disk1 /mnt/disk2 /mnt/disk3
sudo mkdir -p /tmp/mnt/disk1  /tmp/mnt/disk2  /tmp/mnt/disk3

sudo mount --bind /tmp/mnt/disk1 /mnt/disk1

sudo chmod -R a+rwx /mnt/disk*

Then we initialize them as registry, metadata and data devices:

sudo qbootstrap /mnt/disk1
qmkdev -s x -t METADATA /mnt/disk2
qmkdev -s x -t DATA /mnt/disk3

Building the service container

Then we build a Docker container for the Quobyte services. First replace QUOBYTE_REPO_ID in the Dockerfile with your id from your support.quobyte.com package repository URL. Then build:

git clone https://github.com/quobyte/quobyte-automation.git
cd quobyte-automation/docker
sudo docker build  -t quobyte-service .

Startup

Find out your IP address (we assume 192.168.1.250) and prepare the env for further steps:

export QUOBYTE_REGISTRY=192.168.1.250:12345

Then start registry, metadata, and data service and a webconsole:

QUOBYTE_SERVICE=registry QUOBYTE_RPC_PORT=12345 QUOBYTE_HTTP_PORT=12346 ./run.sh

QUOBYTE_SERVICE=metadata QUOBYTE_RPC_PORT=12347 QUOBYTE_HTTP_PORT=12348 ./run.sh

QUOBYTE_SERVICE=data QUOBYTE_RPC_PORT=12349 QUOBYTE_HTTP_PORT=12350 ./run.sh

QUOBYTE_SERVICE=webconsole QUOBYTE_RPC_PORT=12351 QUOBYTE_HTTP_PORT=12352 QUOBYTE_WEBCONSOLE_PORT=12340 ./run.sh

Play!

The stack is now running. You can now login on http://localhost:12340/ with admin:quobyte. Create a volume in the Volumes tab. You can mount it then like so:

mount.quobyte 192.168.1.250:12345/<volumename> mnt