Commit 192af3ca authored by Luis Llave [Vauxoo]'s avatar Luis Llave [Vauxoo] 💬
Browse files

[ADD] Add sentences for install postgresql anonymizer extension

parent e1b6f834
Pipeline #157511 passed with stage
in 1 minute and 4 seconds
FROM postgres:9.6
ENV LC_COLLATE "C"
RUN apt-get update \
&& apt-get install -yq postgis postgresql-9.6-postgis-scripts \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
&& apt-get install -yq postgis postgresql-9.6-postgis-scripts pgxnclient build-essential postgresql-server-dev-9.6 \
&& apt-get clean && pgxn install postgresql_anonymizer && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /etc/postgresql/
COPY ./postgresql.conf /etc/postgresql/postgresql.conf
COPY ./00-create_users.sql /docker-entrypoint-initdb.d/00-create_users.sql
......
......@@ -3,5 +3,6 @@ ENV LC_COLLATE "C"
RUN mkdir -p /etc/postgresql/
COPY ./postgresql.conf /etc/postgresql/postgresql.conf
RUN chown postgres:postgres -R /etc/postgresql
RUN apk add alpine-sdk python3 py3-pip && pip3 install pgxnclient && pgxn install --stable postgresql_anonymizer
CMD ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
......@@ -6,6 +6,7 @@ COPY ./postgresql.conf /etc/postgresql/postgresql.conf
COPY ./pg_hba.conf /etc/postgresql/pg_hba.conf
COPY ./10-pgbadger_pre.conf /etc/postgresql/conf.d/10-pgbadger_pre.conf
COPY ./entry_point.sh /entry_point.sh
RUN apk add alpine-sdk python3 py3-pip && pip3 install pgxnclient && pgxn install --stable postgresql_anonymizer
VOLUME ["/var/log/pg_log", "/var/lib/postgresql/data/pgdata"]
ENTRYPOINT ["/entry_point.sh"]
......@@ -6,6 +6,7 @@ COPY ./postgresql.conf /etc/postgresql/postgresql.conf
COPY ./pg_hba.conf /etc/postgresql/pg_hba.conf
COPY ./10-pgbadger_pre.conf /etc/postgresql/conf.d/10-pgbadger_pre.conf
COPY ./entry_point.sh /entry_point.sh
RUN apk add alpine-sdk python3 py3-pip && pip3 install pgxnclient && pgxn install --stable postgresql_anonymizer
VOLUME ["/var/log/pg_log", "/var/lib/postgresql/data/pgdata"]
ENTRYPOINT ["/entry_point.sh"]
......@@ -3,5 +3,6 @@ ENV LC_COLLATE "C"
RUN mkdir -p /etc/postgresql/
COPY ./postgresql.conf /etc/postgresql/postgresql.conf
RUN chown postgres:postgres -R /etc/postgresql
RUN apk add alpine-sdk clang llvm python3 py3-pip && pip3 install pgxnclient && pgxn install --stable postgresql_anonymizer
CMD ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
......@@ -6,6 +6,7 @@ COPY ./postgresql.conf /etc/postgresql/postgresql.conf
COPY ./pg_hba.conf /etc/postgresql/pg_hba.conf
COPY ./10-pgbadger_pre.conf /etc/postgresql/conf.d/10-pgbadger_pre.conf
COPY ./entry_point.sh /entry_point.sh
RUN apk add alpine-sdk clang llvm python3 py3-pip && pip3 install pgxnclient && pgxn install --stable postgresql_anonymizer
VOLUME ["/var/log/pg_log", "/var/lib/postgresql/data/pgdata"]
ENTRYPOINT ["/entry_point.sh"]
......@@ -6,6 +6,7 @@ COPY ./postgresql.conf /etc/postgresql/postgresql.conf
COPY ./pg_hba.conf /etc/postgresql/pg_hba.conf
COPY ./10-pgbadger_pre.conf /etc/postgresql/conf.d/10-pgbadger_pre.conf
COPY ./entry_point.sh /entry_point.sh
RUN apk add alpine-sdk clang llvm python3 py3-pip && pip3 install pgxnclient && pgxn install --stable postgresql_anonymizer
VOLUME ["/var/log/pg_log", "/var/lib/postgresql/data/pgdata"]
ENTRYPOINT ["/entry_point.sh"]
......@@ -6,6 +6,7 @@ COPY ./postgresql.conf /etc/postgresql/postgresql.conf
COPY ./pg_hba.conf /etc/postgresql/pg_hba.conf
COPY ./10-pgbadger_pre.conf /etc/postgresql/conf.d/10-pgbadger_pre.conf
COPY ./entry_point.sh /entry_point.sh
RUN apk add alpine-sdk clang llvm python3 py3-pip && pip3 install pgxnclient && pgxn install --stable postgresql_anonymizer
VOLUME ["/var/log/pg_log", "/var/lib/postgresql/data/pgdata"]
ENTRYPOINT ["/entry_point.sh"]
......@@ -6,5 +6,6 @@ COPY ./postgresql.conf /etc/postgresql/postgresql.conf
COPY ./pg_hba.conf /etc/postgresql/pg_hba.conf
COPY ./10-pgbadger_pre.conf /etc/postgresql/conf.d/10-pgbadger_pre.conf
COPY ./entry_point.sh /entry_point.sh
RUN apk add alpine-sdk clang llvm python3 py3-pip && pip3 install pgxnclient && pgxn install --stable postgresql_anonymizer
VOLUME ["/var/log/pg_log", "/var/lib/postgresql/data/pgdata"]
ENTRYPOINT ["/entry_point.sh"]
......@@ -6,5 +6,6 @@ COPY ./postgresql.conf /etc/postgresql/postgresql.conf
COPY ./pg_hba.conf /etc/postgresql/pg_hba.conf
COPY ./10-pgbadger_pre.conf /etc/postgresql/conf.d/10-pgbadger_pre.conf
COPY ./entry_point.sh /entry_point.sh
RUN apk add alpine-sdk clang llvm python3 py3-pip && pip3 install pgxnclient && pgxn install --stable postgresql_anonymizer
VOLUME ["/var/log/pg_log", "/var/lib/postgresql/data/pgdata"]
ENTRYPOINT ["/entry_point.sh"]
......@@ -3,5 +3,6 @@ ENV LC_COLLATE "C"
RUN mkdir -p /etc/postgresql/
COPY ./postgresql.conf /etc/postgresql/postgresql.conf
RUN chown postgres:postgres -R /etc/postgresql
RUN apk add alpine-sdk python3 py3-pip && pip3 install pgxnclient && pgxn install --stable postgresql_anonymizer
CMD ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
......@@ -20,7 +20,8 @@ RUN sed -ri "s/#(create_main_cluster) .*$/\1 = false/" /etc/postgresql-common/cr
# Install postgres and clean
RUN apt-get install -y postgresql-9.6 \
postgresql-client-9.6 postgresql-contrib-9.6 \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
pgxnclient build-essential postgresql-server-dev-9.6 \
&& apt-get clean && pgxn install postgresql_anonymizer && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir -p /var/log/supervisor
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment