Skip to content

Commit d4f4ecb

Browse files
committed
add pg_mon extension support
1 parent e6ce9d2 commit d4f4ecb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

extended/Dockerfile

Lines changed: 5 additions & 3 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,7 +10,7 @@ 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 git curl libc6-dev apt-transport-https ca-certificates pgxnclient build-essential \
13+
&& apt-get install --no-install-recommends -y wget make gcc unzip sudo git curl libc6-dev apt-transport-https ca-certificates pgxnclient build-essential libevent-dev \
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 \
@@ -71,10 +71,12 @@ RUN apt-get install postgresql-${PG_SERVER_VERSION}-pg-stat-kcache
7171
#add pg_qualstats extension
7272
RUN apt-get install postgresql-${PG_SERVER_VERSION}-pg-qualstats
7373

74+
#bg_mon pg_mon extension
75+
RUN git clone https://github.com/CyberDem0n/bg_mon.git && cd bg_mon && USE_PGXS=1 make && USE_PGXS=1 make install
7476

7577
# Reduce images size.
7678
RUN rm -rf /tmp/* \
77-
&& apt-get purge -y --auto-remove gcc make wget unzip curl libc6-dev apt-transport-https git postgresql-server-dev-${PG_SERVER_VERSION} pgxnclient build-essential \
79+
&& apt-get purge -y --auto-remove gcc make wget unzip curl libc6-dev apt-transport-https git postgresql-server-dev-${PG_SERVER_VERSION} pgxnclient build-essential libevent-dev \
7880
&& apt-get clean -y autoclean \
7981
&& rm -rf /var/lib/apt/lists/* \
8082
&& rm -rf /pg_show_plans \

0 commit comments

Comments
 (0)