From: bdronneau Date: Tue, 13 Mar 2018 10:02:11 +0000 (+0100) Subject: docs(docker): add usage of docker image X-Git-Tag: v10.0~26^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=508d269db2437b242232cb42d9bb28e64eca64c8;p=pgbadger docs(docker): add usage of docker image --- diff --git a/Dockerfile b/Dockerfile index 92388e9..a9a11da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest # Since Alpine linux 3.3 we can install on-the-fly -RUN apk add --no-cache perl +RUN apk add --no-cache perl COPY pgbadger /usr/local/bin diff --git a/README b/README index b20edd5..d8dddc4 100644 --- a/README +++ b/README @@ -414,6 +414,15 @@ INSTALLATION By default INSTALLDIRS is set to site. +DOCKER USAGE + In order to run pgbadger in docker container, you have to build it: + + docker build . -t dalibo/pgbadger + + After you can run with: + + docker run dalibo/pgbadger --help + POSTGRESQL CONFIGURATION You must enable and set some configuration directives in your postgresql.conf before starting. diff --git a/doc/pgBadger.pod b/doc/pgBadger.pod index 4baf474..a13037a 100644 --- a/doc/pgBadger.pod +++ b/doc/pgBadger.pod @@ -408,6 +408,16 @@ For example, to install everything just like Debian does, proceed as follows: By default INSTALLDIRS is set to site. +=head1 DOCKER USAGE + +In order to run pgbadger in docker container, you have to build it: + + docker build . -t dalibo/pgbadger + +After you can run with: + + docker run dalibo/pgbadger --help + =head1 POSTGRESQL CONFIGURATION You must enable and set some configuration directives in your postgresql.conf