{"architecture":"arm64","config":{"ExposedPorts":{"5432/tcp":{}},"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","LANG=en_US.utf8","PG_MAJOR=12","PG_VERSION=12.16","PG_SHA256=c5f1fff7a0f93e1ec3746417b0594290ece617b4995ed95b8d527af0ba0e38f3","DOCKER_PG_LLVM_DEPS=llvm15-dev \t\tclang15","PGDATA=/var/lib/postgresql/data"],"Entrypoint":["docker-entrypoint.sh"],"Cmd":["postgres"],"Volumes":{"/var/lib/postgresql/data":{}},"StopSignal":"SIGINT","ArgsEscaped":true,"OnBuild":null},"created":"2023-10-04T14:54:45Z","history":[{"created":"2023-09-28T20:39:33.966748405Z","created_by":"/bin/sh -c #(nop) ADD file:ff3112828967e8004a3264d7ece3f81c88e6a1d44d360b9b5613caab15b41717 in / "},{"created":"2023-09-28T20:39:34.079909813Z","created_by":"/bin/sh -c #(nop)  CMD [\"/bin/sh\"]","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"RUN /bin/sh -c set -eux; \taddgroup -g 70 -S postgres; \tadduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; \tmkdir -p /var/lib/postgresql; \tchown -R postgres:postgres /var/lib/postgresql # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2023-10-04T14:54:45Z","created_by":"ENV LANG=en_US.utf8","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2023-10-04T14:54:45Z","created_by":"ENV PG_MAJOR=12","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"ENV PG_VERSION=12.16","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"ENV PG_SHA256=c5f1fff7a0f93e1ec3746417b0594290ece617b4995ed95b8d527af0ba0e38f3","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"ENV DOCKER_PG_LLVM_DEPS=llvm15-dev \t\tclang15","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"RUN /bin/sh -c set -eux; \t\twget -O postgresql.tar.bz2 \"https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2\"; \techo \"$PG_SHA256 *postgresql.tar.bz2\" | sha256sum -c -; \tmkdir -p /usr/src/postgresql; \ttar \t\t--extract \t\t--file postgresql.tar.bz2 \t\t--directory /usr/src/postgresql \t\t--strip-components 1 \t; \trm postgresql.tar.bz2; \t\tapk add --no-cache --virtual .build-deps \t\t$DOCKER_PG_LLVM_DEPS \t\tbison \t\tcoreutils \t\tdpkg-dev dpkg \t\tflex \t\tg++ \t\tgcc \t\tkrb5-dev \t\tlibc-dev \t\tlibedit-dev \t\tlibxml2-dev \t\tlibxslt-dev \t\tlinux-headers \t\tmake \t\topenldap-dev \t\topenssl-dev \t\tperl-dev \t\tperl-ipc-run \t\tperl-utils \t\tpython3-dev \t\ttcl-dev \t\tutil-linux-dev \t\tzlib-dev \t\ticu-dev \t; \t\tcd /usr/src/postgresql; \tawk '$1 == \"#define\" \u0026\u0026 $2 == \"DEFAULT_PGSOCKET_DIR\" \u0026\u0026 $3 == \"\\\"/tmp\\\"\" { $3 = \"\\\"/var/run/postgresql\\\"\"; print; next } { print }' src/include/pg_config_manual.h \u003e src/include/pg_config_manual.h.new; \tgrep '/var/run/postgresql' src/include/pg_config_manual.h.new; \tmv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; \tgnuArch=\"$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)\"; \twget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; \twget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; \t\texport LLVM_CONFIG=\"/usr/lib/llvm15/bin/llvm-config\"; \texport CLANG=clang-15; \t\t./configure \t\t--enable-option-checking=fatal \t\t--build=\"$gnuArch\" \t\t--enable-integer-datetimes \t\t--enable-thread-safety \t\t--enable-tap-tests \t\t--disable-rpath \t\t--with-uuid=e2fs \t\t--with-gnu-ld \t\t--with-pgport=5432 \t\t--with-system-tzdata=/usr/share/zoneinfo \t\t--prefix=/usr/local \t\t--with-includes=/usr/local/include \t\t--with-libraries=/usr/local/lib \t\t--with-gssapi \t\t--with-ldap \t\t--with-tcl \t\t--with-perl \t\t--with-python \t\t--with-openssl \t\t--with-libxml \t\t--with-libxslt \t\t--with-icu \t\t--with-llvm \t; \tmake -j \"$(nproc)\" world; \tmake install-world; \tmake -C contrib install; \t\trunDeps=\"$( \t\tscanelf --needed --nobanner --format '%n#p' --recursive /usr/local \t\t\t| tr ',' '\\n' \t\t\t| sort -u \t\t\t| awk 'system(\"[ -e /usr/local/lib/\" $1 \" ]\") == 0 { next } { print \"so:\" $1 }' \t\t\t| grep -v -e perl -e python -e tcl \t)\"; \tapk add --no-cache --virtual .postgresql-rundeps \t\t$runDeps \t\tbash \t\tsu-exec \t\ttzdata \t\tzstd \t\ticu-data-full \t\t$([ \"$(apk --print-arch)\" != 'ppc64le' ] \u0026\u0026 echo 'nss_wrapper') \t; \tapk del --no-network .build-deps; \tcd /; \trm -rf \t\t/usr/src/postgresql \t\t/usr/local/share/doc \t\t/usr/local/share/man \t; \techo '{\"spdxVersion\":\"SPDX-2.3\",\"SPDXID\":\"SPDXRef-DOCUMENT\",\"name\":\"postgres-sbom\",\"packages\":[{\"name\":\"postgres\",\"versionInfo\":\"12.16\",\"SPDXID\":\"SPDXRef-Package--postgres\",\"externalRefs\":[{\"referenceCategory\":\"PACKAGE-MANAGER\",\"referenceType\":\"purl\",\"referenceLocator\":\"pkg:generic/postgres@12.16?os_name=alpine\u0026os_version=3.18\"}],\"licenseDeclared\":\"PostgreSQL\"}]}' \u003e /usr/local/postgres.spdx.json \t; \tpostgres --version # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2023-10-04T14:54:45Z","created_by":"RUN /bin/sh -c set -eux; \tcp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; \tsed -ri \"s!^#?(listen_addresses)\\s*=\\s*\\S+.*!\\1 = '*'!\" /usr/local/share/postgresql/postgresql.conf.sample; \tgrep -F \"listen_addresses = '*'\" /usr/local/share/postgresql/postgresql.conf.sample # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2023-10-04T14:54:45Z","created_by":"RUN /bin/sh -c mkdir -p /var/run/postgresql \u0026\u0026 chown -R postgres:postgres /var/run/postgresql \u0026\u0026 chmod 3777 /var/run/postgresql # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2023-10-04T14:54:45Z","created_by":"ENV PGDATA=/var/lib/postgresql/data","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"RUN /bin/sh -c mkdir -p \"$PGDATA\" \u0026\u0026 chown -R postgres:postgres \"$PGDATA\" \u0026\u0026 chmod 1777 \"$PGDATA\" # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2023-10-04T14:54:45Z","created_by":"VOLUME [/var/lib/postgresql/data]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"COPY docker-entrypoint.sh /usr/local/bin/ # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2023-10-04T14:54:45Z","created_by":"ENTRYPOINT [\"docker-entrypoint.sh\"]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"STOPSIGNAL SIGINT","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"EXPOSE map[5432/tcp:{}]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2023-10-04T14:54:45Z","created_by":"CMD [\"postgres\"]","comment":"buildkit.dockerfile.v0","empty_layer":true}],"os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:5f4d9fc4d98de91820d2a9c81e501c8cc6429bc8758b43fcb2cd50f4cab9a324","sha256:e2910ee88f3e78dc699d538cc5f8e4d5df3dbb940f244490bba5743c30a8c478","sha256:d8018e6d13f7cb3c9570bbc664e6ad8b694fbf8b2f67b137d5a33b19d6db9f10","sha256:9326763c13150bf098d5fe700fe29e8928e80625fd9ecf5f3f100289c832a3b0","sha256:8af8f735487f5b239e52b8be0397bd16e8ee19b4c37ecee25be0577082697a8d","sha256:2bdb97069241c2f6a6ce162d99fc4a12a2b50108d8fa239f9b3b74437045876d","sha256:38c309af6230291465054da6732afad893ec610de9ffd8f9f8663d79f2ddfb5d","sha256:6680c77a5610a829c791c15f8ad6e5b48334d28bcbe2f70e6faa8ca903fb589f"]}}