uphold/docker-pgbadger

Name: docker-pgbadger

Owner: Uphold

Description: A pgBadger docker image

Created: 2016-06-09 13:55:28.0

Updated: 2018-02-12 22:55:21.0

Pushed: 2017-05-01 17:25:15.0

Homepage: null

Size: 2

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

uphold/pgbadger

A pgBadger docker image.

uphold/pgbadger uphold/pgbadger uphold/pgbadger uphold/pgbadger

Supported tags and respective Dockerfile links
What is pgBadger?

pgBadger is a fast PostgreSQL log analysis reporter.

Usage
How to use this image

This image contains the pgbadger executable and is meant for one-off uses. The entrypoint assumes all arguments are targeted for the pgbadger executable and additionally configures jobs parallelization using the number of cores attributed to the container and sets the --out-dir to the value of $PGBADGER_DATA.

For example, considering PGBADGER_DATA=/data and the number of available cores to the container is 4:

cker run --rm uphold/pgbadger /var/log/postgresql/postgresql.log

Would translate to:

dger /var/log/postgresql/postgresql.log --jobs 4 --outdir /data

If you'd like to run other commands on the container, you will need to replace the entrypoint by setting it on the command line via --entrypoint.

Here is a sample usage with docker-compose that mounts the volumes from a running postgresql container and saves the report on the ./cache/pgbadger directory mounted from the host:

dger:
age: uphold/pgbadger
mmand: /var/lib/postgresql/data/pg_log/postgresql.log
lumes:
- ./cache/pgbadger:/data
lumes_from:
- postgres:ro
Image variants

The uphold/pgbadger image comes in multiple flavors:

uphold/pgbadger:latest

Points to the latest release available of pgBadger.

uphold/pgbadger:<version>

Targets a specific version of pgBadger (e.g. 8.1).

Supported Docker versions

This image is officially supported on Docker version 1.11, with support for older versions provided on a best-effort basis.

License

License information for the software contained in this image.

License information for the uphold/docker-pgbadger docker project.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.