docker pull io.docker.registry-1.mirror.anurin.name/library/postgres:14.15-alpine3.20
sha256:63fa2f07bf08140cae9b1fd4bb345ef5cc93199de4b3ecb93ace20a4c93de443
2025-02-04 00:55:44 UTC
96 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:6d632fc6244662e41ee3b3f29090684a520e615dc5c282638a7587366dcd4fb9 - 3.45% (3.31 MB)
[#001] sha256:a768a86c5ef0b416b820e2f9fc7f67fbcca34afb9c70574cafd05fa8eb8d3ec6 - 0.0% (986 Bytes)
[#002] sha256:2a0acf56473df571d98b5e0891dba20b1720a4b82675798b7aedd354c79ba3c9 - 1.09% (1.04 MB)
[#003] sha256:0a83936820888f8840c57d22deb5134d481321a58d830fb14ae42e5c368c02a5 - 0.0% (173 Bytes)
[#004] sha256:d652333197a67e52aaf98ae984899d935019effafc148fd1069115963bfccba6 - 0.0% (116 Bytes)
[#005] sha256:442d8cf4ba60b2667a381f1347139a6e5523daceed617113715d3b2793b23e89 - 95.45% (91.6 MB)
[#006] sha256:ecb7a446777f6699e993698fd02495c0478772043d0fb4f4b5ca24467cab273f - 0.01% (8.98 KB)
[#007] sha256:922a2f1e399110d57f8d69a6f4a65359f32252057b879fdd4eadc8c42f7474ac - 0.0% (128 Bytes)
[#008] sha256:c234917efa3616542b37c85f3c075f6fe41de8256937260a4c3ce23ed8a6f563 - 0.0% (167 Bytes)
[#009] sha256:c9886e7f4e2c23835cb4bab5cce57af61164cb662d3d1b7ee39262c789acbe95 - 0.01% (5.29 KB)
[#010] sha256:2e147795ea5c046d0033551cd02e89b31685f117c72202a06fbccd31627d142a - 0.0% (181 Bytes)
ADD alpine-minirootfs-3.20.5-x86.tar.gz / # buildkit
2025-01-08 12:08:14 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)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
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:62211d2cc70fd160860d2fc1a714d5f95672d832737e5d9b2653a5544bd3b1af
2025-02-04 00:55:44 UTC
91 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:66a3d608f3fa52124f8463e9467f170c784abd549e8216aa45c6960b00b4b79b - 3.8% (3.46 MB)
[#001] sha256:57e798f1ab7934e8535c47400fdeb82d0e1054c2f2ad7f17539df226cf2d22d4 - 0.0% (985 Bytes)
[#002] sha256:51f6c42a9415e91b6a313c0f72d634a9d117c27d07172d51db25b2514e37a18f - 1.17% (1.07 MB)
[#003] sha256:1335b4bc3e82e1c17608750b6526d91dc16b250ac109f79e6bff5e4a27fbbf1b - 0.0% (176 Bytes)
[#004] sha256:98ac7c7aa937c8f68a5b215ce49767043e900f12daf63262d29adb85147174c7 - 0.0% (114 Bytes)
[#005] sha256:d68deb17168cf81f778dd74b9e413190ac7de1a36e02aba9f26d2fc5fa5dff05 - 95.01% (86.4 MB)
[#006] sha256:3623d812dfbd5f2821964a42aa71965e2ee816181b7a815cc748c04a790c8d2e - 0.01% (8.99 KB)
[#007] sha256:d973311b26060d5b9f816050e0e13e079c62fc1dd1a1a468b0f91757266dc5db - 0.0% (128 Bytes)
[#008] sha256:e44350556892aaafa7c6c9e1910bba8c39ab6b1df65c43553ffb3a6de112d172 - 0.0% (169 Bytes)
[#009] sha256:c411bac5e52c93b430bc280b19f17fcec4f1962732246094cc67cf9ed605e981 - 0.01% (5.29 KB)
[#010] sha256:b976e59ed33e2a71c14e3d9f7b9057e7ff296d9324f8e3f7d816ed4a27864baf - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.20.5-x86_64.tar.gz / # buildkit
2025-01-08 12:08:14 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)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
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:3236b17925f7e602a808d0d044954168354ce84e37096b67556a489012aa7bba
2025-02-04 00:55:44 UTC
89.8 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:27a1f2308f194d2c8cfe617a324e0078d055d65032c6c342eae11afb7a8d38c0 - 3.58% (3.22 MB)
[#001] sha256:88efc830b0008c442fbf41800df30ca9fb0c00964fddd3e80890961627c5b9b8 - 0.0% (984 Bytes)
[#002] sha256:0f0135973424a59bcd09d82651ba32d24eda2b75299b4d2e3f5deba54f7b2553 - 1.15% (1.04 MB)
[#003] sha256:4e4b0d2c7f42b79dc01dbd3833f6c268867a01749968770c19b0a257a02954cf - 0.0% (174 Bytes)
[#004] sha256:c9b35d591cbe9900f8759fa3be037a5061e3b63755c2fd7f4c9e8ae8112697b1 - 0.0% (116 Bytes)
[#005] sha256:86ba5f2fa575d850959338d5bf02798c4385fc4fcbd75cc9f6f483a0c1b193bd - 95.25% (85.5 MB)
[#006] sha256:db36ee424085c2088b6f2655cf500cf1431f9ae5d9cfb415fb7747dc38b23ecc - 0.01% (8.99 KB)
[#007] sha256:c114463bb432f33ac1668ae6def43ec144020c5a990eebc5defdff2ebdc7f7e9 - 0.0% (128 Bytes)
[#008] sha256:9be706a54a219a8f19c9514f68b8539ba48862cce36741b7885fd5d5c46123f0 - 0.0% (167 Bytes)
[#009] sha256:7ce9528961639182d08d572547ff2de294d3b8894cbcd127df287041931979ef - 0.01% (5.29 KB)
[#010] sha256:d89b6286b11f063c069de9bc2ebb1115411e662a9dbd5ebbfb204e1e1780108a - 0.0% (187 Bytes)
ADD alpine-minirootfs-3.20.5-armhf.tar.gz / # buildkit
2025-01-08 12:08:14 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)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
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:245df2bdf29c2894b4630c866f0c7ae7c32faa2e9798e3220f44822619cfa683
2025-02-04 00:55:44 UTC
84.5 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:c8a32ed454e751770c0976636b8d0d0fccc4f778a2dd26c428067d613be1a299 - 3.49% (2.95 MB)
[#001] sha256:ba1fb695e4dc368a8364f548d77e21718a82e73733358d6ec5420b2e02fd888d - 0.0% (984 Bytes)
[#002] sha256:d9866222c02ea54a9198ab6c7551f7b17377979754101e6c52ad85510165ac0e - 1.23% (1.04 MB)
[#003] sha256:68cad6bb44a86a8f7100fef62a9fc96a6d89106b8a1df7a25e30e43aee9144bc - 0.0% (177 Bytes)
[#004] sha256:7eee0b71dd1bfd35f11b1e36480e5e2187597b3784b3dc28e5a54a7f0d5d5db6 - 0.0% (116 Bytes)
[#005] sha256:33cc0fd3513505bab50e4e00a9e60cf253a8225fcb8229a6080190d1c101e8fc - 95.26% (80.5 MB)
[#006] sha256:ba616e48a53239ce7f9eb2481f3fd04412f6acf927c92e509b5888f824993e69 - 0.01% (8.99 KB)
[#007] sha256:00bb173cc03fd3107ac9a48a227256a09cd30ee39a241d94e6ea62f37c9f047d - 0.0% (128 Bytes)
[#008] sha256:ee8187f37c621f199d15231c0f3b788ae4b0dbc97f943be643c4316a992f0f6c - 0.0% (169 Bytes)
[#009] sha256:377399f538b06c6e80afb1f5fae9b75074eccf1f70c9690a55be54fca07c9060 - 0.01% (5.29 KB)
[#010] sha256:15dce86ff53f76b312848791dde7ae1539af1c4dcf8976478c500b0bb2224cb7 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.20.5-armv7.tar.gz / # buildkit
2025-01-08 12:08:14 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)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
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:36b71edc17101726e92a1fd7c9c1bc53c2517d227d1640d5ff0ea7db3cd85d44
2025-02-04 00:55:44 UTC
90.2 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:0152682790bba2052e0b7dc52872083c01ea53c598fe87e3fe3eab5f9d4228cb - 4.32% (3.9 MB)
[#001] sha256:93a6e743088f98cbf58808b4332ed33916cb59a3a47d14d4e84d6babea8c2d4d - 0.0% (984 Bytes)
[#002] sha256:6918dd27455991749057172332462cb1559aaf917757c8c2ee06cc9984337a8a - 1.11% (1 MB)
[#003] sha256:1d0e47e0599461b5424f86fc5119d0c886b2f2496c32dc247be1bb3f7d4f35d7 - 0.0% (177 Bytes)
[#004] sha256:2a0e6b946cff9ff5df0859cbbce617e5e86debba1e749eeeafab246c95e9e593 - 0.0% (116 Bytes)
[#005] sha256:608b2d1b3ef2c1edd206271e673fa1a6df0911cf659764759c9be7bfe07ded9a - 94.55% (85.3 MB)
[#006] sha256:d5dd6663f61f30208409bd65d61ec1400c7ce9f1c18e64c3256b0540555d25e0 - 0.01% (8.99 KB)
[#007] sha256:37141d3838d430945d7ff800eb97d75302b95a92ed85015a24115ac46cc6e32e - 0.0% (128 Bytes)
[#008] sha256:bfd504cbda80ef8e725315888611c802a891198ca31756e1efdb8edf221f77c0 - 0.0% (170 Bytes)
[#009] sha256:a3948a8c0e051940cbc7ad8287b5b41c1ee655c234f4cb3e096b9725fdeaa826 - 0.01% (5.29 KB)
[#010] sha256:fa3a50aab2582c7a321a81523f74f76d9adb721f8fb1c9f002c900a9550fb3d6 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.20.5-aarch64.tar.gz / # buildkit
2025-01-08 12:08:14 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)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
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:ddf94eec514e960fd9fd84c1354a5f7ad54ff6132f07589e4c524699980799ce
2025-02-04 00:55:44 UTC
95.3 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:3383dff810cd4af0350465f92c0a5f925af062ceac665a36e91384093216a7db - 3.58% (3.41 MB)
[#001] sha256:05116dccfdc2d0bf2a67d0782cf5bd639f2a5ce44e8b447cd282bbc38e622db1 - 0.0% (984 Bytes)
[#002] sha256:3657ea2875b611c56ede877418a82cff7921c554c0a7222d9e81e9e5fb268180 - 1.04% (1020 KB)
[#003] sha256:c87dfada9cea4f2144066ca8cafe638b4ebbb664115a9df78feaafab04fc58f8 - 0.0% (177 Bytes)
[#004] sha256:69e2751d9662874332e649fa7406497271f931e4971691429387954a848326d8 - 0.0% (116 Bytes)
[#005] sha256:349e0b6c0b2c6d0c6a79afcb029d8fe4babe0583aa942073c4b5d88bfd394a45 - 95.36% (90.8 MB)
[#006] sha256:53463d1f11fc432e935b43b6654ca6403e4dde9d3954b13e8a6d7f05cfc761d4 - 0.01% (8.99 KB)
[#007] sha256:4ff84a1af647b82ace9774dc939951fac5a731b5e71b62d8c674b3142d8acfa2 - 0.0% (128 Bytes)
[#008] sha256:b24af0e707698d62663b81d1f900a4a04486e93f881de787a32219ba559a9d30 - 0.0% (171 Bytes)
[#009] sha256:7d3082f83fcd94cb6c282b62320735433b9a9f0fb8670b0a68151bba2cb41a55 - 0.01% (5.29 KB)
[#010] sha256:1b199bba0a969522a058ac754ccea3f5be8b9868ad58c2c3a3a0972379ceb347 - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.20.5-ppc64le.tar.gz / # buildkit
2025-01-08 12:08:14 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)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
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:5d2104c468a6286167f6d159b9061c350b7968a4ad2cad6e4d8a31b51bb75213
2025-02-04 00:55:44 UTC
91.1 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:34b7590cc8ea3b21e8c3a0d69270b822d3ba63bc58c6cf0e36c987c95b18eb8d - 3.53% (3.22 MB)
[#001] sha256:9cc93498547eda47632be52e4f9de0f535264be6b5b13bd695df74d21a445ee4 - 0.0% (988 Bytes)
[#002] sha256:4379025cfe409827e83762b8ddf18bccb050a044fa62c5ba40f88f35ee905545 - 1.14% (1.04 MB)
[#003] sha256:1ef0186356e321fef013e99e866a37e8308d9f788f5c47123b149b521575eec0 - 0.0% (175 Bytes)
[#004] sha256:24206bd7240c9a3da106ad9224c974a577cee2bb13977c8f2b4de67741d06e77 - 0.0% (116 Bytes)
[#005] sha256:9fda2396f658d62987ba949753ff0a556b1e13f325c5a6f36f6f86aca5eb1085 - 95.31% (86.8 MB)
[#006] sha256:32d0d61d9f68d3909a4258fd76f5b1238148f4921356c751253e316c2ab9a7b5 - 0.01% (8.99 KB)
[#007] sha256:ea63dd6bb51e62ca6cc3235c7e7fcd645f9492f8b225bd0d2432580da6ade253 - 0.0% (129 Bytes)
[#008] sha256:9cd2382d573621cf87e07ce3b8c42aae858e858484377c77aa1cca239c528f2e - 0.0% (169 Bytes)
[#009] sha256:2d80c3a8a02c00a7b764b01d2189b1ee1174a108d0458a919fc088db3679017e - 0.01% (5.29 KB)
[#010] sha256:76d7a813f85f7b4c8b699d536d0c87497289d6332aec563a9e802d2505679b70 - 0.0% (186 Bytes)
ADD alpine-minirootfs-3.20.5-riscv64.tar.gz / # buildkit
2025-01-08 12:08:14 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)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
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:03443c46448f276bafaf6abce8b0af6940647ec678d5f7ef3f0bd56e9cf12efc
2025-02-04 00:55:44 UTC
99.4 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA25602e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
PG_VERSION14.15
[#000] sha256:3e71c43ed556c3ed564b517d9141db651f4134655f96c8731767c14c6dedc4d0 - 3.32% (3.3 MB)
[#001] sha256:f4c5037007f5ec5364c664cc7501dcd2d9845232b0a497e9079d9aae1a8a7bed - 0.0% (984 Bytes)
[#002] sha256:f0d1ccf5ea6431e9e56eb085f7603e9caf62abdb8eda29ebf7038252c5b53643 - 1.04% (1.03 MB)
[#003] sha256:f6769a9b4ee1a17a041b13661006b51d74b7da02c9d1502cae0a3b7431e2239e - 0.0% (176 Bytes)
[#004] sha256:d172d5a8b87a6700a7739a67fea8d0abda3b9215ccbf0429bad1518ceb4f1257 - 0.0% (116 Bytes)
[#005] sha256:97147d0ea237593a088bc70d52a0bb0d10c51d04fb0ac5b4299cc6bb685e1b0b - 95.62% (95.1 MB)
[#006] sha256:99cbbaeaada613c953b2ec22a1e90f6fac6aef1ec7e1face604c88c29ce86d9a - 0.01% (8.98 KB)
[#007] sha256:6ffbfcbb8c9389853119a90deba8debe59b867610a09c541f18e7c513d83bd9f - 0.0% (128 Bytes)
[#008] sha256:58656653223b40ac8e525535363b43f42c398e244864d78b55a304767c2818a7 - 0.0% (170 Bytes)
[#009] sha256:f500677e9646c9b21c648472701a39263f5f23ba56e1ca387e8a08e03a31b4c0 - 0.01% (5.29 KB)
[#010] sha256:ba0cd5d89f0fbc69397244ee214e17e4403bfb3ff0a0f0d5ad368838988f916a - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.20.5-s390x.tar.gz / # buildkit
2025-01-08 12:08:14 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)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
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-04 00:55:44 UTC (buildkit.dockerfile.v0)CMD ["postgres"]