File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ RUN apt-get update \
17
17
&& apt-get install --no-install-recommends -y postgresql-${PG_SERVER_VERSION}-hypopg-dbgsym \
18
18
&& apt-get install --no-install-recommends -y apt-transport-https \
19
19
&& apt-get install --no-install-recommends -y ca-certificates \
20
+ && apt-get install --no-install-recommends -y git \
20
21
&& apt-get -y --no-install-recommends install curl
21
22
22
23
RUN if [ "${PG_SERVER_VERSION}" = "12" ]; then \
@@ -51,13 +52,21 @@ RUN wget https://github.com/cybertec-postgresql/pg_timetable/releases/download/v
51
52
&& dpkg -i pg_timetable_2.3.0_Linux_x86_64.deb \
52
53
&& rm -rf pg_timetable_2.3.0_Linux_x86_64.deb
53
54
55
+ # add pg_show_plans extension
56
+ RUN git clone https://github.com/cybertec-postgresql/pg_show_plans.git
57
+ WORKDIR /pg_show_plans
58
+ RUN export USE_PGXS=1 && make && make install
59
+ WORKDIR /
60
+
61
+
54
62
# Reduce images size.
55
63
RUN rm -rf /tmp/* \
56
- && apt-get purge -y --auto-remove gcc make wget unzip curl apt-transport-https postgresql-server-dev-${PG_SERVER_VERSION} \
64
+ && apt-get purge -y --auto-remove gcc make wget unzip curl apt-transport-https git postgresql-server-dev-${PG_SERVER_VERSION} \
57
65
&& apt-get clean -y autoclean \
58
66
&& rm -rf /var/lib/apt/lists/* \
67
+ && rm -rf /pg_show_plans \
59
68
# We don't want to use standard pgdata.
60
- && rm -rf /var/lib/postgresql/${PG_SERVER_VERSION}/
69
+ && rm -rf /var/lib/postgresql/${PG_SERVER_VERSION}/
61
70
62
71
EXPOSE 5432
63
72
You can’t perform that action at this time.
0 commit comments