Skip to content

Commit

Permalink
Switch to Citus-owned package repo
Browse files Browse the repository at this point in the history
Rebuilding older tags is impossible if we use PGDG, which doesn't (yet)
retain previous package versions. By using our packagecloud.io repo, we
can ensure tags remain buildable as long as we keep the packages.
  • Loading branch information
jasonmp85 committed Jul 7, 2016
1 parent 111407c commit b1ea61e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
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.0-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
14 changes: 6 additions & 8 deletions nightly/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM citusdata/citus:latest
MAINTAINER Citus Data https://citusdata.com

# install citus nightly from packagecloud
# switch to Citus nightly
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl \
&& curl -s -O \
https://packagecloud.io/install/repositories/citusdata/community-nightlies/script.deb.sh \
&& chmod +x script.deb.sh \
&& ./script.deb.sh \
&& rm -f script.deb.sh \
&& apt-get install -y postgresql-9.5-citus \
&& 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/*

0 comments on commit b1ea61e

Please sign in to comment.