Skip to content

Commit 5192bc2

Browse files
committed
add postgresql_anonymizer extension support
1 parent d746ba5 commit 5192bc2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

extended/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PG_SERVER_VERSION=9.6
1+
ARG PG_SERVER_VERSION=11
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\
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 \
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 \
@@ -61,9 +61,12 @@ WORKDIR /
6161
# add pg_cron extension
6262
RUN apt-get -y install postgresql-${PG_SERVER_VERSION}-cron
6363

64+
# add postgresql_anonymizer extension
65+
RUN pgxn install ddlx && pgxn install postgresql_anonymizer
66+
6467
# Reduce images size.
6568
RUN rm -rf /tmp/* \
66-
&& apt-get purge -y --auto-remove gcc make wget unzip curl libc6-dev apt-transport-https git postgresql-server-dev-${PG_SERVER_VERSION} \
69+
&& 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 \
6770
&& apt-get clean -y autoclean \
6871
&& rm -rf /var/lib/apt/lists/* \
6972
&& rm -rf /pg_show_plans \

0 commit comments

Comments
 (0)