| # debian.sh --arch 'amd64' out/ 'trixie' '@1789689600' |
| ARG PG_VERSION=18.6 |
| 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.6 PG_MAJOR=18 /bin/sh -c apt-get update && apt-get upgrade -y && 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.6 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.6 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.20.0 |
| ENV PIP_BREAK_SYSTEM_PACKAGES=1 |
| USER root |
| RUN |5 PG_VERSION=18.6 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.20.0 /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 --ignore-requires-python 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_MAJOR=18 |
| ARG POSTGIS_VERSION=3.6.4+dfsg-2.pgdg13+1 |
| ARG POSTGIS_MAJOR=3 |
| ARG PGROUTING_VERSION=4.0.1-1.pgdg13+1 |
| USER root |
| RUN |4 PG_MAJOR=18 POSTGIS_VERSION=3.6.4+dfsg-2.pgdg13+1 POSTGIS_MAJOR=3 PGROUTING_VERSION=4.0.1-1.pgdg13+1 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION" "postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION" "postgresql-$PG_MAJOR-pgrouting=$PGROUTING_VERSION" "postgresql-$PG_MAJOR-pgrouting-scripts=$PGROUTING_VERSION" && 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 gnupg curl ca-certificates lsb-release && echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" > /etc/apt/sources.list.d/timescaledb.list && curl -fsSL https://packagecloud.io/timescale/timescaledb/gpgkey | gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg && apt-get update && apt-get install -y --no-install-recommends "timescaledb-2-postgresql-18=2.29.2*" "timescaledb-toolkit-postgresql-18=1:1.22.0*" && rm -rf /var/lib/apt/lists/* # buildkit |
| USER 26 |