2022-11-21 18:16:39 UTC
81 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_SHA256508840fc1809d39ab72274d5f137dabb9fd7fb4f933da4168aeebb20069edf22
PG_VERSION14.6
[#000] sha256:6875df1f535433e5affe18ecfde9acb7950ab5f76887980ff06c5cdd48cf98f4 - 3.19% (2.58 MB)
[#001] sha256:0d7fcb69f233f922990063ef3c9f729d2762430e18efe4299efce9f71380466d - 0.0% (1.25 KB)
[#002] sha256:122972bf469797082ac5e297ad29c1cd30e38e85c834d0f5658c620acfe93df0 - 0.0% (149 Bytes)
[#003] sha256:0b49c6748e8585e1cb15c63ffb2a5026776ee440b0e7321e1c0138d6c8ead821 - 95.18% (77.1 MB)
[#004] sha256:5e50e0f48b945d49bc7c5d4433617e297c12518983188cda33898c5f65f1f3ff - 0.01% (8.99 KB)
[#005] sha256:b0cf7c2254e0b3d58b67b1b1f2eb20c88c283c36cf096fe912f1288fe58a2156 - 0.0% (161 Bytes)
[#006] sha256:5a95c3206c746307ed639475678119a94e808f7ee06318e50cc0768ce97b6dce - 0.0% (193 Bytes)
[#007] sha256:5f3d07f8a548b17c533d1106de0f58520688afbd8d6cb68e4e2c00e2d4ada65f - 0.01% (4.59 KB)
[#008] sha256:ef11bffd29f787bb03007c1be29989dc1fdf7656e1378ce78f70d79579912585 - 1.61% (1.3 MB)
[#009] sha256:571b226910f6e29c23f1b936864fcd76996006586d12f3504dac48e238783449 - 0.0% (1.17 KB)
[#010] sha256:287ec319fdbd484962a3b6312f133cdf69e6583f81e5cb229328e6693d138332 - 0.0% (222 Bytes)
[#011] sha256:0b3b4ab7b14c518cadd3eb1af32404d487ef8613c63bf9f5daea976cea6fbf96 - 0.0% (1.84 KB)
[#012] sha256:43c2736ed729e510a2d50c78be97d40d52208c9ff3352496488e4422efda260f - 0.0% (330 Bytes)
[#013] sha256:0faf9c5650185c3a63b6e07d3cc213b604f87e3c2997a49ec60eb750ed7dbe6b - 0.0% (1.94 KB)
[#014] sha256:2a72161558d7b126a1080925ea43b83cc2f8d3f1e1cfbbf669a5c457aa7759d3 - 0.0% (137 Bytes)
[#015] sha256:31c317345396a5d0f100514af48899878b0905e723c831a191beaf87534a0f1c - 0.0% (400 Bytes)
/bin/sh -c #(nop) ADD file:57d621536158358b14d15155826ef2dd4ca034278044111ec0aaf6717016e569 in /
2022-11-12 03:39:38 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2022-11-12 05:31:39 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-11-12 05:31:39 UTC/bin/sh -c #(nop) ENV LANG=en_US.utf8
2022-11-12 05:31:39 UTC/bin/sh -c mkdir /docker-entrypoint-initdb.d
2022-11-12 05:34:18 UTC/bin/sh -c #(nop) ENV PG_MAJOR=14
2022-11-12 05:34:18 UTC/bin/sh -c #(nop) ENV PG_VERSION=14.6
2022-11-12 05:34:18 UTC/bin/sh -c #(nop) ENV PG_SHA256=508840fc1809d39ab72274d5f137dabb9fd7fb4f933da4168aeebb20069edf22
2022-11-12 05:36:38 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-11-12 05:36:39 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-11-12 05:36:40 UTC/bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
2022-11-12 05:36:40 UTC/bin/sh -c #(nop) ENV PGDATA=/var/lib/postgresql/data
2022-11-12 05:36:40 UTC/bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
2022-11-12 05:36:40 UTC/bin/sh -c #(nop) VOLUME [/var/lib/postgresql/data]
2022-11-12 05:36:40 UTC/bin/sh -c #(nop) COPY file:232dce6cf487afb0c0cc43d38932ff29614a74b57cd04557dc7398e6d2b93b8f in /usr/local/bin/
2022-11-12 05:36:40 UTC/bin/sh -c #(nop) ENTRYPOINT ["docker-entrypoint.sh"]
2022-11-12 05:36:41 UTC/bin/sh -c #(nop) STOPSIGNAL SIGINT
2022-11-12 05:36:41 UTC/bin/sh -c #(nop) EXPOSE 5432
2022-11-12 05:36:41 UTC/bin/sh -c #(nop) CMD ["postgres"]
2022-11-21 18:16:38 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --update --no-cache bash openssl shadow netcat-openbsd grep mawk # buildkit
2022-11-21 18:16:39 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-11-21 18:16:39 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-11-21 18:16:39 UTC (buildkit.dockerfile.v0)COPY start.sh /usr/bin/ # buildkit
2022-11-21 18:16:39 UTC (buildkit.dockerfile.v0)COPY init-user-db.sh /docker-entrypoint-initdb.d/ # buildkit
2022-11-21 18:16:39 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-11-21 18:16:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /mnt/data; chown postgres:postgres /mnt/data; # buildkit
2022-11-21 18:16:39 UTC (buildkit.dockerfile.v0)VOLUME [/mnt/data]
2022-11-21 18:16:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c echo "root:$(openssl rand -base64 12)" | chpasswd # buildkit
2022-11-21 18:16:39 UTC (buildkit.dockerfile.v0)USER postgres
2022-11-21 18:16:39 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["start.sh"]
2022-11-21 18:16:39 UTC (buildkit.dockerfile.v0)HEALTHCHECK &{["CMD-SHELL" "psql -d \"postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/$POSTGRES_DB\" -c \"select now()\" || exit 1"] "0s" "0s" "0s" '\x00'}
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.