-
Notifications
You must be signed in to change notification settings - Fork 359
Closed
Description
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
Labels
No labels