Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

679 B
Raw Blame
# Generates one pg_dump fixture per supported major (good-pg12.dump ..
# good-pg18.dump) plus a single broken.dump sentinel. The entrypoint shells
# out to docker against the host daemon (mounted /var/run/docker.sock) and
# spawns a sibling postgres:N container per iteration so each dump is produced
# by the matching server. No in-container postgres binaries needed.
FROM debian:bookworm-slim

RUN apt-get update && \
    apt-get install -y --no-install-recommends ca-certificates docker.io && \
    rm -rf /var/lib/apt/lists/*

COPY fixture-gen/entrypoint.sh /usr/local/bin/fixture-gen
RUN chmod +x /usr/local/bin/fixture-gen

ENTRYPOINT []
CMD ["/usr/local/bin/fixture-gen"]