elefante-postgres (sha256:6ae787a52edef4366cdf2e131a65f695643bef41d1f5e681a147817e539bd6fb)

Published 2026-07-29 22:30:47 +00:00 by davide

Installation

docker pull git.silvestrid.com/davide/elefante-postgres@sha256:6ae787a52edef4366cdf2e131a65f695643bef41d1f5e681a147817e539bd6fb
sha256:6ae787a52edef4366cdf2e131a65f695643bef41d1f5e681a147817e539bd6fb

About this package

A system PostgreSQL 18.4 container image

Image layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1783900800'
ARG PG_VERSION=18.4
ARG PG_MAJOR=18
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/18/bin
RUN |2 PG_VERSION=18.4 PG_MAJOR=18 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends postgresql-common ca-certificates gnupg && /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y -c "${PG_MAJOR}" && apt-get install -y --no-install-recommends -o Dpkg::::="--force-confdef" -o Dpkg::::="--force-confold" postgresql-common && sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf && apt-get install -y --no-install-recommends libsasl2-modules libldap-common -o Dpkg::::="--force-confdef" -o Dpkg::::="--force-confold" "postgresql-${PG_MAJOR}=${PG_VERSION}*" && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* # buildkit
RUN |2 PG_VERSION=18.4 PG_MAJOR=18 /bin/sh -c usermod -u 26 postgres # buildkit
USER 26
ARG EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots
ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit
USER root
RUN |4 PG_VERSION=18.4 PG_MAJOR=18 EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit /bin/sh -c apt-get update && apt-get install -y --no-install-recommends locales-all ${STANDARD_ADDITIONAL_POSTGRES_PACKAGES} ${EXTENSIONS} && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* # buildkit
USER 26
ARG BARMAN_VERSION=3.19.1
ENV PIP_BREAK_SYSTEM_PACKAGES=1
USER root
RUN |5 PG_VERSION=18.4 PG_MAJOR=18 EXTENSIONS=postgresql-18-pgaudit postgresql-18-pgvector postgresql-18-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES=postgresql-18-jit BARMAN_VERSION=3.19.1 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends build-essential python3-dev python3-pip python3-psycopg2 && pip3 install --no-cache-dir barman[cloud,azure,snappy,google,zstandard,lz4]==${BARMAN_VERSION} && python3 -c "import sysconfig, compileall; compileall.compile_dir(sysconfig.get_path('stdlib'), quiet=1); compileall.compile_dir(sysconfig.get_path('purelib'), quiet=1); compileall.compile_dir(sysconfig.get_path('platlib'), quiet=1)" && apt-get remove -y --purge --autoremove build-essential python3-dev && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* # buildkit
USER 26
ARG PG_TRICKLE_VERSION=0.81.0
ARG TARGETARCH=amd64
USER root
RUN |2 PG_TRICKLE_VERSION=0.81.0 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* # buildkit
RUN |2 PG_TRICKLE_VERSION=0.81.0 TARGETARCH=amd64 /bin/sh -c set -eu; case "${TARGETARCH}" in amd64) archive_sha256="df729517d7022d523b8ca7db6c56577824418604e4d2d8d14bddbd8e686634c2" ;; arm64) archive_sha256="d0f816405da4ebc9b53ad4fe270bc3cbdc588588a6ee4f174d40b67885f8a4d8" ;; *) echo "unsupported architecture: ${TARGETARCH}" >&2; exit 1 ;; esac; archive="pg_trickle-${PG_TRICKLE_VERSION}-pg18-linux-${TARGETARCH}.tar.gz"; url="https://github.com/trickle-labs/pg-trickle/releases/download/v${PG_TRICKLE_VERSION}/${archive}"; curl -fsSL "${url}" -o "/tmp/${archive}"; echo "${archive_sha256} /tmp/${archive}" | sha256sum -c -; mkdir -p /tmp/pg-trickle; tar -xzf "/tmp/${archive}" -C /tmp/pg-trickle --strip-components=1; install -m 0755 /tmp/pg-trickle/lib/pg_trickle.so /usr/lib/postgresql/18/lib/pg_trickle.so; install -m 0644 /tmp/pg-trickle/extension/* /usr/share/postgresql/18/extension/; rm -rf "/tmp/${archive}" /tmp/pg-trickle # buildkit
LABEL org.opencontainers.image.source=https://git.silvestrid.com/davide/elefante org.opencontainers.image.version=18.4-pg_trickle-0.81.0 org.opencontainers.image.licenses=Apache-2.0
USER 26

Labels

Key Value
org.opencontainers.image.authors The CloudNativePG Contributors
org.opencontainers.image.base.digest sha256:020c0d20b9880058cbe785a9db107156c3c75c2ac944a6aa7ab59f2add76a7bd
org.opencontainers.image.base.name docker.io/library/debian:trixie-slim
org.opencontainers.image.created 2026-07-27T09:10:12Z
org.opencontainers.image.description A system PostgreSQL 18.4 container image
org.opencontainers.image.documentation https://github.com/cloudnative-pg/postgres-containers
org.opencontainers.image.licenses Apache-2.0
org.opencontainers.image.revision 56470397bfb024f3848907239316773c7a08df7f
org.opencontainers.image.source https://git.silvestrid.com/davide/elefante
org.opencontainers.image.title CloudNativePG PostgreSQL 18.4 system
org.opencontainers.image.url https://github.com/cloudnative-pg/postgres-containers
org.opencontainers.image.vendor The CloudNativePG Contributors
org.opencontainers.image.version 18.4-pg_trickle-0.81.0
Details
Container
2026-07-29 22:30:47 +00:00
13
OCI / Docker
linux/amd64
The CloudNativePG Contributors
Apache-2.0
267 MiB
Versions (1) View all