File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
ARG PG_SERVER_VERSION=11
2
+ ARG CITUS=9.4
2
3
3
4
FROM postgres:${PG_SERVER_VERSION}
4
5
5
6
ARG PG_SERVER_VERSION
6
7
ENV PG_SERVER_VERSION=${PG_SERVER_VERSION:-12}
8
+ ENV CITUS_VERSION=9.4
7
9
8
10
RUN apt-get update \
9
11
&& apt-get install --no-install-recommends -y wget make gcc unzip sudo \
@@ -12,7 +14,8 @@ RUN apt-get update \
12
14
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg \
13
15
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg-dbgsym \
14
16
&& 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
16
19
17
20
RUN if [ "${PG_SERVER_VERSION}" = "12" ]; then \
18
21
# 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
33
36
&& apt-get update \
34
37
&& apt-get install -y timescaledb-postgresql-${PG_SERVER_VERSION}
35
38
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
36
44
# Reduce images size.
37
45
RUN rm -rf /tmp/* \
38
46
&& apt-get purge -y --auto-remove \
You can’t perform that action at this time.
0 commit comments