| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.version=22.04 |
| ADD file:6d6bdec36f3282e8506d4ebfcecc427191e59c9cf197a51a9e5787e7490eb0d6 in / |
| CMD ["/bin/bash"] |
| ARG DEMO=false |
| ARG ADDITIONAL_LOCALES= |
| COPY build_scripts/prepare.sh build_scripts/locales.sh /builddeps/ # buildkit |
| RUN |2 DEMO=false ADDITIONAL_LOCALES= /bin/sh -c bash /builddeps/prepare.sh # buildkit |
| COPY /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.18 # buildkit |
| COPY cron_unprivileged.c /builddeps/ # buildkit |
| COPY build_scripts/base.sh /builddeps/ # buildkit |
| COPY /builddeps/*.deb /builddeps/ # buildkit |
| ARG PGVERSION=18 |
| ARG TIMESCALEDB_APACHE_ONLY=true |
| ARG TIMESCALEDB_TOOLKIT=true |
| ARG COMPRESS=false |
| ARG PGOLDVERSIONS=14 15 16 17 |
| ARG WITH_PERL=false |
| ARG DEB_PG_SUPPORTED_VERSIONS=14 15 16 17 18 |
| ENV POSTGIS_VERSION=3.6 BG_MON_COMMIT=a73c6bcd10dfdf9feaf5eabab7eb6b12d167680d PG_AUTH_MON_COMMIT=fe099eef7662cbc85b0b79191f47f52f1e96b779 PG_MON_COMMIT=88ac7b58348aa061c814982defc170644f368f39 PLPROFILER=REL4_2_5 PG_PROFILE=4.11 PAM_OAUTH2=v1.0.1 |
| WORKDIR /builddeps |
| RUN |9 DEMO=false ADDITIONAL_LOCALES= PGVERSION=18 TIMESCALEDB_APACHE_ONLY=true TIMESCALEDB_TOOLKIT=true COMPRESS=false PGOLDVERSIONS=14 15 16 17 WITH_PERL=false DEB_PG_SUPPORTED_VERSIONS=14 15 16 17 18 /bin/sh -c bash base.sh # buildkit |
| COPY /builddeps/wal-g /usr/local/bin/ # buildkit |
| COPY build_scripts/patroni.sh build_scripts/compress_build.sh /builddeps/ # buildkit |
| ENV PATRONIVERSION=4.1.0 |
| WORKDIR / |
| RUN |9 DEMO=false ADDITIONAL_LOCALES= PGVERSION=18 TIMESCALEDB_APACHE_ONLY=true TIMESCALEDB_TOOLKIT=true COMPRESS=false PGOLDVERSIONS=14 15 16 17 WITH_PERL=false DEB_PG_SUPPORTED_VERSIONS=14 15 16 17 18 /bin/sh -c bash /builddeps/patroni.sh # buildkit |
| RUN |9 DEMO=false ADDITIONAL_LOCALES= PGVERSION=18 TIMESCALEDB_APACHE_ONLY=true TIMESCALEDB_TOOLKIT=true COMPRESS=false PGOLDVERSIONS=14 15 16 17 WITH_PERL=false DEB_PG_SUPPORTED_VERSIONS=14 15 16 17 18 /bin/sh -c if [ "$COMPRESS" = "true" ]; then bash /builddeps/compress_build.sh; fi # buildkit |
| LABEL maintainer=Team ACID @ Zalando <team-acid@zalando.de> |
| ARG PGVERSION=18 |
| ARG DEMO=false |
| ARG COMPRESS=false |
| EXPOSE [5432/tcp 8008/tcp 8080/tcp] |
| ENV LC_ALL=en_US.utf-8 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/18/bin PGHOME=/home/postgres RW_DIR=/run DEMO=false |
| ENV WALG_ENV_DIR=/run/etc/wal-e.d/env LOG_ENV_DIR=/run/etc/log.d/env PGROOT=/home/postgres/pgdata/pgroot |
| ENV PGDATA=/home/postgres/pgdata/pgroot/data PGLOG=/home/postgres/pgdata/pgroot/pg_log |
| ENV USE_OLD_LOCALES=false |
| WORKDIR /home/postgres |
| COPY motd /etc/ # buildkit |
| COPY runit /etc/service/ # buildkit |
| COPY pgq_ticker.ini /home/postgres/ # buildkit |
| COPY build_scripts/post_build.sh /builddeps/ # buildkit |
| RUN |9 DEMO=false ADDITIONAL_LOCALES= PGVERSION=18 TIMESCALEDB_APACHE_ONLY=true TIMESCALEDB_TOOLKIT=true COMPRESS=false PGOLDVERSIONS=14 15 16 17 WITH_PERL=false DEB_PG_SUPPORTED_VERSIONS=14 15 16 17 18 /bin/sh -c sh /builddeps/post_build.sh && rm -rf /builddeps/ # buildkit |
| COPY scripts bootstrap major_upgrade /scripts/ # buildkit |
| COPY launch.sh / # buildkit |
| CMD ["/bin/sh" "/launch.sh" "init"] |
| USER root |
| RUN /bin/sh -c apt update && apt install -y --no-install-recommends gnupg2 curl ca-certificates && apt install -y postgresql-common apt-transport-https lsb-release wget && echo "deb https://packagecloud.io/timescale/timescaledb/ubuntu/ $(lsb_release -c -s) main" | tee /etc/apt/sources.list.d/timescaledb.list && wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg && apt update && apt install -y timescaledb-2-postgresql-18 timescaledb-toolkit-postgresql-18 postgresql-client-18 && rm -rf /var/lib/apt/lists/* # buildkit |
| USER postgres |