2022-08-17 11:03:56 UTC
82 MB
en_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR14
PG_SHA256d4f72cb5fb857c9a9f75ec8cf091a1771272802f2178f0b2e65b7b6ff64f4a30
PG_VERSION14.5
[#000] sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49 - 3.26% (2.68 MB)
[#001] sha256:85c3ef7cf9a6beeec8ff5b757e39ad71347ec77e891ad4d7784b14019583b223 - 0.0% (1.26 KB)
[#002] sha256:ac29cc04759ac7a5bf2b2df30b2272ec2eddee0feb4eedd6b50afe7056c3194b - 0.0% (147 Bytes)
[#003] sha256:2a37e244d86bf079f46a22a20d896d8b0e4e1dbff849d1c399d8ef6209661465 - 95.17% (78.1 MB)
[#004] sha256:36d7202aa1cff1485e2200b2b3a33e070531da4c5541bd117f35253a944a0b1a - 0.01% (8.99 KB)
[#005] sha256:3acdddb9790a8c4cd9d07ca6ff721e53d823633d657cd7dc82702d2b7fe14282 - 0.0% (162 Bytes)
[#006] sha256:9a938759f2bf4769486746117f5608b0bdef9bcce3e55c85b8000cf7fd9a136b - 0.0% (194 Bytes)
[#007] sha256:5d65a62412489e32d9805551e2cac85ac99195303d79b15058d5f7d405a78f63 - 0.01% (4.59 KB)
[#008] sha256:97f17a9bd0339661c654e4280522801cd96bd6c17cd6d5f1182e6a62d363b94e - 1.55% (1.27 MB)
[#009] sha256:c4bad4b7212efd2263e3b310b2a6a60ee37de7e6dbe26d4f80e9257aa7f8da11 - 0.0% (1.17 KB)
[#010] sha256:d6c2a542f951f530a921db21466675d78218c2424a6ed590d69bc249ea1fb12a - 0.0% (213 Bytes)
[#011] sha256:06fffe16f2726f2b48ecde89c56de50f7353a46c506a32d96dd70da68fee9bb8 - 0.0% (1.7 KB)
[#012] sha256:cdd7702653c23d91624bd000ba5fd4e714425599d576249d35debfe48ade6b23 - 0.0% (330 Bytes)
[#013] sha256:d67549be614ccd19c2b839a95ed853a47cd6c5a4229f7b0d988286166f06b598 - 0.0% (1.8 KB)
[#014] sha256:ef394aaf6df25948e68fa06e1c719ed1f62e2a484153817b1e553899f0a5935f - 0.0% (137 Bytes)
[#015] sha256:0821eb26c00160f6d79799411680790ea453a250462468ce018f8844dc60f403 - 0.0% (399 Bytes)
/bin/sh -c #(nop) ADD file:2a949686d9886ac7c10582a6c29116fd29d3077d02755e87e111870d63607725 in /
2022-08-09 17:19:53 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2022-08-09 23:10:36 UTC/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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql
2022-08-09 23:10:37 UTC/bin/sh -c #(nop) ENV LANG=en_US.utf8
2022-08-09 23:10:37 UTC/bin/sh -c mkdir /docker-entrypoint-initdb.d
2022-08-09 23:14:17 UTC/bin/sh -c #(nop) ENV PG_MAJOR=14
2022-08-12 00:44:19 UTC/bin/sh -c #(nop) ENV PG_VERSION=14.5
2022-08-12 00:44:19 UTC/bin/sh -c #(nop) ENV PG_SHA256=d4f72cb5fb857c9a9f75ec8cf091a1771272802f2178f0b2e65b7b6ff64f4a30
2022-08-12 00:47:33 UTC/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 bison coreutils dpkg-dev dpkg flex gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers llvm-dev clang g++ 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'; ./configure --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-krb5 --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; make install-world; 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 su-exec tzdata zstd icu-data-full ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version
2022-08-12 00:47:34 UTC/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
2022-08-12 00:47:35 UTC/bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
2022-08-12 00:47:35 UTC/bin/sh -c #(nop) ENV PGDATA=/var/lib/postgresql/data
2022-08-12 00:47:35 UTC/bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
2022-08-12 00:47:35 UTC/bin/sh -c #(nop) VOLUME [/var/lib/postgresql/data]
2022-08-12 00:47:35 UTC/bin/sh -c #(nop) COPY file:232dce6cf487afb0c0cc43d38932ff29614a74b57cd04557dc7398e6d2b93b8f in /usr/local/bin/
2022-08-12 00:47:35 UTC/bin/sh -c #(nop) ENTRYPOINT ["docker-entrypoint.sh"]
2022-08-12 00:47:36 UTC/bin/sh -c #(nop) STOPSIGNAL SIGINT
2022-08-12 00:47:36 UTC/bin/sh -c #(nop) EXPOSE 5432
2022-08-12 00:47:36 UTC/bin/sh -c #(nop) CMD ["postgres"]
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --update --no-cache bash openssl shadow netcat-openbsd grep # buildkit
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; deluser postgres; groupmod -g 9999 ping; addgroup -g 999 -S postgres; adduser -u 999 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres # buildkit
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; chown -R postgres:postgres /var/lib/postgresql; chown -R postgres:postgres /var/run/postgresql; chown -R postgres:postgres "$PGDATA" # buildkit
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)COPY start.sh /usr/bin/ # buildkit
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)COPY init-user-db.sh /docker-entrypoint-initdb.d/ # buildkit
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c chmod +x /usr/bin/start.sh; chmod +xr /docker-entrypoint-initdb.d/init-user-db.sh # buildkit
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /mnt/data; chown postgres:postgres /mnt/data; # buildkit
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)VOLUME [/mnt/data]
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c echo "root:$(openssl rand -base64 12)" | chpasswd # buildkit
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)USER postgres
2022-08-17 11:03:56 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["start.sh"]
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.