pg-auto-failover-aio (main)

Published 2026-10-27 11:16:26 +00:00 by jonas

Installation

docker pull git.tni.dev/tni/pg-auto-failover-aio:main
sha256:97698cf0983efd7360ae327d1f4cf4008c4d0cc0ab02b59e961fdcede6cdb875

About this package

pg_auto_failover monitor/data node for Proxmox VE application containers

Image layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1792531975'
ARG PG_VERSION
ARG PGAF_VERSION PG_VERSION
ARG PGAF_VERSION PG_VERSION S6_OVERLAY_VERSION
ARG PGAF_VERSION PGWEB_VERSION PG_VERSION S6_OVERLAY_VERSION
ARG ALLOY_VERSION PGAF_VERSION PGWEB_VERSION PG_VERSION S6_OVERLAY_VERSION
ENV DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8 LC_ALL=C.UTF-8 PATH=/command:/usr/lib/postgresql/${PG_VERSION}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PGDATA=/var/lib/postgresql/data HOME=/var/lib/postgresql
|5 ALLOY_VERSION=1.21.2 PGAF_VERSION=2.2 PGWEB_VERSION=0.17.0 PG_VERSION=18 S6_OVERLAY_VERSION=3.2.3.2 /bin/sh -c printf '#!/bin/sh\nexit 101\n' > /usr/sbin/policy-rc.d && chmod 0755 /usr/sbin/policy-rc.d
|5 ALLOY_VERSION=1.21.2 PGAF_VERSION=2.2 PGWEB_VERSION=0.17.0 PG_VERSION=18 S6_OVERLAY_VERSION=3.2.3.2 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg jq xz-utils unzip postgresql-common && install -d /usr/share/keyrings && curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /usr/share/keyrings/pgdg.gpg && echo "deb [signed-by=/usr/share/keyrings/pgdg.gpg] https://apt.postgresql.org/pub/repos/apt trixie-pgdg main" > /etc/apt/sources.list.d/pgdg.list && echo 'create_main_cluster = false' >> /etc/postgresql-common/createcluster.conf && apt-get update && apt-get install -y --no-install-recommends postgresql-${PG_VERSION} postgresql-${PG_VERSION}-auto-failover pg-auto-failover-cli && test "$(postgres --version | cut -d' ' -f3 | cut -d. -f1)" = "${PG_VERSION}" && test "$(pg_autoctl --version | head -n1 | cut -d' ' -f3 | cut -d- -f1)" = "${PGAF_VERSION}" && rm -rf /var/lib/apt/lists/* /var/lib/postgresql/${PG_VERSION} /etc/postgresql/${PG_VERSION}
|5 ALLOY_VERSION=1.21.2 PGAF_VERSION=2.2 PGWEB_VERSION=0.17.0 PG_VERSION=18 S6_OVERLAY_VERSION=3.2.3.2 /bin/sh -c set -eux; arch="$(dpkg --print-architecture)"; case "$arch" in amd64) s6_arch=x86_64 ;; arm64) s6_arch=aarch64 ;; *) echo "unsupported architecture: $arch" >&2; exit 1 ;; esac; base="https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}"; curl -fsSLo /tmp/s6-noarch.tar.xz "$base/s6-overlay-noarch.tar.xz"; curl -fsSLo /tmp/s6-noarch.sha256 "$base/s6-overlay-noarch.tar.xz.sha256"; curl -fsSLo /tmp/s6-arch.tar.xz "$base/s6-overlay-${s6_arch}.tar.xz"; curl -fsSLo /tmp/s6-arch.sha256 "$base/s6-overlay-${s6_arch}.tar.xz.sha256"; (cd /tmp && sed 's# .*# s6-noarch.tar.xz#' s6-noarch.sha256 | sha256sum -c -); (cd /tmp && sed "s# .*# s6-arch.tar.xz#" s6-arch.sha256 | sha256sum -c -); tar -C / -Jxpf /tmp/s6-noarch.tar.xz; tar -C / -Jxpf /tmp/s6-arch.tar.xz; rm -f /tmp/s6-*
|5 ALLOY_VERSION=1.21.2 PGAF_VERSION=2.2 PGWEB_VERSION=0.17.0 PG_VERSION=18 S6_OVERLAY_VERSION=3.2.3.2 /bin/sh -c set -eux; arch="$(dpkg --print-architecture)"; case "$arch" in amd64) pgweb_arch=amd64 ;; arm64) pgweb_arch=arm64 ;; *) echo "unsupported architecture: $arch" >&2; exit 1 ;; esac; curl -fsSLo /tmp/pgweb.zip "https://github.com/sosedoff/pgweb/releases/download/v${PGWEB_VERSION}/pgweb_linux_${pgweb_arch}.zip"; unzip -p /tmp/pgweb.zip "pgweb_linux_${pgweb_arch}" > /usr/local/bin/pgweb; chmod 0755 /usr/local/bin/pgweb; rm -f /tmp/pgweb.zip
|5 ALLOY_VERSION=1.21.2 PGAF_VERSION=2.2 PGWEB_VERSION=0.17.0 PG_VERSION=18 S6_OVERLAY_VERSION=3.2.3.2 /bin/sh -c set -eux; arch="$(dpkg --print-architecture)"; case "$arch" in amd64) alloy_arch=amd64 ;; arm64) alloy_arch=arm64 ;; *) echo "unsupported architecture: $arch" >&2; exit 1 ;; esac; curl -fsSLo /tmp/alloy.zip "https://github.com/grafana/alloy/releases/download/v${ALLOY_VERSION}/alloy-linux-${alloy_arch}.zip"; unzip -p /tmp/alloy.zip "alloy-linux-${alloy_arch}" > /usr/local/bin/alloy; chmod 0755 /usr/local/bin/alloy; rm -f /tmp/alloy.zip
|5 ALLOY_VERSION=1.21.2 PGAF_VERSION=2.2 PGWEB_VERSION=0.17.0 PG_VERSION=18 S6_OVERLAY_VERSION=3.2.3.2 /bin/sh -c install -d -o postgres -g postgres -m 0700 /var/lib/postgresql && install -d -o postgres -g postgres -m 0700 /var/lib/postgresql/data
COPY dir:4d79e2aee34adebb1afb84c418911332478fc6e35a7e7812f64ff24a68fb1491 in /
|5 ALLOY_VERSION=1.21.2 PGAF_VERSION=2.2 PGWEB_VERSION=0.17.0 PG_VERSION=18 S6_OVERLAY_VERSION=3.2.3.2 /bin/sh -c find /etc/s6-overlay /usr/local/bin -type f -exec chmod 0755 {} \;
ENV PGAF_PGDATA=/var/lib/postgresql/data S6_BEHAVIOUR_IF_STAGE2_FAILS=2
EXPOSE 5432 8080 4317 4318
LABEL org.opencontainers.image.title="pg-auto-failover-aio" org.opencontainers.image.description="pg_auto_failover monitor/data node for Proxmox VE application containers" org.opencontainers.image.source="https://github.com/hapostgres/pg_auto_failover" org.opencontainers.image.version="${PGAF_VERSION}"
USER root
ENTRYPOINT ["/init"]

Labels

Key Value
io.buildah.version 1.33.7
org.opencontainers.image.description pg_auto_failover monitor/data node for Proxmox VE application containers
org.opencontainers.image.source https://github.com/hapostgres/pg_auto_failover
org.opencontainers.image.title pg-auto-failover-aio
org.opencontainers.image.version 2.2

Annotations

Key Value
org.opencontainers.image.base.digest sha256:4876fdea29cac1a33a3195f1eb1952feb1fca7dd6dd00be3e2f1879cf20d34d2
org.opencontainers.image.base.name docker.io/library/debian:trixie-slim
Details
Container
2026-10-27 11:16:26 +00:00
27
2026-11-23 01:20:46 +00:00
OCI / Docker
linux/amd64
266 MiB
Versions (9) View all
0.1 2026-10-27
latest 2026-10-27
0.1.3 2026-10-27
sha-2cb2f103df1c 2026-10-27
0.1.2 2026-10-27