Mercurial > lada > lada-server
diff db_schema/Dockerfile @ 1174:2e59a51d914f pgaudit
Integrate Audit Log Analyzer.
XXX: Startup of the Log Analyzer will only be successful when
patched because of a bug that prevents it from recovering from
errors (i.e. while postgres is starting).
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 11 Nov 2016 16:52:49 +0100 |
parents | eefd0ca9e42f |
children |
line wrap: on
line diff
--- a/db_schema/Dockerfile Fri Nov 11 16:50:00 2016 +0100 +++ b/db_schema/Dockerfile Fri Nov 11 16:52:49 2016 +0100 @@ -109,11 +109,6 @@ # # Set the default command to run when starting the container # -CMD ["/usr/lib/postgresql/9.5/bin/postgres", \ - "--config_file=/etc/postgresql/9.5/main/postgresql.conf"] - -# To use pgaudit/analyze from within the container: -# psql -f pgaudit/analyze/sql/audit.sql lada -# cd pgaudit/analyze/bin -# ./pgaudit_analyze /var/log/postgresql/ \ -# --log-file /var/log/postgresql/pgaudit_analyze.log +CMD /usr/lib/postgresql/9.5/bin/postgres --config_file=$PGCONF & \ + pgaudit/analyze/bin/pgaudit_analyze /var/log/postgresql/ \ + --log-file /var/log/postgresql/pgaudit_analyze.log