{"architecture":"amd64","config":{"ExposedPorts":{"5432/tcp":{}},"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/13/bin","GOSU_VERSION=1.17","LANG=en_US.utf8","PG_MAJOR=13","PG_VERSION=13.14-1.pgdg120+2","PGDATA=/var/lib/postgresql/data"],"Entrypoint":["docker-entrypoint.sh"],"Cmd":["postgres"],"Volumes":{"/var/lib/postgresql/data":{}},"StopSignal":"SIGINT","ArgsEscaped":true},"created":"2024-02-21T00:46:13Z","history":[{"created":"2024-02-21T00:46:13Z","created_by":"/bin/sh -c #(nop) ADD file:4b1be1de1a1e5aa608c688cad2824587262081866180d7368feb79d33ca05953 in / "},{"created":"2024-02-21T00:46:13Z","created_by":"/bin/sh -c #(nop) CMD [\"bash\"]","empty_layer":true},{"created":"2024-02-21T00:46:13Z","created_by":"RUN /bin/sh -c set -eux; \tgroupadd -r postgres --gid=999; \tuseradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; \tmkdir -p /var/lib/postgresql; \tchown -R postgres:postgres /var/lib/postgresql # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","created_by":"RUN /bin/sh -c set -ex; \tapt-get update; \tapt-get install -y --no-install-recommends \t\tgnupg \t\tless \t; \trm -rf /var/lib/apt/lists/* # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","created_by":"ENV GOSU_VERSION=1.17","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-02-21T00:46:13Z","created_by":"RUN /bin/sh -c set -eux; \tsavedAptMark=\"$(apt-mark showmanual)\"; \tapt-get update; \tapt-get install -y --no-install-recommends ca-certificates wget; \trm -rf /var/lib/apt/lists/*; \tdpkgArch=\"$(dpkg --print-architecture | awk -F- '{ print $NF }')\"; \twget -O /usr/local/bin/gosu \"https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch\"; \twget -O /usr/local/bin/gosu.asc \"https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc\"; \texport GNUPGHOME=\"$(mktemp -d)\"; \tgpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \tgpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \tgpgconf --kill all; \trm -rf \"$GNUPGHOME\" /usr/local/bin/gosu.asc; \tapt-mark auto '.*' \u003e /dev/null; \t[ -z \"$savedAptMark\" ] || apt-mark manual $savedAptMark \u003e /dev/null; \tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \tchmod +x /usr/local/bin/gosu; \tgosu --version; \tgosu nobody true # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","created_by":"RUN /bin/sh -c set -eux; \tif [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then \t\tgrep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; \t\tsed -ri '/\\/usr\\/share\\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; \t\t! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; \tfi; \tapt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; \techo 'en_US.UTF-8 UTF-8' \u003e\u003e /etc/locale.gen; \tlocale-gen; \tlocale -a | grep 'en_US.utf8' # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","created_by":"ENV LANG=en_US.utf8","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-02-21T00:46:13Z","created_by":"RUN /bin/sh -c set -eux; \tapt-get update; \tapt-get install -y --no-install-recommends \t\tlibnss-wrapper \t\txz-utils \t\tzstd \t; \trm -rf /var/lib/apt/lists/* # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","created_by":"RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","created_by":"RUN /bin/sh -c set -ex; \tkey='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; \texport GNUPGHOME=\"$(mktemp -d)\"; \tmkdir -p /usr/local/share/keyrings/; \tgpg --batch --keyserver keyserver.ubuntu.com --recv-keys \"$key\"; \tgpg --batch --export --armor \"$key\" \u003e /usr/local/share/keyrings/postgres.gpg.asc; \tgpgconf --kill all; \trm -rf \"$GNUPGHOME\" # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","created_by":"ENV PG_MAJOR=13","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-02-21T00:46:13Z","created_by":"ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/13/bin","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-02-21T00:46:13Z","created_by":"ENV PG_VERSION=13.14-1.pgdg120+2","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-02-21T00:46:13Z","created_by":"RUN /bin/sh -c set -ex; \t\texport PYTHONDONTWRITEBYTECODE=1; \t\tdpkgArch=\"$(dpkg --print-architecture)\"; \taptRepo=\"[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR\"; \tcase \"$dpkgArch\" in \t\tamd64 | arm64 | ppc64el | s390x) \t\t\techo \"deb $aptRepo\" \u003e /etc/apt/sources.list.d/pgdg.list; \t\t\tapt-get update; \t\t\t;; \t\t*) \t\t\techo \"deb-src $aptRepo\" \u003e /etc/apt/sources.list.d/pgdg.list; \t\t\t\t\t\tsavedAptMark=\"$(apt-mark showmanual)\"; \t\t\t\t\t\ttempDir=\"$(mktemp -d)\"; \t\t\tcd \"$tempDir\"; \t\t\t\t\t\tapt-get update; \t\t\tapt-get install -y --no-install-recommends dpkg-dev; \t\t\techo \"deb [ trusted=yes ] file://$tempDir ./\" \u003e /etc/apt/sources.list.d/temp.list; \t\t\t_update_repo() { \t\t\t\tdpkg-scanpackages . \u003e Packages; \t\t\t\tapt-get -o Acquire::GzipIndexes=false update; \t\t\t}; \t\t\t_update_repo; \t\t\t\t\t\tnproc=\"$(nproc)\"; \t\t\texport DEB_BUILD_OPTIONS=\"nocheck parallel=$nproc\"; \t\t\tapt-get build-dep -y postgresql-common pgdg-keyring; \t\t\tapt-get source --compile postgresql-common pgdg-keyring; \t\t\t_update_repo; \t\t\tDEBIAN_FRONTEND=noninteractive \t\t\tapt-get build-dep -y \"postgresql-$PG_MAJOR=$PG_VERSION\"; \t\t\tapt-get source --compile \"postgresql-$PG_MAJOR=$PG_VERSION\"; \t\t\t\t\t\t\t\t\tapt-mark showmanual | xargs apt-mark auto \u003e /dev/null; \t\t\tapt-mark manual $savedAptMark; \t\t\t\t\t\tls -lAFh; \t\t\t_update_repo; \t\t\tgrep '^Package: ' Packages; \t\t\tcd /; \t\t\t;; \tesac; \t\tapt-get install -y --no-install-recommends postgresql-common; \tsed -ri 's/#(create_main_cluster) .*$/\\1 = false/' /etc/postgresql-common/createcluster.conf; \tapt-get install -y --no-install-recommends \t\t\"postgresql-$PG_MAJOR=$PG_VERSION\" \t; \t\trm -rf /var/lib/apt/lists/*; \t\tif [ -n \"$tempDir\" ]; then \t\tapt-get purge -y --auto-remove; \t\trm -rf \"$tempDir\" /etc/apt/sources.list.d/temp.list; \tfi; \t\tfind /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S \"$pyc\" \u0026\u003e /dev/null || rm -vf \"$pyc\"; done' -- '{}' +; \t\tpostgres --version # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","created_by":"RUN /bin/sh -c set -eux; \tdpkg-divert --add --rename --divert \"/usr/share/postgresql/postgresql.conf.sample.dpkg\" \"/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample\"; \tcp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; \tln -sv ../postgresql.conf.sample \"/usr/share/postgresql/$PG_MAJOR/\"; \tsed -ri \"s!^#?(listen_addresses)\\s*=\\s*\\S+.*!\\1 = '*'!\" /usr/share/postgresql/postgresql.conf.sample; \tgrep -F \"listen_addresses = '*'\" /usr/share/postgresql/postgresql.conf.sample # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","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":"2024-02-21T00:46:13Z","created_by":"ENV PGDATA=/var/lib/postgresql/data","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-02-21T00:46:13Z","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":"2024-02-21T00:46:13Z","created_by":"VOLUME [/var/lib/postgresql/data]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-02-21T00:46:13Z","created_by":"COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","created_by":"RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit","comment":"buildkit.dockerfile.v0"},{"created":"2024-02-21T00:46:13Z","created_by":"ENTRYPOINT [\"docker-entrypoint.sh\"]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-02-21T00:46:13Z","created_by":"STOPSIGNAL SIGINT","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-02-21T00:46:13Z","created_by":"EXPOSE map[5432/tcp:{}]","comment":"buildkit.dockerfile.v0","empty_layer":true},{"created":"2024-02-21T00:46:13Z","created_by":"CMD [\"postgres\"]","comment":"buildkit.dockerfile.v0","empty_layer":true}],"os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:52ec5a4316fadc09a4a51f82b8d7b66ead0d71bea4f75e81e25b4094c4219061","sha256:5d6ae334fd843cfff8914c2fad0b6fd6789665a4daee46aa33fa23e492e04522","sha256:e05b12dc09e16253676dc0ef39d38678beddab9f85bfe325c702af9a0bdb6257","sha256:b4eb467d24861f10e894c8fb540a43947d214c2c542b2dd809a446e1a443c3cb","sha256:c2e54124764ca8178e647815ea1cd62c99934aa0d1e667c06449af5b8dbde04d","sha256:fc918ffcf295f3d0d0c9ce79a72216cc10ea731baaedde55041d4a96795f656b","sha256:b8f05be07b22dc5aa187607eacef828da09ca04b5309bc516e357efeb8cbd073","sha256:79a1771185d74095280c03aaadd7892c836808ff04982c283357580aaf28479e","sha256:ce2098aae7dbcaf70843711c3b5fc364ad46ad00f8d99ae4961093d2b3938c87","sha256:11f9317bb80626c82eb374ad10fa3c074e59542f29af266e4eb75771b8adb261","sha256:9771f9a444c0c7bc565b73f4978286222544ceb13fde19d132a8c92107536901","sha256:35fd5937ef250b43f247a40bdb2fc618e94e5c3577ded786dcdd7abb40b79de1","sha256:1dd4ffee68059d14427b22c47953dfd88844b2def5dffad44c82732331ee8094","sha256:54e0e41bb00850cc1126814e0a52dde1c24b6daf1a25c3f4c83660083e196fac"]}}