cnpg-postgresql (16)
Published 2026-04-02 23:46:55 +00:00 by forgeadmin
Installation
docker pull forgejo.lab.xi2ix.de/forgeadmin/cnpg-postgresql:16sha256:93e70412186c326f9820e4951005a03b03b315b1e62067d59633505b18e3fafdAbout this package
A system PostgreSQL 16.13 container image
Image layers
| # debian.sh --arch 'amd64' out/ 'bullseye' '@1771804800' |
| ARG PG_VERSION=16.13 |
| ARG PG_MAJOR=16 |
| ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin |
| RUN |2 PG_VERSION=16.13 PG_MAJOR=16 /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=16.13 PG_MAJOR=16 /bin/sh -c usermod -u 26 postgres # buildkit |
| USER 26 |
| ARG EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-pg-failover-slots |
| ARG STANDARD_ADDITIONAL_POSTGRES_PACKAGES= |
| USER root |
| RUN |4 PG_VERSION=16.13 PG_MAJOR=16 EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= /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.17.0 |
| ENV PIP_BREAK_SYSTEM_PACKAGES=1 |
| USER root |
| RUN |5 PG_VERSION=16.13 PG_MAJOR=16 EXTENSIONS=postgresql-16-pgaudit postgresql-16-pgvector postgresql-16-pg-failover-slots STANDARD_ADDITIONAL_POSTGRES_PACKAGES= BARMAN_VERSION=3.17.0 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends build-essential python3-dev python3-pip python3-psycopg2 python3-setuptools && 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 |
| USER root |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends postgresql-16-pgvector postgresql-16-partman postgresql-16-cron && rm -rf /var/lib/apt/lists/* # buildkit |
| USER 26 |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.authors | The CloudNativePG Contributors |
| org.opencontainers.image.base.digest | sha256:4333240150a6924f878e05ec2c998aec95238010e0e4d2fec6161c90128c4652 |
| org.opencontainers.image.base.name | docker.io/library/debian:bullseye-slim |
| org.opencontainers.image.created | 2026-03-30T08:36:11Z |
| org.opencontainers.image.description | A system PostgreSQL 16.13 container image |
| org.opencontainers.image.documentation | https://github.com/cloudnative-pg/postgres-containers |
| org.opencontainers.image.licenses | Apache-2.0 |
| org.opencontainers.image.revision | b34c53e06c857063e60eb8c7f63dc0f336728cd1 |
| org.opencontainers.image.source | https://github.com/cloudnative-pg/postgres-containers |
| org.opencontainers.image.title | CloudNativePG PostgreSQL 16.13 system |
| org.opencontainers.image.url | https://github.com/cloudnative-pg/postgres-containers |
| org.opencontainers.image.vendor | The CloudNativePG Contributors |
| org.opencontainers.image.version | 16.13 |