Skip to content

Commit 16fd39e

Browse files
author
Ubuntu
committed
added timescaledb extension
1 parent 5edef90 commit 16fd39e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

extended/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PG_SERVER_VERSION=12
1+
ARG PG_SERVER_VERSION=11
22

33
FROM postgres:${PG_SERVER_VERSION}
44

@@ -11,7 +11,8 @@ RUN apt-get update \
1111
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-repack \
1212
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg \
1313
&& 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
1516

1617
RUN if [ "${PG_SERVER_VERSION}" = "12" ]; then \
1718
# 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 \
2627
&& make && make install || echo "[WARNING] pg_hint_plan extension not found"; \
2728
fi
2829

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+
2936
# Reduce images size.
3037
RUN rm -rf /tmp/* \
3138
&& apt-get purge -y --auto-remove \

0 commit comments

Comments
 (0)