]> granicus.if.org Git - pgbadger/commitdiff
docs(docker): add usage of docker image
authorbdronneau <basti1.dr@gmail.com>
Tue, 13 Mar 2018 10:02:11 +0000 (11:02 +0100)
committerbdronneau <basti1.dr@gmail.com>
Tue, 13 Mar 2018 12:22:22 +0000 (13:22 +0100)
Dockerfile
README
doc/pgBadger.pod

index 92388e9e4739516ad29e939bf0de46ff5f28e1ad..a9a11daa18382c3b85728922c44bc7d0af90ff7b 100644 (file)
@@ -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 b20edd5afc04259e38e9fc7fa33f0f1fc04fb99d..d8dddc4ee8da4affcea3356f8aa3d127123d3ff8 100644 (file)
--- 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.
index 4baf47436e3d419802cb982d772b1dad0c2c9563..a13037aa95627280af86d667580ebd8a2ca1b13e 100644 (file)
@@ -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