citusdata/citus-docker

Name: citus-docker

Owner: Citus Data

Description: Docker image for CitusDB

Forked from: heap/citus-docker

Created: 2016-03-03 18:58:58.0

Updated: 2016-04-04 20:56:25.0

Pushed: 2016-04-04 16:07:34.0

Homepage: https://registry.hub.docker.com/u/heap/citus-docker/

Size: 12

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

citus-docker

Dockerfile for CitusDB, sharded scalable postgresql database.

How to use this image

The image is based off of the official postgres image and supports the same options.

In addition, new environment variables have been added:

CITUS_MASTER denotes that this instance is the citus master node. All citus workers should be linked to this container (and should contain citus in their name).

CITUS_STANDALONE marks a citus master as a worker as well.

Testing the image

The image defined in this repo can be tested using docker compose.

To launch a citus cluster with a master node and 2 workers:

For an example for setting up a distributed table and on how to run queries on it, see CitusData docs: Examples with Sample Data.

These commands should be run from inside your docker instance:

cker exec -it citusdocker_citusmaster_1 bash
@9f7103615071:/# apt-get update; apt-get install -y wget
@9f7103615071:/# wget http://examples.citusdata.com/customer_reviews_1998.csv.gz
@9f7103615071:/# wget http://examples.citusdata.com/customer_reviews_1999.csv.gz
@9f7103615071:/# gzip -d *.csv.gz
@9f7103615071:/# psql
llow the rest of the guide from here

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.