Skip to content

Commit

Permalink
Merge branch 'release-5.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmp85 committed Jul 7, 2016
2 parents ad3f1f3 + 9116bfb commit 64d9dba
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### citus-docker v5.1.1 (July 7, 2016) ###

* This image now uses repos.citusdata.com (offical Citus package repo)

* Bump Citus version to 5.1.1; improves task tracker and count distinct

* Based on latest PostgreSQL 9.5.3 image and official Citus 5.1.1 package

### citus-docker v5.1.0 (May 17, 2016) ###

* Bump Citus version to 5.1.0; brings COPY, EXPLAIN, and more performance
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
FROM postgres:9.5.3
MAINTAINER Citus Data https://citusdata.com

ENV CITUS_VERSION 5.1.0-1.pgdg80+1
ENV CITUS_VERSION 5.1.1-1

# install Citus
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
&& curl -s https://install.citusdata.com/community/deb.sh | bash \
&& apt-get install -y postgresql-$PG_MAJOR-citus=$CITUS_VERSION \
&& apt-get purge -y --auto-remove ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*

# add citus to default PostgreSQL config
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ If you’re using `docker-machine`, you might want to run `docker-machine ip` to

As with the PostgreSQL image, the default `PGDATA` directory will be mounted as a volume, so it will persist between restarts of the container. But while the above _will_ get you a running Citus instance, it won’t have any workers to exercise distributed query planning. For that, you may wish to try the included [`docker-compose.yml`][compose-config] configuration.

#### Nightly Image

In addition to the `latest` (release) tag and the major-, minor-, and patch-specific tags, the `Dockerfile` in the `nightly` directory builds a tagged image with the latest Citus nightly (from the Citus `master` branch).

### Docker Compose

The included `docker-compose.yml` file provides an easy way to get started with a Citus cluster, complete with multiple workers. Just copy it to your current directory and run:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ version: '2'
services:
master:
container_name: 'citus_master'
image: 'citusdata/citus:5.1.0'
image: 'citusdata/citus:5.1.1'
ports: ['5432:5432']
labels: ['com.citusdata.role=Master']
worker:
image: 'citusdata/citus:5.1.0'
image: 'citusdata/citus:5.1.1'
labels: ['com.citusdata.role=Worker']
config:
container_name: 'citus_config'
Expand Down
12 changes: 12 additions & 0 deletions nightly/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM citusdata/citus:latest
MAINTAINER Citus Data https://citusdata.com

# switch to Citus nightly
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
&& curl -s https://install.citusdata.com/community-nightlies/deb.sh | bash \
&& apt-get install --only-upgrade -y postgresql-$PG_MAJOR-citus \
&& apt-get purge -y --auto-remove ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*
16 changes: 16 additions & 0 deletions nightly/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '2'

services:
master:
container_name: 'citus_master'
image: 'citusdata/citus:nightly'
ports: ['5432:5432']
labels: ['com.citusdata.role=Master']
worker:
image: 'citusdata/citus:nightly'
labels: ['com.citusdata.role=Worker']
config:
container_name: 'citus_config'
image: 'citusdata/workerlist-gen:0.9.0'
volumes: ['/var/run/docker.sock:/tmp/docker.sock']
volumes_from: ['master']
4 changes: 2 additions & 2 deletions tutum.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
master:
image: 'citusdata/citus:5.1.0'
image: 'citusdata/citus:5.1.1'
ports: ['5432:5432']
tags: ['master']
links: ['worker']
deployment_strategy: every_node
worker:
image: 'citusdata/citus:5.1.0'
image: 'citusdata/citus:5.1.1'
target_num_containers: 2
tags: ['worker']
config:
Expand Down

0 comments on commit 64d9dba

Please sign in to comment.