File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,20 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/partial \
38
38
&& cd /tmp/pg_hint_plan-PG${PG_PLAN_HINT_VERSION} \
39
39
&& make && make install \
40
40
# timescaledb extension
41
- && echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" > /etc/apt/sources.list.d/timescaledb.list \
42
- && wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo apt-key add - \
43
- && apt-get update \
44
- && apt install -y timescaledb-2-postgresql-${PG_SERVER_VERSION} \
41
+ && if [ $(echo "$PG_SERVER_VERSION < 11" | /usr/bin/bc) = "1" ]; then \
42
+ echo 'deb https://packagecloud.io/timescale/timescaledb/debian/' \
43
+ $(env -i bash -c '. /etc/os-release; echo ${VERSION_CODENAME}' ) \
44
+ 'main' > /etc/apt/sources.list.d/timescaledb.list \
45
+ && wget --quiet -O - \
46
+ https://packagecloud.io/timescale/timescaledb/gpgkey | sudo apt-key add - \
47
+ && apt-get update \
48
+ && apt-get install -y timescaledb-postgresql-${PG_SERVER_VERSION}; \
49
+ else \
50
+ echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" > /etc/apt/sources.list.d/timescaledb.list \
51
+ && wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo apt-key add - \
52
+ && apt-get update \
53
+ && apt install -y timescaledb-2-postgresql-${PG_SERVER_VERSION}; \
54
+ fi \
45
55
# powa extension
46
56
&& apt-get install postgresql-${PG_SERVER_VERSION}-powa \
47
57
# pgaudit extension
You can’t perform that action at this time.
0 commit comments