Skip to content

Commit

Permalink
Merge branch 'release-6.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmp85 committed Feb 10, 2017
2 parents a861d11 + 12780be commit e1fd056
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 12 deletions.
7 changes: 1 addition & 6 deletions 000-symlink-workerlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,4 @@ workerlist=pg_worker_list.conf
citusconfdir=/etc/citus
externalworkerlist="$citusconfdir/$workerlist"

# create worker list file if it doesn't exist
touch "$externalworkerlist"

# ensure permissions, then symlink to datadir
chown postgres:postgres "$externalworkerlist"
gosu postgres ln -s "$externalworkerlist" "$PGDATA/$workerlist"
ln -s "$externalworkerlist" "$PGDATA/$workerlist"
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### citus-docker v6.1.0 (February 10, 2017) ###

* Bump Citus version to 6.1.0

* Based on latest PostgreSQL 9.6.2 image and official Citus 6.1.0 package

* Fixes to address breakage from recent postgres image changes

### citus-docker v6.0.1 (December 1, 2016) ###

* Bump Citus version to 6.0.1
Expand Down
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM postgres:9.6.1
FROM postgres:9.6.2
MAINTAINER Citus Data https://citusdata.com

ENV CITUS_VERSION 6.0.1.citus-1
ENV CITUS_VERSION 6.1.0.citus-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 install -y postgresql-$PG_MAJOR-citus-6.1=$CITUS_VERSION \
&& apt-get purge -y --auto-remove curl \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -19,5 +19,11 @@ RUN echo "shared_preload_libraries='citus'" >> /usr/share/postgresql/postgresql.
# add scripts to run after initdb
COPY 000-symlink-workerlist.sh 001-create-citus-extension.sql /docker-entrypoint-initdb.d/

# add our wrapper entrypoint script
COPY citus-entrypoint.sh /

# expose workerlist via volume
VOLUME /etc/citus

ENTRYPOINT ["/citus-entrypoint.sh"]
CMD ["postgres"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ You can stop your stack with `docker-cloud stack terminate citus-cloud`.

The following license information (and associated [LICENSE][license] file) apply _only to the files within **this** repository_. Please consult Citus’s own repository for information regarding its licensing.

Copyright © 2016 Citus Data, Inc.
Copyright © 2016–2017 Citus Data, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Expand Down
19 changes: 19 additions & 0 deletions citus-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# make bash behave
set -euo pipefail
IFS=$'\n\t'

# constants
workerlist=pg_worker_list.conf
citusconfdir=/etc/citus
externalworkerlist="$citusconfdir/$workerlist"

# create worker list file if it doesn't exist
touch "$externalworkerlist"

# ensure permissions, then symlink to datadir
chown postgres:postgres "$externalworkerlist"

# call PostgreSQL's ENTRYPOINT script
exec '/docker-entrypoint.sh' "$@"
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ version: '2'
services:
master:
container_name: 'citus_master'
image: 'citusdata/citus:6.0.1'
image: 'citusdata/citus:6.1.0'
ports: ['5432:5432']
labels: ['com.citusdata.role=Master']
volumes: ['/var/run/postgresql']
worker:
image: 'citusdata/citus:6.0.1'
image: 'citusdata/citus:6.1.0'
labels: ['com.citusdata.role=Worker']
config:
container_name: 'citus_config'
Expand Down

0 comments on commit e1fd056

Please sign in to comment.