Skip to content

Commit d746ba5

Browse files
committed
fix pg_hint_plans extension install for 9.6 and 10
1 parent 12044b2 commit d746ba5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

extended/Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PG_SERVER_VERSION=11
1+
ARG PG_SERVER_VERSION=9.6
22
ARG CITUS=9.4
33

44
FROM postgres:${PG_SERVER_VERSION}
@@ -10,15 +10,11 @@ ENV PG_SERVER_VERSION=${PG_SERVER_VERSION:-12}
1010
ENV CITUS_VERSION=9.4
1111

1212
RUN apt-get update \
13-
&& apt-get install --no-install-recommends -y wget make gcc unzip sudo \
13+
&& apt-get install --no-install-recommends -y wget make gcc unzip sudo git curl libc6-dev apt-transport-https ca-certificates\
1414
&& apt-get install --no-install-recommends -y postgresql-server-dev-${PG_SERVER_VERSION} \
1515
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-repack \
1616
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg \
17-
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg-dbgsym \
18-
&& apt-get install --no-install-recommends -y apt-transport-https \
19-
&& apt-get install --no-install-recommends -y ca-certificates \
20-
&& apt-get install --no-install-recommends -y git \
21-
&& apt-get -y --no-install-recommends install curl
17+
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg-dbgsym
2218

2319
RUN if [ "${PG_SERVER_VERSION}" = "12" ]; then \
2420
# pg_hint_plan for Postgres 12 does not supported yet, use master: https://github.com/ossc-db/pg_hint_plan/issues/37
@@ -67,7 +63,7 @@ RUN apt-get -y install postgresql-${PG_SERVER_VERSION}-cron
6763

6864
# Reduce images size.
6965
RUN rm -rf /tmp/* \
70-
&& apt-get purge -y --auto-remove gcc make wget unzip curl apt-transport-https git postgresql-server-dev-${PG_SERVER_VERSION} \
66+
&& apt-get purge -y --auto-remove gcc make wget unzip curl libc6-dev apt-transport-https git postgresql-server-dev-${PG_SERVER_VERSION} \
7167
&& apt-get clean -y autoclean \
7268
&& rm -rf /var/lib/apt/lists/* \
7369
&& rm -rf /pg_show_plans \

0 commit comments

Comments
 (0)