Skip to content

Commit 63ecf3a

Browse files
author
Ubuntu
committed
added citus extension support
1 parent 16fd39e commit 63ecf3a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

extended/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
ARG PG_SERVER_VERSION=11
2+
ARG CITUS=9.4
23

34
FROM postgres:${PG_SERVER_VERSION}
45

56
ARG PG_SERVER_VERSION
67
ENV PG_SERVER_VERSION=${PG_SERVER_VERSION:-12}
8+
ENV CITUS_VERSION=9.4
79

810
RUN apt-get update \
911
&& apt-get install --no-install-recommends -y wget make gcc unzip sudo \
@@ -12,7 +14,8 @@ RUN apt-get update \
1214
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg \
1315
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg-dbgsym \
1416
&& apt-get install --no-install-recommends -y apt-transport-https \
15-
&& apt-get install --no-install-recommends -y ca-certificates
17+
&& apt-get install --no-install-recommends -y ca-certificates \
18+
&& apt-get -y --no-install-recommends install curl
1619

1720
RUN if [ "${PG_SERVER_VERSION}" = "12" ]; then \
1821
# pg_hint_plan for Postgres 12 does not supported yet, use master: https://github.com/ossc-db/pg_hint_plan/issues/37
@@ -33,6 +36,11 @@ RUN echo 'deb https://packagecloud.io/timescale/timescaledb/debian/' `env -i bas
3336
&& apt-get update \
3437
&& apt-get install -y timescaledb-postgresql-${PG_SERVER_VERSION}
3538

39+
# add citus extension
40+
RUN curl -s https://install.citusdata.com/community/deb.sh | bash \
41+
&& apt-get install -y postgresql-${PG_SERVER_VERSION}-citus-${CITUS_VERSION} \
42+
postgresql-${PG_SERVER_VERSION}-hll=2.14.citus-1 \
43+
postgresql-${PG_SERVER_VERSION}-topn=2.3.0
3644
# Reduce images size.
3745
RUN rm -rf /tmp/* \
3846
&& apt-get purge -y --auto-remove \

0 commit comments

Comments
 (0)