From: Étienne BERSAC Date: Tue, 13 Mar 2018 14:37:14 +0000 (+0100) Subject: Update documentation to use automated build X-Git-Tag: v10.0~25^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10583ca09bc7539067cbaecaf4f049c98d2416a5;p=pgbadger Update documentation to use automated build --- diff --git a/README b/README index 7bc7aba..8a34464 100644 --- a/README +++ b/README @@ -415,13 +415,10 @@ INSTALLATION By default INSTALLDIRS is set to site. DOCKER USAGE - In order to run pgbadger in docker container, you have to build it: + pgBadger is available as Docker image. Remember to mount logs and + outdir. - docker build . -t dalibo/pgbadger - - After you can run with: - - docker run --volume /var/log/postgresql:/logs --volume ${PWD}/outdir:/outdir dalibo/pgbadger -O /outdir ... + docker run -v /var/log/postgresql:/logs -v ${PWD}:/outdir dalibo/pgbadger -O /outdir /logs/postgresql.log POSTGRESQL CONFIGURATION You must enable and set some configuration directives in your diff --git a/doc/pgBadger.pod b/doc/pgBadger.pod index e0b715e..dbd9e29 100644 --- a/doc/pgBadger.pod +++ b/doc/pgBadger.pod @@ -410,13 +410,9 @@ By default INSTALLDIRS is set to site. =head1 DOCKER USAGE -In order to run pgbadger in docker container, you have to build it: +pgBadger is available as Docker image. Remember to mount logs and outdir. - docker build . -t dalibo/pgbadger - -After you can run with: - - docker run --volume /var/log/postgresql:/logs --volume ${PWD}/outdir:/outdir dalibo/pgbadger -O /outdir ... + docker run -v /var/log/postgresql:/logs -v ${PWD}:/outdir dalibo/pgbadger -O /outdir /logs/postgresql.log =head1 POSTGRESQL CONFIGURATION