Skip to content

Commit 12044b2

Browse files
committed
fix citus extension install: added postgres version check - only 11 and 12 are supported
1 parent dadf6d2 commit 12044b2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

extended/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,15 @@ RUN echo 'deb https://packagecloud.io/timescale/timescaledb/debian/' `env -i bas
3939
&& apt-get update \
4040
&& apt-get install -y timescaledb-postgresql-${PG_SERVER_VERSION}
4141

42+
4243
# add citus extension
43-
RUN curl -s https://install.citusdata.com/community/deb.sh | bash \
44-
&& apt-get install -y postgresql-${PG_SERVER_VERSION}-citus-${CITUS_VERSION} \
44+
RUN if [ "${PG_SERVER_VERSION}" = "12" ] || [ "${PG_SERVER_VERSION}" = "11" ]; then \
45+
# only 11 and 12 versions are supported by citus
46+
curl -s https://install.citusdata.com/community/deb.sh | bash \
47+
&& apt-get install -y postgresql-${PG_SERVER_VERSION}-citus-${CITUS_VERSION} \
4548
postgresql-${PG_SERVER_VERSION}-hll=2.14.citus-1 \
46-
postgresql-${PG_SERVER_VERSION}-topn=2.3.0
49+
postgresql-${PG_SERVER_VERSION}-topn=2.3.0; \
50+
fi
4751
# add powa extension
4852
RUN apt-get install postgresql-${PG_SERVER_VERSION}-powa
4953

0 commit comments

Comments
 (0)