{"architecture":"arm","config":{"ExposedPorts":{"5432/tcp":{}},"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","GOSU_VERSION=1.17","LANG=en_US.utf8","PG_MAJOR=16","PG_VERSION=16.8","PG_SHA256=9468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8","DOCKER_PG_LLVM_DEPS=llvm19-dev \t\tclang19","PGDATA=/var/lib/postgresql/data"],"Entrypoint":["docker-entrypoint.sh"],"Cmd":["postgres"],"Volumes":{"/var/lib/postgresql/data":{}},"WorkingDir":"/","StopSignal":"SIGINT"},"created":"2025-02-27T00:53:12Z","history":[{"created":"2025-02-14T03:28:36Z","created_by":"ADD alpine-minirootfs-3.21.3-armv7.tar.gz / # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-14T03:28:36Z","created_by":"CMD [\"/bin/sh\"]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"RUN /bin/sh -c set -eux; \taddgroup -g 70 -S postgres; \tadduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; \tinstall --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-27T00:53:12Z","created_by":"ENV GOSU_VERSION=1.17","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"RUN /bin/sh -c set -eux; \t\tapk add --no-cache --virtual .gosu-deps \t\tca-certificates \t\tdpkg \t\tgnupg \t; \t\tdpkgArch=\"$(dpkg --print-architecture | awk -F- '{ print $NF }')\"; \twget -O /usr/local/bin/gosu \"https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch\"; \twget -O /usr/local/bin/gosu.asc \"https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc\"; \t\texport GNUPGHOME=\"$(mktemp -d)\"; \tgpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \tgpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \tgpgconf --kill all; \trm -rf \"$GNUPGHOME\" /usr/local/bin/gosu.asc; \t\tapk del --no-network .gosu-deps; \t\tchmod +x /usr/local/bin/gosu; \tgosu --version; \tgosu nobody true # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-27T00:53:12Z","created_by":"RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-27T00:53:12Z","created_by":"ENV LANG=en_US.utf8","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-27T00:53:12Z","created_by":"ENV PG_MAJOR=16","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"ENV PG_VERSION=16.8","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"ENV PG_SHA256=9468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"ENV DOCKER_PG_LLVM_DEPS=llvm19-dev \t\tclang19","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"RUN /bin/sh -c set -eux; \t\twget -O postgresql.tar.bz2 \"https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2\"; \techo \"$PG_SHA256 *postgresql.tar.bz2\" | sha256sum -c -; \tmkdir -p /usr/src/postgresql; \ttar \t\t--extract \t\t--file postgresql.tar.bz2 \t\t--directory /usr/src/postgresql \t\t--strip-components 1 \t; \trm postgresql.tar.bz2; \t\tapk add --no-cache --virtual .build-deps \t\t$DOCKER_PG_LLVM_DEPS \t\tbison \t\tcoreutils \t\tdpkg-dev dpkg \t\tflex \t\tg++ \t\tgcc \t\tkrb5-dev \t\tlibc-dev \t\tlibedit-dev \t\tlibxml2-dev \t\tlibxslt-dev \t\tlinux-headers \t\tmake \t\topenldap-dev \t\topenssl-dev \t\tperl-dev \t\tperl-ipc-run \t\tperl-utils \t\tpython3-dev \t\ttcl-dev \t\tutil-linux-dev \t\tzlib-dev \t\ticu-dev \t\tlz4-dev \t\tzstd-dev \t; \t\tcd /usr/src/postgresql; \tawk '$1 == \"#define\" \u0026\u0026 $2 == \"DEFAULT_PGSOCKET_DIR\" \u0026\u0026 $3 == \"\\\"/tmp\\\"\" { $3 = \"\\\"/var/run/postgresql\\\"\"; print; next } { print }' src/include/pg_config_manual.h \u003e src/include/pg_config_manual.h.new; \tgrep '/var/run/postgresql' src/include/pg_config_manual.h.new; \tmv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; \tgnuArch=\"$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)\"; \twget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; \twget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; \t\texport LLVM_CONFIG=\"/usr/lib/llvm19/bin/llvm-config\"; \texport CLANG=clang-19; \t\t./configure \t\t--enable-option-checking=fatal \t\t--build=\"$gnuArch\" \t\t--enable-integer-datetimes \t\t--enable-thread-safety \t\t--enable-tap-tests \t\t--disable-rpath \t\t--with-uuid=e2fs \t\t--with-pgport=5432 \t\t--with-system-tzdata=/usr/share/zoneinfo \t\t--prefix=/usr/local \t\t--with-includes=/usr/local/include \t\t--with-libraries=/usr/local/lib \t\t--with-gssapi \t\t--with-ldap \t\t--with-tcl \t\t--with-perl \t\t--with-python \t\t--with-openssl \t\t--with-libxml \t\t--with-libxslt \t\t--with-icu \t\t--with-llvm \t\t--with-lz4 \t\t--with-zstd \t; \tmake -j \"$(nproc)\" world-bin; \tmake install-world-bin; \tmake -C contrib install; \t\trunDeps=\"$( \t\tscanelf --needed --nobanner --format '%n#p' --recursive /usr/local \t\t\t| tr ',' '\\n' \t\t\t| sort -u \t\t\t| awk 'system(\"[ -e /usr/local/lib/\" $1 \" ]\") == 0 { next } { print \"so:\" $1 }' \t\t\t| grep -v -e perl -e python -e tcl \t)\"; \tapk add --no-cache --virtual .postgresql-rundeps \t\t$runDeps \t\tbash \t\ttzdata \t\tzstd \t\ticu-data-full \t\t$([ \"$(apk --print-arch)\" != 'ppc64le' ] \u0026\u0026 echo 'nss_wrapper') \t; \tapk del --no-network .build-deps; \tcd /; \trm -rf \t\t/usr/src/postgresql \t\t/usr/local/share/doc \t\t/usr/local/share/man \t; \t\tpostgres --version # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-27T00:53:12Z","created_by":"RUN /bin/sh -c set -eux; \tcp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; \tsed -ri \"s!^#?(listen_addresses)\\s*=\\s*\\S+.*!\\1 = '*'!\" /usr/local/share/postgresql/postgresql.conf.sample; \tgrep -F \"listen_addresses = '*'\" /usr/local/share/postgresql/postgresql.conf.sample # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-27T00:53:12Z","created_by":"RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-27T00:53:12Z","created_by":"ENV PGDATA=/var/lib/postgresql/data","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 \"$PGDATA\" # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-27T00:53:12Z","created_by":"VOLUME [/var/lib/postgresql/data]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-27T00:53:12Z","created_by":"RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2025-02-27T00:53:12Z","created_by":"ENTRYPOINT [\"docker-entrypoint.sh\"]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"STOPSIGNAL SIGINT","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"EXPOSE map[5432/tcp:{}]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2025-02-27T00:53:12Z","created_by":"CMD [\"postgres\"]","comment":"buildkit.dockerfile.v0","empty_layer":true}],"os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:0ca1385a6f62aace8757895e557eab55f34e7c2b483061b26b2c9ea5ecc88e72","sha256:b01cc04138ff2809d6dc153259e50c4511d2daccd686d18e4e61480bb5b3675f","sha256:820fd5d291d833021ac3ff61a67d095f1d889713250ac3938d38f3e6d3fcf13f","sha256:fa99e2eb3b1951c6a03a061f77e985c1a3c488985111884460423e87931c4bab","sha256:c56039f5286c57b19b29191966b95ec3f95d37aef9fea653d817c4c186bfb18b","sha256:1ac6ef0c4cf149828fa2e6f67836fe46b5772f04c8656b9fe1b23254afb7abf7","sha256:8d36cbef4f118a1f8b98f9b26342f21b0ed19c9e916aea0e02a13f64ef19800e","sha256:7573887c8ca07214cb39325755db2b5b9bd5233a793a92fe7a74494f6d64cfef","sha256:c7b41b38f65920c7f6168a96c833c099e7a71cf73cd02f35e351a7613247f132","sha256:f4bba1e01115fa9edb8d8ce80250117768ad9a2ba04184884677e8d3aea87dae","sha256:649f6b09e7b357a380c79a7ca175819e1eba32eb22ec67d83264580f83a09bea"]},"variant":"v7"}