Skip to content

Docker packaging #635

@tfactor2

Description

@tfactor2

Hi,

The Docker can provide OS abstraction allowing to get rid of OS-specific package managers.
There are a couple of projects that create images from pgBadger tgz but they are outdated.
Bringing docker-packaging to the main repo will keep the tool in a form of Docker image up-to-date and available for a broader audience.
Example of a file taken from https://github.com/uphold/docker-pgbadger/blob/master/Dockerfile:

FROM alpine:latest

LABEL maintainer="Rui Marinho <[email protected]> (@ruimarinho)"

ENV PGBADGER_DATA=/data
ENV PGBADGER_VERSION=11.1
ENV PGBADGER_PREFIX=/opt/pgbadger-${PGBADGER_VERSION}
ENV PATH=${PGBADGER_PREFIX}:$PATH

RUN apk --no-cache add coreutils \
    openssl \
    perl \
  && mkdir -p /data /opt \
  && wget -O - https://github.com/darold/pgbadger/archive/v${PGBADGER_VERSION}.tar.gz | tar -zxvf - -C /opt \
  && chmod +x ${PGBADGER_PREFIX}/pgbadger

COPY docker-entrypoint.sh /entrypoint.sh

VOLUME $PGBADGER_DATA

ENTRYPOINT ["/entrypoint.sh"]

CMD ["pgbadger"]

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions