2023-12-08 11:47:00 UTC
86.6 MB
llvm15-dev clang15
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR11
PG_SHA2562cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
PG_VERSION11.22
[#000] sha256:661ff4d9561e3fd050929ee5097067c34bafc523ee60f5294a37fd08056a73ca - 3.75% (3.25 MB)
[#001] sha256:78d5f75d0d369cd541cf0a820f64f2dc12f0b847e733727f56a5dbae64334497 - 0.0% (1.23 KB)
[#002] sha256:6a6e46f43853b9cb6a83754dbf20f0f0f24e60aa95947f37a24883a9f6369d36 - 0.0% (116 Bytes)
[#003] sha256:461502dc2d2fc61c1d6eb622fb333b90f498090c5d4c79e5b49199b5e558b32f - 96.23% (83.4 MB)
[#004] sha256:3143a11ba1b82cec139ce0b0f6c8895e4be26c70b5c02f67beca350df035e7a4 - 0.01% (7.8 KB)
[#005] sha256:9ea4ef0bd3f1ce32f77be9309ba63d482de988c729c37cd87dfb0322eb576029 - 0.0% (129 Bytes)
[#006] sha256:7637f1518faaa79483494dc8dd7553d5a52c79d11acce381841bbbe435de12bb - 0.0% (170 Bytes)
[#007] sha256:8b4c3c3e77d69865558473bddc3d02e6c47e902a9a9f501f31d65944d0071ca0 - 0.01% (4.67 KB)
/bin/sh -c #(nop) ADD file:1f4eb46669b5b6275af19eb7471a6899a61c276aa7d925b8ae99310b14b75b92 in /
2023-12-08 01:20:49 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2023-12-08 11:47:00 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=11
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=11.22
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2023-12-08 11:47:00 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 ; 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 ; 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 --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 ; echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"postgres-sbom","packages":[{"name":"postgres","versionInfo":"11.22","SPDXID":"SPDXRef-Package--postgres","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/[email protected]?os_name=alpine&os_version=3.19"}],"licenseDeclared":"PostgreSQL"}]}' > /usr/local/postgres.spdx.json ; postgres --version # buildkit
2023-12-08 11:47:00 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
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2023-12-08 11:47:00 UTC
85.5 MB
llvm15-dev clang15
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR11
PG_SHA2562cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
PG_VERSION11.22
[#000] sha256:0803c38384d9fd0f9afaec8fd13d267547b660dcd46bb92a3d63c5d76e78b04c - 3.53% (3.02 MB)
[#001] sha256:c0fe015dc9b3d1803ee85ee6a801a8a7e2d6311686b2f37622ccbe41860d2ed3 - 0.0% (1.23 KB)
[#002] sha256:7a72ec48bcaaa26d249e92564caffd5723eebb17b13de29d037b52a50729964c - 0.0% (116 Bytes)
[#003] sha256:0dc8cc77dd06177640cf3e4477dfa96285cb3fb3f61ba52afc7ea0751eca4548 - 96.46% (82.5 MB)
[#004] sha256:0520765392832afb8ce8ad5311d9f60c9174cdaaaed35d74f593f0932abde779 - 0.01% (7.8 KB)
[#005] sha256:a46e58400f5cb63bf32ae08957bebe3f1535cf601fb88a8fa4c0cfb28e7c0a0b - 0.0% (129 Bytes)
[#006] sha256:c6ff1d22e5271320770eb0e7584bd9afc2ed72fcaac5f7edc2be07a6db897f46 - 0.0% (170 Bytes)
[#007] sha256:fb14f15e37ff577451898ed7eb8c5d9ab85ad4b4663e79b9d7ee8fd78f487418 - 0.01% (4.67 KB)
/bin/sh -c #(nop) ADD file:d43ed267a41631ce0e5a4ef5aac821a75300a83f85ecb6259f5616852f89e989 in /
2023-12-08 01:49:15 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2023-12-08 11:47:00 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=11
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=11.22
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2023-12-08 11:47:00 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 ; 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 ; 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 --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 ; echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"postgres-sbom","packages":[{"name":"postgres","versionInfo":"11.22","SPDXID":"SPDXRef-Package--postgres","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/[email protected]?os_name=alpine&os_version=3.19"}],"licenseDeclared":"PostgreSQL"}]}' > /usr/local/postgres.spdx.json ; postgres --version # buildkit
2023-12-08 11:47:00 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
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2023-12-08 11:47:00 UTC
80.4 MB
llvm15-dev clang15
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR11
PG_SHA2562cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
PG_VERSION11.22
[#000] sha256:1086c24c41097f090ce847d192c11307e1715eeb563a2cf4f410b2a199ae1942 - 3.46% (2.78 MB)
[#001] sha256:27ced7217800ddaf8587a82f36031cc326f5fad72be92ddaf3190274dfaf9349 - 0.0% (1.23 KB)
[#002] sha256:775f31fd0943cf8717d7b087da7493680a94ea12d1b324c7a9a10aa97815a8d9 - 0.0% (116 Bytes)
[#003] sha256:9178fddae07e1c16c889ec5103e15fd3186c0c65a054de3e416d44c9f51cb827 - 96.52% (77.6 MB)
[#004] sha256:7268b6dcafdb6e515ac8a1ba7673b1e99d786dceb16da5d1fc8d6e18b7487f29 - 0.01% (7.8 KB)
[#005] sha256:0145b0ee5460f70d369f650cdd2d171ec8e24260d1fe8e3f2cf7f5986909c97f - 0.0% (128 Bytes)
[#006] sha256:4a789037be6b603c164038dd705c870c22c6da7846f64ab7d2c10175bbe5f805 - 0.0% (170 Bytes)
[#007] sha256:66e68bf160203c84de39a5814b5acce1ce2958d16460aa9cdd9089980925358c - 0.01% (4.67 KB)
/bin/sh -c #(nop) ADD file:13b9291053208eec61cd7c97bac2fa154380ad8d10182567763eea3e10c5882f in /
2023-12-08 01:57:20 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2023-12-08 11:47:00 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=11
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=11.22
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2023-12-08 11:47:00 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 ; 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 ; 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 --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 ; echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"postgres-sbom","packages":[{"name":"postgres","versionInfo":"11.22","SPDXID":"SPDXRef-Package--postgres","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/[email protected]?os_name=alpine&os_version=3.19"}],"licenseDeclared":"PostgreSQL"}]}' > /usr/local/postgres.spdx.json ; postgres --version # buildkit
2023-12-08 11:47:00 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
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2023-12-08 11:47:00 UTC
85.5 MB
llvm15-dev clang15
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR11
PG_SHA2562cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
PG_VERSION11.22
[#000] sha256:c303524923177661067f7eb378c3dd5277088c2676ebd1cd78e68397bb80fdbf - 3.73% (3.19 MB)
[#001] sha256:95b04ba977a6ee37b8b3c87adac565605b88cfec398fd4daf97fa685414e2ef8 - 0.0% (1.23 KB)
[#002] sha256:e1e0d29db9882cf21901e330bd0ffb89af524dd251a76d114937364110879528 - 0.0% (116 Bytes)
[#003] sha256:82a9aece6c288ccb448b57cf70e0f35ae11ae8fb0eaaf9203a4c44966e543f07 - 96.25% (82.3 MB)
[#004] sha256:eca141f014d2d0781a378d50328400704b8b4447dd7ac499adc4166affd7a096 - 0.01% (7.79 KB)
[#005] sha256:a5a98b60dc47fecf909896aa771f800b882ce2b66fde4de157a68049848bdbcc - 0.0% (128 Bytes)
[#006] sha256:0623c002d73a9fa2d44f4e659c0a0d3bb3f3e4c4f086b6b85395c3c120d8f1cc - 0.0% (168 Bytes)
[#007] sha256:e03159cf28863ad81a66df210c6f36d55ab1102bd63335122d1a826892f4fd2c - 0.01% (4.67 KB)
/bin/sh -c #(nop) ADD file:8182c73f869a899cf624a59c400acb8226776d15e4d3a0d240a94e65340540d0 in /
2023-12-08 01:39:30 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2023-12-08 11:47:00 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=11
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=11.22
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2023-12-08 11:47:00 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 ; 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 ; 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 --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 ; echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"postgres-sbom","packages":[{"name":"postgres","versionInfo":"11.22","SPDXID":"SPDXRef-Package--postgres","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/[email protected]?os_name=alpine&os_version=3.19"}],"licenseDeclared":"PostgreSQL"}]}' > /usr/local/postgres.spdx.json ; postgres --version # buildkit
2023-12-08 11:47:00 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
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2023-12-08 11:47:00 UTC
90.8 MB
llvm15-dev clang15
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR11
PG_SHA2562cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
PG_VERSION11.22
[#000] sha256:243ac51c334a47917a84be93e972ee6378987e9b3b917a5a8df29025e161c1f3 - 3.53% (3.2 MB)
[#001] sha256:6f51ffbccda0d404d0ffeda33fa1a948c925d8f36f5899665a15528b160466a7 - 0.0% (1.23 KB)
[#002] sha256:d4c6b15c27b5856f2fea6198b0dfc83bfee906d7b94102503c986f1e789b8dd3 - 0.0% (116 Bytes)
[#003] sha256:450531535198af45e16d13ddf7ce9531d1a6c8cb256a2aaeb3a086132e5fbbd4 - 96.46% (87.6 MB)
[#004] sha256:fcf567ff94f73f8b4bdd3e0a433835aa31f8da52146b58e4f75a4cbb6c7e4172 - 0.01% (7.8 KB)
[#005] sha256:66bfe6f6449e3cc6cf656fb7e704973139270fc6047f4539f0e20beb8ed6d689 - 0.0% (128 Bytes)
[#006] sha256:bfc97ba297f4ad02c1005daf32b9f9d7fa9422da0f3c7b07fbf7571bc0d33fbd - 0.0% (169 Bytes)
[#007] sha256:10a86ca96d7b3812e817ccd00952b4d04eb89196b73a9a57f925b3605b713152 - 0.01% (4.67 KB)
/bin/sh -c #(nop) ADD file:052421189f8d269382daaaa8beb63c687e4d8ca908c421abdce53bcc627a40b4 in /
2023-12-08 01:22:51 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2023-12-08 11:47:00 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=11
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=11.22
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2023-12-08 11:47:00 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 ; 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 ; 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 --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 ; echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"postgres-sbom","packages":[{"name":"postgres","versionInfo":"11.22","SPDXID":"SPDXRef-Package--postgres","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/[email protected]?os_name=alpine&os_version=3.19"}],"licenseDeclared":"PostgreSQL"}]}' > /usr/local/postgres.spdx.json ; postgres --version # buildkit
2023-12-08 11:47:00 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
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2023-12-08 11:47:00 UTC
94.9 MB
llvm15-dev clang15
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR11
PG_SHA2562cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
PG_VERSION11.22
[#000] sha256:0fca3ee44ced87b7184bc23390283fdf10cfae0e844a25b785dd11c463815227 - 3.26% (3.09 MB)
[#001] sha256:98867b7d9ef52d8ea690ad6ab7a1162c3ffb223f498cfe46c5a0c19b26b5df4a - 0.0% (1.23 KB)
[#002] sha256:eca1d0e320956171da67959a489db8954c94e3093132a48ee544fcaf765d7784 - 0.0% (116 Bytes)
[#003] sha256:22fb00dd51da13ead231162788e37d45da7303d6354c161bc2193db1a068fa96 - 96.73% (91.8 MB)
[#004] sha256:6e361b5713fd7387d3d7afe1e63e9d65edbd6d2596e6256acdb15e895bd4e832 - 0.01% (7.8 KB)
[#005] sha256:6bf8eeb2b44c369fd376d3ad1b4cc8f3120932398f844d716e62594bfc4ae5b7 - 0.0% (129 Bytes)
[#006] sha256:364fb327f87f37ee081f9612ad45d03dfa3c253ad98ec66906751b303505e369 - 0.0% (170 Bytes)
[#007] sha256:cf7fa4af6338aa402c1b5b750c4a8dc75e061805cd81f4d1e7e451f88fd066f2 - 0.0% (4.67 KB)
/bin/sh -c #(nop) ADD file:47e0982fc3ae485c06d46f3c0022afd39ed7ec95fe755c2391e6b0cfcae65dfc in /
2023-12-08 01:41:51 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2023-12-08 11:47:00 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=11
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=11.22
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2023-12-08 11:47:00 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 ; 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 ; 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 --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 ; echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"postgres-sbom","packages":[{"name":"postgres","versionInfo":"11.22","SPDXID":"SPDXRef-Package--postgres","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/[email protected]?os_name=alpine&os_version=3.19"}],"licenseDeclared":"PostgreSQL"}]}' > /usr/local/postgres.spdx.json ; postgres --version # buildkit
2023-12-08 11:47:00 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
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2023-12-08 11:47:00 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2023-12-08 11:47:00 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.