Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ LABEL maintainer="Citus Data https://citusdata.com" \
ENV CITUS_VERSION ${VERSION}.citus-1

# install Citus
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
ca-certificates=* \
curl=* \
&& curl -s https://install.citusdata.com/community/deb.sh | bash \
&& apt-get install -y postgresql-$PG_MAJOR-citus-14.0=$CITUS_VERSION \
postgresql-$PG_MAJOR-hll=2.19.citus-1 \
postgresql-$PG_MAJOR-topn=2.7.0.citus-1 \
&& apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR-citus-14.0=$CITUS_VERSION" \
"postgresql-$PG_MAJOR-hll=2.19.citus-1" \
"postgresql-$PG_MAJOR-topn=2.7.0.citus-1" \
&& apt-get purge -y --auto-remove curl \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -33,10 +34,10 @@ COPY 001-create-citus-extension.sql /docker-entrypoint-initdb.d/

# add health check script
COPY pg_healthcheck wait-for-manager.sh /
RUN chmod +x /wait-for-manager.sh
RUN chmod +x /wait-for-manager.sh \
&& sed "/unset PGPASSWORD/d" -i /usr/local/bin/docker-entrypoint.sh

# entry point unsets PGPASSWORD, but we need it to connect to workers
# https://github.com/docker-library/postgres/blob/33bccfcaddd0679f55ee1028c012d26cd196537d/12/docker-entrypoint.sh#L303
RUN sed "/unset PGPASSWORD/d" -i /usr/local/bin/docker-entrypoint.sh

HEALTHCHECK --interval=4s --start-period=6s CMD ./pg_healthcheck
5 changes: 3 additions & 2 deletions nightly/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ LABEL maintainer="Citus Data https://citusdata.com" \
org.label-schema.schema-version="1.0"

# Perform prerequisites for Citus Nightly Installation
RUN apt-key del 1530DF18 \
&& rm -rf /etc/apt/sources.list.d/citusdata_community.list \
RUN rm -f /etc/apt/keyrings/citusdata_community-archive-keyring.gpg \
/etc/apt/trusted.gpg.d/citusdata_community.gpg \
/etc/apt/sources.list.d/citusdata_community.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
Expand Down
1 change: 0 additions & 1 deletion pkgvars
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
postgres_18_version=18.1
postgres_17_version=17.6
postgres_16_version=16.10
postgres_14_version=14.15

Loading