sha256:1b942f3f02ce51e06313ccee0283a46f1adac5fa6d3af9388b8dda36644e1722
2024-08-08 16:52:20 UTC
98 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_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:9d36213c2c70043b8757c7d7ef3b21782d1ad5b2dd6d50df305e14054d6a1cb7 - 3.38% (3.31 MB)
[#001] sha256:5f876a3ed3fe4b0dd53795c022a4b718dbecee7bc6877fbf9ffdcd8959e73dce - 0.0% (982 Bytes)
[#002] sha256:594ff84381b006b29aeeab5a3944d74008899f0541840de0db5f15486bf434b4 - 1.07% (1.04 MB)
[#003] sha256:fcf025f95994d0019d48aee086f9c6695f68abf0b1387c3b916525a7886cf6f3 - 0.0% (174 Bytes)
[#004] sha256:cb6bf0b74a292a06d34d4bcdc3e848c9d2247334d2dc07e1940b2a7953c94d8a - 0.0% (114 Bytes)
[#005] sha256:d400a250377e22efcc78b394bc384db71a6409834359c07f274103893a2a034d - 95.54% (93.7 MB)
[#006] sha256:59fdbcc266814333c9a7e762567c93fc105d2913f94904b6dc8ebd7848c336de - 0.01% (8.98 KB)
[#007] sha256:ff6551fd7a695a38f8e59323e029d5b59e8324c02d84f7fb0ee17b0fc53c6d2a - 0.0% (129 Bytes)
[#008] sha256:f6e0084c4d4987af7434d4ccc738d3c104327c1269797a6b398e6a8ba50af0dd - 0.0% (172 Bytes)
[#009] sha256:2b5227fc9a23f3c41169bf14114c8ba498f351bd4d4a20773a403b067fba46b2 - 0.01% (5.29 KB)
[#010] sha256:d5f26173bf2f057e0671c2c4e59fd56efa9b5ac15d1374da095a6f3875ee659c - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.20.3-x86.tar.gz / # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:638c4cf7d9b9872b57043b0fc1eccf40852e99b192876e009536c13243900fd8
2024-08-08 16:52:20 UTC
93.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_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:da9db072f522755cbeb85be2b3f84059b70571b229512f1571d9217b77e1087f - 3.71% (3.46 MB)
[#001] sha256:8494eb6e60d49ea8614ea6e1dc5b9b0d5b544c0b9b6daa20489b1574deb076e0 - 0.0% (985 Bytes)
[#002] sha256:fb7820f88ab0e50a90116b4a4e89ed25f1d27325f55354860d969866b183c23e - 1.15% (1.07 MB)
[#003] sha256:1229951d7bca5fcbd2938a18144382426be93b804ea48e19bfc5f7bab2d1494a - 0.0% (173 Bytes)
[#004] sha256:20aab744d539d5ccdc1d3e6914a244fb060f804ff79174114642e607a0a74807 - 0.0% (116 Bytes)
[#005] sha256:37266450a5f9f5ae8c117dabe872b459dd07bc59dc0ee932a4fd47e2ba389b4b - 95.12% (88.6 MB)
[#006] sha256:0b0723ef03a97f2ec325a7cbbd8ddb092c7d1c46884c711939d3a02600c6b947 - 0.01% (8.99 KB)
[#007] sha256:a15e71dfbb2248d46ed7c6611c0fa7179841cee782bdc0643c0433b9bfee8d33 - 0.0% (128 Bytes)
[#008] sha256:4a3e8948348d12241a4259a47bba4cfd746a891bc6671a78f5ca7db2c5388f32 - 0.0% (171 Bytes)
[#009] sha256:bb7cdab9cfb5ef5a3067b6da17244627fa391192e6eb881af493161dd3d3ae4c - 0.01% (5.29 KB)
[#010] sha256:e41b68640e188f9f646635988d4dd32f82a45ecb3e424615faf51d66a038c78d - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:36dae19410ed5ba6262c3997ba300bd1a3fbf71a786e9d527802731491190be9
2024-08-08 16:52:20 UTC
91.6 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_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:655a2516811563036720a66963f9c64bc14eb53aac8eeceaebcda6bf661651bb - 3.5% (3.21 MB)
[#001] sha256:c571936168ff49222fc45202f5453daceaaad85841344e7a56766ac0c06bcc0b - 0.0% (983 Bytes)
[#002] sha256:1fd27d05dad1bb8227f4e72ddcbdcd2601f74b55f8b2929cff613d173bc82672 - 1.13% (1.04 MB)
[#003] sha256:68300102007bc93827d658bcc2e3930a994d78385553143780dadcc3f284915a - 0.0% (177 Bytes)
[#004] sha256:fef5933ae7af9d77048b5e8ce8dc6807af55c837feaeaecb0fac68b44b61199d - 0.0% (116 Bytes)
[#005] sha256:a5df5222d0822c985d72e6ac3bf8fdc55bf02aec9b06b89bb62270391b3fa8d8 - 95.35% (87.4 MB)
[#006] sha256:d0cf30ccaa24eed05d75b2e231c85ae0d9004049b0794a1c10dacfabb8c36993 - 0.01% (8.99 KB)
[#007] sha256:d9cb3a6577cd21294f9fc3b36061109bf8af8c717320d56851ae2b50e9d1e1ca - 0.0% (129 Bytes)
[#008] sha256:93f25cb448eaeed8356ecd1445ce73d6ede329c505ff8e5002d3dc04544711ca - 0.0% (169 Bytes)
[#009] sha256:bf3a7465706e3e8eed111f2cdcfaee5da22a7e643a6217ac13e07b97a45bf0f8 - 0.01% (5.29 KB)
[#010] sha256:3d685b0cde4ed1a13b85cb6685605731889be79374fdffc4e5c98ac990647967 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.20.3-armhf.tar.gz / # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:60283e5595a5802e0d8d4f461696145a34235ffc7b0d4a839647a0c18c151409
2024-08-08 16:52:20 UTC
86.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_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:2723bbe95689a46bd4cbe83e27fb42475660f41b02c96d21411fa76d803e8553 - 3.43% (2.95 MB)
[#001] sha256:7c21ecb73dc55fd83632acacd41b321b4eaec1e1713eebdb34dd26505cb4f6a9 - 0.0% (984 Bytes)
[#002] sha256:7da6f24cb862024156e04c8278ef84e0343ffffefc262f30e35f293bb46a8cd8 - 1.2% (1.04 MB)
[#003] sha256:01d888b7309f123d800f8af6145d64abed32e528f1a44db6bf5788f93a4b0a5a - 0.0% (178 Bytes)
[#004] sha256:d840479dd2ab0d81f2a5784be112c99207d6d7c0a4ab7332367973bacf1ed7b0 - 0.0% (116 Bytes)
[#005] sha256:1e812f44ba8fd9700ed6f00665a4ef043118c97eb2d7ebf7fe3db290d4cb4c10 - 95.35% (82.2 MB)
[#006] sha256:caec29ee6c62810bd8fc59994f19d26f4ba2de0dfb84823ed5f40d3f57028216 - 0.01% (8.99 KB)
[#007] sha256:cdeb89de3714b730bd6387da8e32fec06872026ee0730e13cda1aa6db3fe6481 - 0.0% (128 Bytes)
[#008] sha256:b58493fc18f7fbb3431c8f6e53e90d530eaee844bc722ecf8eb1fdc5a37e6dde - 0.0% (171 Bytes)
[#009] sha256:8786a5eff324a19797d9eab78cd828172a718a35e47a980086e96611f07e7e7e - 0.01% (5.29 KB)
[#010] sha256:0b9465f499dbc0e5f80c5670a07f4b9a2b21560e932c51a7fcae2aadc907ac3b - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.20.3-armv7.tar.gz / # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:4affea4985dd0199b247acdf70e6d52d9739e1769351a642c8e0e6fe06dfca50
2024-08-08 16:52:20 UTC
92.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_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:9986a736f7d3d24bb01b0a560fa0f19c4b57e56c646e1f998941529d28710e6b - 4.2% (3.9 MB)
[#001] sha256:282ccaec3303c52912b806dcadd0d5ff9ee884124945b8476220f8b85d0a3df9 - 0.0% (985 Bytes)
[#002] sha256:896d994e2a0b432bc3a247e0ad5db617f8492c21a01b2e825af2145fdffbff0e - 1.08% (1020 KB)
[#003] sha256:2c58df13c5baa9c763950aba342771a95955ad465cd88771a853f00336eaa1e6 - 0.0% (175 Bytes)
[#004] sha256:64d7aa59458e719e08cbb7e9364d8c40a3fb8ba9a2e5307fd7434f47633ccec4 - 0.0% (116 Bytes)
[#005] sha256:ef5f1df983d9e8b2132179fb79460ff660ba961538d720d9292bc0db003264ce - 94.7% (87.9 MB)
[#006] sha256:78cfa691a862be92e0551f0348b6fd25ee4bfb34e226777dc92f6420ff77a880 - 0.01% (8.99 KB)
[#007] sha256:35772dc21eca30d65a07aa0307c31263523a6faf57fad3980191b1621526ce4a - 0.0% (128 Bytes)
[#008] sha256:363f55bc899c64be4dcf43a3d984a71d6688d3e8306feb9b53b92f5ba0d3c072 - 0.0% (170 Bytes)
[#009] sha256:62c25499ddd7d67944175f1c87dcf155ff2158658ee6536c8810784e315d4d83 - 0.01% (5.29 KB)
[#010] sha256:f947a2aff123bbd891d69fbcda7979b8e1d19e0161cff25be57bb54aa6c47001 - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.20.3-aarch64.tar.gz / # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:71057c12e251de28182b06e8d10145562b9326a8ad387fd6b1b628b81d568eba
2024-08-08 16:52:20 UTC
97.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_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:22892cdc5e9ff297ac012c2fbe3c12724a3cf4d0a55f5f03f95a7f3ab3e77e36 - 3.5% (3.41 MB)
[#001] sha256:a19a7a1f04747157cc38c8ea66a5ff6b25a502c971bf6b56995e5fefa252c706 - 0.0% (986 Bytes)
[#002] sha256:ac1f73e281b372894f9fde9cf8b361dac11c7e4a99a9be8741f261633ef51c5c - 1.02% (1010 KB)
[#003] sha256:3b1eacc863115d916c7f14fdb7956d45a06cd56072bfcb39abee699970ca8aff - 0.0% (178 Bytes)
[#004] sha256:42f4827aec3ef0953d51b1267885e898aa3f3f28676e7230bb67120dd71f28c2 - 0.0% (116 Bytes)
[#005] sha256:57d70fc9055f41a4f96ac54b6cdb1696c61bdd8eaeb78840bb8d7147a48b4e67 - 95.46% (92.9 MB)
[#006] sha256:dab92ea6f474afd53efba18ebfb14aa009b01d4bd925d8753ab04d6257dfb4e4 - 0.01% (8.99 KB)
[#007] sha256:336800fb09e2746c43495b50fe985eabe3d1cc693dd397bc4653bcf9b45d6e4f - 0.0% (128 Bytes)
[#008] sha256:bb89f6ee9c7d9483279cbfa315c70f62288a7854b714e8719758090b5e1c0997 - 0.0% (170 Bytes)
[#009] sha256:1b06cc73f5c6ad9758c4a55411a7fbd4868c00a67338da1f928cbf9d038e08a6 - 0.01% (5.29 KB)
[#010] sha256:a7223b093e7c162f238187c3735244317d411a6254202f63042e5efb9d6439a0 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.20.3-ppc64le.tar.gz / # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:b85bc4e0e8796161ffba1f35f6f315e5facd3ab0e5076bef2a8df2bad26fdc8c
2024-08-08 16:52:20 UTC
92.9 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_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:ea37667e50ca807fa8abc1caf0d21091cbbe1d66b2c217158fb3e91c2787afaf - 3.46% (3.22 MB)
[#001] sha256:7b8f6d509c68c45b1fdf0a1a4ab907f53741b31f985f51c20dc23cd8a8d6f8c6 - 0.0% (989 Bytes)
[#002] sha256:38504f2cb255ba8a48a6b356aaff81feb5626bcddc945bbd59e7de7b2cbad90a - 1.12% (1.04 MB)
[#003] sha256:35e6b162445bb1f4714c82ba5ee78e748e64dab99e6d2b388464c3cc9685b39d - 0.0% (178 Bytes)
[#004] sha256:71780435e839b7381f0d933d50d5f447819a9afaac78fd20e751316b070c6534 - 0.0% (116 Bytes)
[#005] sha256:f656183770047ddf2fe96336387b0ec2a701befe5cae6cb3809f0313819378d2 - 95.41% (88.7 MB)
[#006] sha256:87c6339958bc27a8d2399aa457833db4fa470735af88aadc83fb5eb417ada193 - 0.01% (9 KB)
[#007] sha256:1897c2e30bbdb05aa08a0e6126a45282a65882f1450f7b0a00e31982da5ce6e3 - 0.0% (129 Bytes)
[#008] sha256:50e5c5cb986baffd49d3e01184bfbec19a8341d8afb0c7ceb9b4c4d87abd1d11 - 0.0% (170 Bytes)
[#009] sha256:44f16db73b1cc0fb90571a38aea8980603bbaa754802ea591a82598909fbc552 - 0.01% (5.29 KB)
[#010] sha256:84e5fe4850dde9e3cf5ab28f15c65ed9f8f3dc4c4c08242a59158f290c28188a - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.20.3-riscv64.tar.gz / # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:5e17015c35f17cd38bff60ae1ee8e6065ac167953c2e34d44d853ab5e9d63a40
2024-08-08 16:52:20 UTC
101 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_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:4261d20208fd5fe57c9f53c86783089a963169d6db6f16306e083ca43f937e0b - 3.26% (3.3 MB)
[#001] sha256:a7cfe172c7a286e8204df6e52175624b09a8eac0323a0ca93d64bb47b1e1d2ea - 0.0% (989 Bytes)
[#002] sha256:bfd3aae594b33f2c3d620dfd8f818b5fa3f522b0ebd8fa55dc50df0de8cb9062 - 1.02% (1.03 MB)
[#003] sha256:c3fe6b14f6ff1c0c299e08d8735b27df365d66f54f2df01a42eebe9fdd7d36e8 - 0.0% (178 Bytes)
[#004] sha256:475d6ddd0abdc1a91a6d685920d91fb766349ac3cc95c6ec4c29882d02db1665 - 0.0% (116 Bytes)
[#005] sha256:bb0633d6e2c02060769b02fe2c6a1ca52af63a8f422984f4f2198a891fc89fcf - 95.71% (97 MB)
[#006] sha256:96032f95e3316bc2826a3114f23a941def52f2b79463a8ebf1965d0c4dc427ca - 0.01% (8.99 KB)
[#007] sha256:a4e842c7a605f37ea4e985a5b29050e782995415cc46422298f9a2026b2ff5a7 - 0.0% (128 Bytes)
[#008] sha256:af818d2d028e6a1a59238f74764a7182990bf8b50cd7f7804558c42f5c703296 - 0.0% (170 Bytes)
[#009] sha256:a7837fe5692826c59d0ca8156e68f488a426329a1b873ee6266b67e1e928d667 - 0.01% (5.29 KB)
[#010] sha256:0392a2e72135b34812d91e0398eeb938d6050059ff14e07fb1a5faf6c3022fac - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.20.3-s390x.tar.gz / # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 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
2024-08-08 16:52:20 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
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.