File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
- ARG PG_SERVER_VERSION=12
1
+ ARG PG_SERVER_VERSION=11
2
2
3
3
FROM postgres:${PG_SERVER_VERSION}
4
4
@@ -11,7 +11,8 @@ RUN apt-get update \
11
11
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-repack \
12
12
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg \
13
13
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg-dbgsym \
14
- && rm -rf /var/lib/apt/lists/*
14
+ && apt-get install --no-install-recommends -y apt-transport-https \
15
+ && apt-get install --no-install-recommends -y ca-certificates
15
16
16
17
RUN if [ "${PG_SERVER_VERSION}" = "12" ]; then \
17
18
# pg_hint_plan for Postgres 12 does not supported yet, use master: https://github.com/ossc-db/pg_hint_plan/issues/37
@@ -26,6 +27,12 @@ RUN if [ "${PG_SERVER_VERSION}" = "12" ]; then \
26
27
&& make && make install || echo "[WARNING] pg_hint_plan extension not found" ; \
27
28
fi
28
29
30
+ # add timescaledb extension
31
+ RUN echo 'deb https://packagecloud.io/timescale/timescaledb/debian/' `env -i bash -c '. /etc/os-release; echo $VERSION_CODENAME' ` 'main' > /etc/apt/sources.list.d/timescaledb.list \
32
+ && wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo apt-key add - \
33
+ && apt-get update \
34
+ && apt-get install -y timescaledb-postgresql-${PG_SERVER_VERSION}
35
+
29
36
# Reduce images size.
30
37
RUN rm -rf /tmp/* \
31
38
&& apt-get purge -y --auto-remove \
You can’t perform that action at this time.
0 commit comments