Skip to content

Commit

Permalink
Seperates prerequisite steps from citus install
Browse files Browse the repository at this point in the history
  • Loading branch information
gurkanindibay committed Sep 24, 2021
1 parent 30c55ee commit 5d5ef97
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ LABEL maintainer="Citus Data https://citusdata.com" \

ENV CITUS_VERSION ${VERSION}.citus-1

# install Citus
# install Citus dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
&& curl -s https://install.citusdata.com/community/deb.sh | bash \
curl

# install Citus
RUN curl -s https://install.citusdata.com/community/deb.sh | bash \
&& apt-get install -y postgresql-$PG_MAJOR-citus-10.2=$CITUS_VERSION \
postgresql-$PG_MAJOR-hll=2.15.citus-1 \
postgresql-$PG_MAJOR-topn=2.3.1 \
Expand Down
10 changes: 6 additions & 4 deletions nightly/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ LABEL maintainer="Citus Data https://citusdata.com" \
org.label-schema.version="Nightly" \
org.label-schema.schema-version="1.0"

# switch to Citus nightly
# Perform pre requisites for Citus Nightly Installation
RUN apt-key del 1530DF18 \
&& rm -rf /etc/apt/sources.list.d/citusdata_community.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
&& curl -s https://install.citusdata.com/community-nightlies/deb.sh | bash \
curl

# Install Citus nightly
RUN curl -s https://install.citusdata.com/community-nightlies/deb.sh | bash \
&& apt-get install -y postgresql-$PG_MAJOR-citus \
&& apt-get purge -y --auto-remove curl \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*
8 changes: 5 additions & 3 deletions postgres-12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ LABEL maintainer="Citus Data https://citusdata.com" \

ENV CITUS_VERSION ${VERSION}.citus-1

# install Citus
# install Citus dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
&& curl -s https://install.citusdata.com/community/deb.sh | bash \
curl

# install Citus
RUN curl -s https://install.citusdata.com/community/deb.sh | bash \
&& apt-get install -y postgresql-$PG_MAJOR-citus-10.2=$CITUS_VERSION \
postgresql-$PG_MAJOR-hll=2.15.citus-1 \
postgresql-$PG_MAJOR-topn=2.3.1 \
Expand Down
6 changes: 4 additions & 2 deletions postgres-14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ RUN apt-get update && apt-get install -y lsb-release apt-utils wget curl gnupg2
&& apt-get purge -y --auto-remove curl \
&& rm -rf /var/lib/apt/lists/*

# install Citus
# install Citus dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
&& curl -s https://install.citusdata.com/community/deb.sh | bash \

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

0 comments on commit 5d5ef97

Please sign in to comment.