Namespace
library
Image / Tag
postgres:17beta1
Content Digest
sha256:2b3793cecff53f283ce8571da38cd49e4923b2d5737ca929a69c36354fca1875
Details
Created

2024-05-29 21:09:26 UTC

Size

155 MB

Content Digest
Environment
GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_VERSION

17~beta1-1.pgdg120+1


Layers

[#000] sha256:7adb06274fdba91ff3ec0873bc068b9a785bd5e3ff48e6f1d9e855048f1f0a66 - 18.55% (28.8 MB)

[#001] sha256:b1b446198c5f33bfe3356fc6bc007222dccd917e350cc045c7223f58a7b5fd1e - 0.0% (1.14 KB)

[#002] sha256:1e59760f570f907543c24ab09cd411014de6d0c2298e5eff0ddd396592c86d39 - 3.05% (4.74 MB)

[#003] sha256:bf99053681c1771935b0d5f7bf518648bdc12fe9a99f30ed9062a912c52010df - 0.88% (1.36 MB)

[#004] sha256:b96c0e2064320d495e2c12fe207219064d7e3f3ca8aea703e3a0550fb2169ec5 - 4.96% (7.7 MB)

[#005] sha256:4f61d74991078062fb8bce7b86255f9cc8ec0eebac456dfb998dc55ae32ad461 - 0.7% (1.08 MB)

[#006] sha256:1dd98e81eb011a248b16f5013461e00e33f69037492e4bcba537d57a85e95047 - 0.0% (116 Bytes)

[#007] sha256:08aa1b38737aa6b939cceb92568f8bfdaa578a5ea1ff3a9dc5ad96e275f11122 - 0.0% (3.07 KB)

[#008] sha256:9cc96588368e6a21d7fbb3d7dc10556be5894c6ed0dd78d7be0bf9e0c6798db2 - 71.84% (111 MB)

[#009] sha256:6ca1aceef974194a4563899ff95c077d78ec7dd12a62e150f28a542e84dcf8c4 - 0.01% (10 KB)

[#010] sha256:707182a427cfe8b82e80418eb5cb7ba73cd97d69cdbb425ba3f4f9581f5c7b34 - 0.0% (127 Bytes)

[#011] sha256:572acf9c422c6ebe42e788d86bc9ea47f979ee8874193f50f931af5cc2b86c18 - 0.0% (169 Bytes)

[#012] sha256:559aa4e3b9d792c3bd4b26cb879e058a2db46588b53b236493c896aa61f2e3c5 - 0.0% (5.29 KB)

[#013] sha256:0580460976ba1115ea0586c5b81454b5cdd30293006ac642bcae2089f94f2bc9 - 0.0% (185 Bytes)


History
2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) ADD file:d68e899424fb360eaf2a6f2f35e06dc87f5841c13cce853d3e0710f969583d10 in /

2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) CMD ["bash"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd -r postgres --gid=999; useradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends gnupg less ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates wget; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; if [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; ! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; fi; apt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; locale-gen; locale -a | grep 'en_US.utf8' # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libnss-wrapper xz-utils zstd ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; export GNUPGHOME="$(mktemp -d)"; mkdir -p /usr/local/share/keyrings/; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /usr/local/share/keyrings/postgres.gpg.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17~beta1-1.pgdg120+1

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; export PYTHONDONTWRITEBYTECODE=1; dpkgArch="$(dpkg --print-architecture)"; aptRepo="[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR"; case "$dpkgArch" in amd64 | arm64 | ppc64el | s390x) echo "deb $aptRepo" > /etc/apt/sources.list.d/pgdg.list; apt-get update; ;; *) echo "deb-src $aptRepo" > /etc/apt/sources.list.d/pgdg.list; savedAptMark="$(apt-mark showmanual)"; tempDir="$(mktemp -d)"; cd "$tempDir"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev; echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; _update_repo() { dpkg-scanpackages . > Packages; apt-get -o Acquire::GzipIndexes=false update; }; _update_repo; nproc="$(nproc)"; export DEB_BUILD_OPTIONS="nocheck parallel=$nproc"; apt-get build-dep -y postgresql-common pgdg-keyring; apt-get source --compile postgresql-common pgdg-keyring; _update_repo; apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; apt-mark showmanual | xargs apt-mark auto > /dev/null; apt-mark manual $savedAptMark; ls -lAFh; _update_repo; grep '^Package: ' Packages; cd /; ;; esac; apt-get install -y --no-install-recommends postgresql-common; sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf; apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR=$PG_VERSION" ; rm -rf /var/lib/apt/lists/*; if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove; rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi; find /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S "$pyc" &> /dev/null || rm -vf "$pyc"; done' -- '{}' +; postgres --version # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample # buildkit

2024-05-29 21:09:26 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

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-05-29 21:09:26 UTC

Size

147 MB

Content Digest
Environment
GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_VERSION

17~beta1-1.pgdg120+1


Layers

[#000] sha256:2cc3ae149d28a36d28d4eefbae70aaa14a0c9eab588c3790f7979f310b893c44 - 18.88% (27.8 MB)

[#001] sha256:89fd732072a42913962411751f32b7b0a35fb6233e831e4fa8cafcb36ec0ae56 - 0.0% (1.14 KB)

[#002] sha256:15a4bc4a74221567fe75a93ba3522b0299aa70d06020bdfb3a3e5409c8e85acb - 2.94% (4.32 MB)

[#003] sha256:087e4d5ec836f18e97310b889f72783056fda7f4d27e872cd225c3c72f29f8bb - 0.94% (1.38 MB)

[#004] sha256:37efd7003a6c5c191583f6fc801494e2c53b2ead46c84588eb5d015b9eb2157c - 5.23% (7.7 MB)

[#005] sha256:eb1677c37acb2d7a6d71d2261df83b8ccd61a749c27fd98b74166acc5650a564 - 0.77% (1.14 MB)

[#006] sha256:f06493dfd1b8ba6e432cd4e340e2aee0bd2af24083b3cd624ea24c26cbc75623 - 0.0% (116 Bytes)

[#007] sha256:89288f514ad5cff26d194ca72916fcb5c0142a946c5b702fa464cbda2a193d03 - 0.0% (3.07 KB)

[#008] sha256:34ef981eaaa78b22471a7f285622b5f221aad1893918a0cff7409743127e0e31 - 71.23% (105 MB)

[#009] sha256:d9994d5e745bc420a84496483a4b7ab0bd16959ee060bdbc2c33f9737d3b2406 - 0.01% (10 KB)

[#010] sha256:b64afdf6e07b49ce0e8d38c83a86c5e1a4e017bcad3dff8f1e257462eb3c3b00 - 0.0% (127 Bytes)

[#011] sha256:0bf1a41a93b57b338919d154685dfd3635349ba0654fe435de0f086fd6a12b39 - 0.0% (170 Bytes)

[#012] sha256:5de6df55e46b5ea946ae54b47878d49bc2a9771ea7a2e9d308349acea07081e8 - 0.0% (5.29 KB)

[#013] sha256:8beeb835f5b79861706650430c01ddedfcaa4bff4d85aff9637a24a754b0ba17 - 0.0% (185 Bytes)


History
2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) ADD file:5f9954090af042b377ea0d1d184faa64d2e9d4c946b6c3898d52aff47e764056 in /

2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) CMD ["bash"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd -r postgres --gid=999; useradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends gnupg less ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates wget; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; if [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; ! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; fi; apt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; locale-gen; locale -a | grep 'en_US.utf8' # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libnss-wrapper xz-utils zstd ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; export GNUPGHOME="$(mktemp -d)"; mkdir -p /usr/local/share/keyrings/; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /usr/local/share/keyrings/postgres.gpg.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17~beta1-1.pgdg120+1

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; export PYTHONDONTWRITEBYTECODE=1; dpkgArch="$(dpkg --print-architecture)"; aptRepo="[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR"; case "$dpkgArch" in amd64 | arm64 | ppc64el | s390x) echo "deb $aptRepo" > /etc/apt/sources.list.d/pgdg.list; apt-get update; ;; *) echo "deb-src $aptRepo" > /etc/apt/sources.list.d/pgdg.list; savedAptMark="$(apt-mark showmanual)"; tempDir="$(mktemp -d)"; cd "$tempDir"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev; echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; _update_repo() { dpkg-scanpackages . > Packages; apt-get -o Acquire::GzipIndexes=false update; }; _update_repo; nproc="$(nproc)"; export DEB_BUILD_OPTIONS="nocheck parallel=$nproc"; apt-get build-dep -y postgresql-common pgdg-keyring; apt-get source --compile postgresql-common pgdg-keyring; _update_repo; apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; apt-mark showmanual | xargs apt-mark auto > /dev/null; apt-mark manual $savedAptMark; ls -lAFh; _update_repo; grep '^Package: ' Packages; cd /; ;; esac; apt-get install -y --no-install-recommends postgresql-common; sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf; apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR=$PG_VERSION" ; rm -rf /var/lib/apt/lists/*; if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove; rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi; find /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S "$pyc" &> /dev/null || rm -vf "$pyc"; done' -- '{}' +; postgres --version # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample # buildkit

2024-05-29 21:09:26 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

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-05-29 21:09:26 UTC

Size

140 MB

Content Digest
Environment
GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_VERSION

17~beta1-1.pgdg120+1


Layers

[#000] sha256:d50583018de0ccbb239bef29dd375ae0ea018644d67a37b4fc29bec08b3b1a33 - 18.29% (25.7 MB)

[#001] sha256:c76f93fe24faf9bdd2823e7ed0fa9bf1ae89c6d82d81309c0044fbd05c272b8b - 0.0% (1.14 KB)

[#002] sha256:6c2160d7118cc9f8e23b3033ea807d4e87947c45bfb8bcea73028027aa765329 - 2.82% (3.96 MB)

[#003] sha256:c5efce1143a2d44abdd1810dd3dfeb14c4ee36f79dc41476601665c7c40a2f54 - 0.97% (1.36 MB)

[#004] sha256:9e623323d67613018c639686712853eb77cd588d64ced98a25fd20512f43b1e6 - 5.48% (7.7 MB)

[#005] sha256:dee6b3c3492fbdef9666e4379393f2c59aff2ab2278dcc38c611ebe869696083 - 0.81% (1.14 MB)

[#006] sha256:e58d2e67789ab63ba29790eec6bd56fe19d33551de322ceaa5f0bbf489a10b4f - 0.0% (116 Bytes)

[#007] sha256:f1e906e2ab7c56d77757417a3a48d2ba73236b668f3ef3ffe2788196fea729bb - 0.0% (3.07 KB)

[#008] sha256:5e273225499d68a49938d5807425c3f656f696b0d8db6ceb59a40fc2e93deadf - 71.62% (101 MB)

[#009] sha256:e1b3bde5ad6808d3d53fbc54f40e666bb686619132fc6eef4f7656f20c85e213 - 0.01% (10 KB)

[#010] sha256:e9de1b489f08fb21850fcc7bfafa3b12919ac3f868b1ded3f7f35a5bada5d8d3 - 0.0% (128 Bytes)

[#011] sha256:09187a3c8235521bbc36d16c3625766f7fc8ac3ed8bde8f470cbd49cfc9b0170 - 0.0% (169 Bytes)

[#012] sha256:93b2dbe27b1b1cf6c24b9782b3af9fb3605f20c4edbff4072d097b90091a9312 - 0.0% (5.3 KB)

[#013] sha256:bb13aa642cabbe76c7bf5278d406fafa1d9ceb210eaa68633e1579e971095a6c - 0.0% (185 Bytes)


History
2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) ADD file:9ca492786bcb3648d90c47fc2dba3c8239eea7a0689f6a17ee25a9f5129aabd5 in /

2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) CMD ["bash"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd -r postgres --gid=999; useradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends gnupg less ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates wget; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; if [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; ! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; fi; apt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; locale-gen; locale -a | grep 'en_US.utf8' # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libnss-wrapper xz-utils zstd ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; export GNUPGHOME="$(mktemp -d)"; mkdir -p /usr/local/share/keyrings/; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /usr/local/share/keyrings/postgres.gpg.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17~beta1-1.pgdg120+1

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; export PYTHONDONTWRITEBYTECODE=1; dpkgArch="$(dpkg --print-architecture)"; aptRepo="[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR"; case "$dpkgArch" in amd64 | arm64 | ppc64el | s390x) echo "deb $aptRepo" > /etc/apt/sources.list.d/pgdg.list; apt-get update; ;; *) echo "deb-src $aptRepo" > /etc/apt/sources.list.d/pgdg.list; savedAptMark="$(apt-mark showmanual)"; tempDir="$(mktemp -d)"; cd "$tempDir"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev; echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; _update_repo() { dpkg-scanpackages . > Packages; apt-get -o Acquire::GzipIndexes=false update; }; _update_repo; nproc="$(nproc)"; export DEB_BUILD_OPTIONS="nocheck parallel=$nproc"; apt-get build-dep -y postgresql-common pgdg-keyring; apt-get source --compile postgresql-common pgdg-keyring; _update_repo; apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; apt-mark showmanual | xargs apt-mark auto > /dev/null; apt-mark manual $savedAptMark; ls -lAFh; _update_repo; grep '^Package: ' Packages; cd /; ;; esac; apt-get install -y --no-install-recommends postgresql-common; sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf; apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR=$PG_VERSION" ; rm -rf /var/lib/apt/lists/*; if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove; rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi; find /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S "$pyc" &> /dev/null || rm -vf "$pyc"; done' -- '{}' +; postgres --version # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample # buildkit

2024-05-29 21:09:26 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

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-05-29 21:09:26 UTC

Size

135 MB

Content Digest
Environment
GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_VERSION

17~beta1-1.pgdg120+1


Layers

[#000] sha256:12af5edb53b85c10582c3e3d437561cc626437f48928a30456a99941d87706e3 - 17.44% (23.6 MB)

[#001] sha256:493051253236caea97f219fd70aa5f22f8b46248ff1d3c3d3188d73ce0784a40 - 0.0% (1.14 KB)

[#002] sha256:6804256b124e139d9f0115e1d42291cc23b80dce76de35fd5698c162eaf1dbf0 - 2.64% (3.57 MB)

[#003] sha256:2b531feac03289045c14b775e7e96c3ede9f3a2d05e3b6dd1e733009cf1bbb62 - 1.0% (1.35 MB)

[#004] sha256:b66c7bb29e6b93b045ad24872cfa94249282a9726a9f006f38918a121c5ba9be - 5.69% (7.7 MB)

[#005] sha256:b345cb504203c27252fd77886ea537ccbba6a85470442aae2a7829f01b742d27 - 0.75% (1.02 MB)

[#006] sha256:d104bf8bcc118bb31c29d3d8a68c778d2cb3ff3581269130a6cdcbe82a263ed7 - 0.0% (116 Bytes)

[#007] sha256:9fe06d964e32afda897c71c4829462b2d98aa14cf05e4ce8a1821876e9adb65c - 0.0% (3.07 KB)

[#008] sha256:09cca36a3452942c6a488af3ec9f1eba80634e602fe6e42060475c9bd7f5a6f3 - 72.46% (98 MB)

[#009] sha256:c854f4ff8d22e1411345b33b6b0f9ec24171f9c5b8c7c6bbbee4001b79759835 - 0.01% (10 KB)

[#010] sha256:6b6c925e774a413e4d34f0ac8a0a7f1f02f68f3225a4941372ee49d2607fb71c - 0.0% (128 Bytes)

[#011] sha256:ce2c9867b67ec9561d4982257c43fb087c5391afe1457263c50caa3bcdffc06c - 0.0% (169 Bytes)

[#012] sha256:957f07930f492f020f7ba3423cfabc46c1edfcaf1d4bdf51cb9cae95bbcb6362 - 0.0% (5.29 KB)

[#013] sha256:738ef88bd549ff24f16e190a05446f8708fc91558389520f2b369a506e0d9ba4 - 0.0% (185 Bytes)


History
2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) ADD file:4c737c0a5e5b59fcbe2bc42dca815263159a1e1d16789ebeee086933aac4649a in /

2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) CMD ["bash"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd -r postgres --gid=999; useradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends gnupg less ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates wget; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; if [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; ! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; fi; apt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; locale-gen; locale -a | grep 'en_US.utf8' # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libnss-wrapper xz-utils zstd ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; export GNUPGHOME="$(mktemp -d)"; mkdir -p /usr/local/share/keyrings/; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /usr/local/share/keyrings/postgres.gpg.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17~beta1-1.pgdg120+1

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; export PYTHONDONTWRITEBYTECODE=1; dpkgArch="$(dpkg --print-architecture)"; aptRepo="[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR"; case "$dpkgArch" in amd64 | arm64 | ppc64el | s390x) echo "deb $aptRepo" > /etc/apt/sources.list.d/pgdg.list; apt-get update; ;; *) echo "deb-src $aptRepo" > /etc/apt/sources.list.d/pgdg.list; savedAptMark="$(apt-mark showmanual)"; tempDir="$(mktemp -d)"; cd "$tempDir"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev; echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; _update_repo() { dpkg-scanpackages . > Packages; apt-get -o Acquire::GzipIndexes=false update; }; _update_repo; nproc="$(nproc)"; export DEB_BUILD_OPTIONS="nocheck parallel=$nproc"; apt-get build-dep -y postgresql-common pgdg-keyring; apt-get source --compile postgresql-common pgdg-keyring; _update_repo; apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; apt-mark showmanual | xargs apt-mark auto > /dev/null; apt-mark manual $savedAptMark; ls -lAFh; _update_repo; grep '^Package: ' Packages; cd /; ;; esac; apt-get install -y --no-install-recommends postgresql-common; sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf; apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR=$PG_VERSION" ; rm -rf /var/lib/apt/lists/*; if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove; rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi; find /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S "$pyc" &> /dev/null || rm -vf "$pyc"; done' -- '{}' +; postgres --version # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample # buildkit

2024-05-29 21:09:26 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

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-05-29 21:09:26 UTC

Size

146 MB

Content Digest
Environment
GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_VERSION

17~beta1-1.pgdg120+1


Layers

[#000] sha256:559a764445207341cf1207d83ceb89f1e59e2b57e860b7a80a6df6447641832b - 19.12% (27.8 MB)

[#001] sha256:059b5c43db4127d3c84a4caee54092e336d3ba62e208c915e1644fb73a7c5e2f - 0.0% (1.14 KB)

[#002] sha256:7ac4aa6c99e9f11007d4c9ef96a1b0dd6aa1ba9b32bb8f1eed1577047f513928 - 2.95% (4.29 MB)

[#003] sha256:f695f6dafe22ec09a8d465915c3f2df31da965a38406fe775765c9a6d6e5af46 - 0.91% (1.32 MB)

[#004] sha256:3531e6d72caa83e1e23ae04b0c519b1174a47e2c737f6f4bf8e2822a9acae84c - 5.29% (7.7 MB)

[#005] sha256:8460f5c0f01056e728f9f916df72baeae6eb09bf8e6c86f8964a9822b8008cb5 - 0.73% (1.06 MB)

[#006] sha256:c419f8ddd2fbd2e547a8b11791240d264a925a69a36bc442567489c2755fd853 - 0.0% (116 Bytes)

[#007] sha256:e54f6c55c74f6700f1cea329574b215d9662b08548c98081dabb64ac7caffaf8 - 0.0% (3.07 KB)

[#008] sha256:9cce0b88b6f839ee139d6c3721fb058a50498cd72bc49bcc62e828f33cab9748 - 70.99% (103 MB)

[#009] sha256:d4ddf14c3c2a2ecc0b00b86e082b5ccee2a30fa23ad1662cbd7cd0e581053272 - 0.01% (10 KB)

[#010] sha256:4cc1bce1b5058ad2e0a36b6e0b90680fd20ad01aacdae56b033d08fddb08bc8d - 0.0% (128 Bytes)

[#011] sha256:8c1c16bc81cca42d58e9a3513d6bc0909bae93ed4b277962f2e8b240d9e65196 - 0.0% (170 Bytes)

[#012] sha256:8c5b061861d220709faf1ac3baada2d5a67a54e68ae9ee38c7b8ae54cc1f17bc - 0.0% (5.29 KB)

[#013] sha256:98df9d1f584f68dfd22f3ece4e23e5804062f2ad3b8d4cc49e1bb3fcce7fb767 - 0.0% (185 Bytes)


History
2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) ADD file:5f17f77072bcd27aa8c4d09ef5117423b789c42445b6e6c13af711dfb2abd544 in /

2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) CMD ["bash"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd -r postgres --gid=999; useradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends gnupg less ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates wget; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; if [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; ! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; fi; apt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; locale-gen; locale -a | grep 'en_US.utf8' # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libnss-wrapper xz-utils zstd ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; export GNUPGHOME="$(mktemp -d)"; mkdir -p /usr/local/share/keyrings/; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /usr/local/share/keyrings/postgres.gpg.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17~beta1-1.pgdg120+1

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; export PYTHONDONTWRITEBYTECODE=1; dpkgArch="$(dpkg --print-architecture)"; aptRepo="[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR"; case "$dpkgArch" in amd64 | arm64 | ppc64el | s390x) echo "deb $aptRepo" > /etc/apt/sources.list.d/pgdg.list; apt-get update; ;; *) echo "deb-src $aptRepo" > /etc/apt/sources.list.d/pgdg.list; savedAptMark="$(apt-mark showmanual)"; tempDir="$(mktemp -d)"; cd "$tempDir"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev; echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; _update_repo() { dpkg-scanpackages . > Packages; apt-get -o Acquire::GzipIndexes=false update; }; _update_repo; nproc="$(nproc)"; export DEB_BUILD_OPTIONS="nocheck parallel=$nproc"; apt-get build-dep -y postgresql-common pgdg-keyring; apt-get source --compile postgresql-common pgdg-keyring; _update_repo; apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; apt-mark showmanual | xargs apt-mark auto > /dev/null; apt-mark manual $savedAptMark; ls -lAFh; _update_repo; grep '^Package: ' Packages; cd /; ;; esac; apt-get install -y --no-install-recommends postgresql-common; sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf; apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR=$PG_VERSION" ; rm -rf /var/lib/apt/lists/*; if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove; rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi; find /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S "$pyc" &> /dev/null || rm -vf "$pyc"; done' -- '{}' +; postgres --version # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample # buildkit

2024-05-29 21:09:26 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

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-05-29 21:09:26 UTC

Size

143 MB

Content Digest
Environment
GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_VERSION

17~beta1-1.pgdg120+1


Layers

[#000] sha256:9c779e4f033b6f7eb9f6b2e62bbf866659c6eedcf2db024108a6e1d4b9cd8742 - 19.45% (27.8 MB)

[#001] sha256:b4e7b3f258eebcc001ec708f4a1a76516209149a6600fe7efcc4ff098596bc68 - 0.0% (1.14 KB)

[#002] sha256:cc8e5f8f9151bb03d60ecbc112e2d6c7a2b80904d21657335b33f12fd377c66f - 2.99% (4.27 MB)

[#003] sha256:25565cdee2e4b4f87abfc7017bea5d3fe7691f8f5f3b43d617c12eb9decfdda9 - 0.89% (1.28 MB)

[#004] sha256:a1b8ff1a8c8de25f916a067e84caa425f8208cca4eda91fae38bc87161b3fe36 - 5.39% (7.7 MB)

[#005] sha256:a53a02dd19a7e5d13c8e7436537377195f170768d69611300794c59493c623a0 - 0.79% (1.13 MB)

[#006] sha256:5c6ddcaf6b2aa995cff1df3ff9f3c343341c17be2ce7207b3863bd4dc4f61db4 - 0.0% (116 Bytes)

[#007] sha256:b7ed420c5cffea22518e732e2e3226a44adc6645bae3dfc8dc17fe011e27ea69 - 0.0% (3.07 KB)

[#008] sha256:9080c5f493003377bc1af11f872b7032edcc4f1dbb3b41688679e5814aa4fd4a - 70.48% (101 MB)

[#009] sha256:4d73c8d5ad85eea1bb54fa7188f79c177ee3d3c6d87980345327ece3d5bb4c86 - 0.01% (10 KB)

[#010] sha256:3f7d433820d0adbc806d31854e7816b9acd7f73a95888bb01cef70cb2b8de4e7 - 0.0% (128 Bytes)

[#011] sha256:31283b81029939e0fc74f7883802bacc7c4927166f41dfd1ff23847f28f13991 - 0.0% (170 Bytes)

[#012] sha256:f41e69ae5fa69fb7c6866369e8ccb2f6823a36ce6ae67157824a04ff50fbe50a - 0.0% (5.3 KB)

[#013] sha256:998ce339a77cbf992d760ad99def1b1d57b987111f7a1b2bc3b3de158865382d - 0.0% (186 Bytes)


History
2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) ADD file:7843ce82552ae9139a9fa1f09b2a1d74f36c493548aa1a5c10b828cb7e02cbe7 in /

2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) CMD ["bash"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd -r postgres --gid=999; useradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends gnupg less ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates wget; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; if [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; ! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; fi; apt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; locale-gen; locale -a | grep 'en_US.utf8' # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libnss-wrapper xz-utils zstd ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; export GNUPGHOME="$(mktemp -d)"; mkdir -p /usr/local/share/keyrings/; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /usr/local/share/keyrings/postgres.gpg.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17~beta1-1.pgdg120+1

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; export PYTHONDONTWRITEBYTECODE=1; dpkgArch="$(dpkg --print-architecture)"; aptRepo="[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR"; case "$dpkgArch" in amd64 | arm64 | ppc64el | s390x) echo "deb $aptRepo" > /etc/apt/sources.list.d/pgdg.list; apt-get update; ;; *) echo "deb-src $aptRepo" > /etc/apt/sources.list.d/pgdg.list; savedAptMark="$(apt-mark showmanual)"; tempDir="$(mktemp -d)"; cd "$tempDir"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev; echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; _update_repo() { dpkg-scanpackages . > Packages; apt-get -o Acquire::GzipIndexes=false update; }; _update_repo; nproc="$(nproc)"; export DEB_BUILD_OPTIONS="nocheck parallel=$nproc"; apt-get build-dep -y postgresql-common pgdg-keyring; apt-get source --compile postgresql-common pgdg-keyring; _update_repo; apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; apt-mark showmanual | xargs apt-mark auto > /dev/null; apt-mark manual $savedAptMark; ls -lAFh; _update_repo; grep '^Package: ' Packages; cd /; ;; esac; apt-get install -y --no-install-recommends postgresql-common; sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf; apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR=$PG_VERSION" ; rm -rf /var/lib/apt/lists/*; if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove; rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi; find /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S "$pyc" &> /dev/null || rm -vf "$pyc"; done' -- '{}' +; postgres --version # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample # buildkit

2024-05-29 21:09:26 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

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-05-29 21:09:26 UTC

Size

159 MB

Content Digest
Environment
GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_VERSION

17~beta1-1.pgdg120+1


Layers

[#000] sha256:c4f33295caca163b437a6dc1ad770a1f2d84b4d5e78e832bbe0fb2f064aeccfd - 19.89% (31.6 MB)

[#001] sha256:59ce3d2e2dd26ed2ee971fce30509b03a268266ef6661c37ab01b06aaea977a2 - 0.0% (1.14 KB)

[#002] sha256:9c0b107b67b75a99675cecac40b78e0a03b27dc41c4e72a49011d730ff9a626f - 3.22% (5.12 MB)

[#003] sha256:5b29592030092edd9c2d4f6377bb04280475e56b1a15e8a23fe33476cdcccfba - 0.82% (1.31 MB)

[#004] sha256:758aab932f37bd7ede2c247f8f364e06293cf29a6abf480c14c410dac0022d26 - 4.84% (7.7 MB)

[#005] sha256:3f494893d635f3afc4b0d6f82c1b3c1e22012e631b18d4efdf8b212308cbdce3 - 0.77% (1.22 MB)

[#006] sha256:430ea084ff79461737d3396dad9f8b949252d1052c00c14b93f7f10986c8792d - 0.0% (116 Bytes)

[#007] sha256:92f6a3290a408bdea48295cf53e8024a783f6f98f692b9240df81035056e3a07 - 0.0% (3.07 KB)

[#008] sha256:a7f168d0d268b92ffa81fc046649047c9971ce3245d4df8c9fbe39df81086b64 - 70.44% (112 MB)

[#009] sha256:5e80f53bfafb78216ca766fb5d204b9391f73300477acb5fe6061945297b1922 - 0.01% (10 KB)

[#010] sha256:3c83522f1552339b3e98cf2cb27ed741690551ad797056705dc50391a3379d75 - 0.0% (128 Bytes)

[#011] sha256:b538c06c97cf0dc699eb3509713febf838a0117c1e835f635d93287512a1b7c9 - 0.0% (170 Bytes)

[#012] sha256:fe0e925c7b7456e82e92ab67a78f5b5f57bcd3b891077e39fe5c0550a34b8165 - 0.0% (5.3 KB)

[#013] sha256:ff18a20d81951bb04f3e3e5e6d5e1e4022195f893ac6aae335198e68e425daa9 - 0.0% (185 Bytes)


History
2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) ADD file:26d639147c70c8e3b876ab5c2950b7b7e7c654b878e69cf7a82a7cbdfdb31024 in /

2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) CMD ["bash"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd -r postgres --gid=999; useradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends gnupg less ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates wget; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; if [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; ! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; fi; apt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; locale-gen; locale -a | grep 'en_US.utf8' # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libnss-wrapper xz-utils zstd ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; export GNUPGHOME="$(mktemp -d)"; mkdir -p /usr/local/share/keyrings/; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /usr/local/share/keyrings/postgres.gpg.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17~beta1-1.pgdg120+1

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; export PYTHONDONTWRITEBYTECODE=1; dpkgArch="$(dpkg --print-architecture)"; aptRepo="[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR"; case "$dpkgArch" in amd64 | arm64 | ppc64el | s390x) echo "deb $aptRepo" > /etc/apt/sources.list.d/pgdg.list; apt-get update; ;; *) echo "deb-src $aptRepo" > /etc/apt/sources.list.d/pgdg.list; savedAptMark="$(apt-mark showmanual)"; tempDir="$(mktemp -d)"; cd "$tempDir"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev; echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; _update_repo() { dpkg-scanpackages . > Packages; apt-get -o Acquire::GzipIndexes=false update; }; _update_repo; nproc="$(nproc)"; export DEB_BUILD_OPTIONS="nocheck parallel=$nproc"; apt-get build-dep -y postgresql-common pgdg-keyring; apt-get source --compile postgresql-common pgdg-keyring; _update_repo; apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; apt-mark showmanual | xargs apt-mark auto > /dev/null; apt-mark manual $savedAptMark; ls -lAFh; _update_repo; grep '^Package: ' Packages; cd /; ;; esac; apt-get install -y --no-install-recommends postgresql-common; sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf; apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR=$PG_VERSION" ; rm -rf /var/lib/apt/lists/*; if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove; rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi; find /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S "$pyc" &> /dev/null || rm -vf "$pyc"; done' -- '{}' +; postgres --version # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample # buildkit

2024-05-29 21:09:26 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

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-05-29 21:09:26 UTC

Size

153 MB

Content Digest
Environment
GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_VERSION

17~beta1-1.pgdg120+1


Layers

[#000] sha256:06561002b4f942b877c60f94bd44315c2e0580cc0ae30f060660bdbcdae21d6e - 17.2% (26.2 MB)

[#001] sha256:df718a21529484d825e8d34c404257a0546286e7a7caaafa5e6aa3c284858359 - 0.0% (1.14 KB)

[#002] sha256:ab19acd660b1d3121eadb9baf4f00251f6bad0be1f21e5546e9a7bbdf7c25f0f - 2.75% (4.19 MB)

[#003] sha256:ec53b5378db13907773971770802e5cd432e139b9ca53f853835ada5cff2134b - 0.89% (1.35 MB)

[#004] sha256:7f148609caa08348b01404906d68e5fac6a87cf8be9296e80c1478c47b119a32 - 5.08% (7.75 MB)

[#005] sha256:ec4a29b13525c5cab1218d23d20c299a8d1311c5619fb9a8586f2cdba6ec7dda - 0.69% (1.05 MB)

[#006] sha256:a6b9b3dab45f719c1cfa9a9942b491b3d6577a1e12d3c44ec54edb4ba4bf475c - 0.0% (116 Bytes)

[#007] sha256:ce605bd25ed1e30eab9e389d318038b16d3f7fea277774f1e329cce643e81f83 - 0.0% (3.07 KB)

[#008] sha256:40fe62ea8ebfd17686095289ff05dfbd674a794d61eddbb0ac7589e3e24e7de2 - 73.39% (112 MB)

[#009] sha256:ee4a1321fc64b32afb8e653a187d3b1c28594daac1d12f9e487421d229d5e4ba - 0.01% (10 KB)

[#010] sha256:21dc224cb40fbfbb1df72895f1c65a580a377f9597b29c7780f42acb4238295c - 0.0% (128 Bytes)

[#011] sha256:2b50d0f63a5fc858cf9a6c0cf1fd7d914a7374d944865e6e50324d533aad0730 - 0.0% (170 Bytes)

[#012] sha256:1215d2b6f6aa26910377699b51ce4d37fe51c3b57afb23d8ffb2dd93af29eaf7 - 0.0% (5.29 KB)

[#013] sha256:a94eba8fd4085410a9e15ce071f57d9553357640e9d1f8254e6ce8d806d55f72 - 0.0% (185 Bytes)


History
2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) ADD file:e4d9e24430546fda3cf8c73efdaa45b6bf1014a23d4d3c0247fe341b3ee9212a in /

2024-05-29 21:09:26 UTC

/bin/sh -c #(nop) CMD ["bash"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; groupadd -r postgres --gid=999; useradd -r -g postgres --uid=999 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends gnupg less ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends ca-certificates wget; rm -rf /var/lib/apt/lists/*; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; if [ -f /etc/dpkg/dpkg.cfg.d/docker ]; then grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; sed -ri '/\/usr\/share\/locale/d' /etc/dpkg/dpkg.cfg.d/docker; ! grep -q '/usr/share/locale' /etc/dpkg/dpkg.cfg.d/docker; fi; apt-get update; apt-get install -y --no-install-recommends locales; rm -rf /var/lib/apt/lists/*; echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; locale-gen; locale -a | grep 'en_US.utf8' # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libnss-wrapper xz-utils zstd ; rm -rf /var/lib/apt/lists/* # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; key='B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8'; export GNUPGHOME="$(mktemp -d)"; mkdir -p /usr/local/share/keyrings/; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; gpg --batch --export --armor "$key" > /usr/local/share/keyrings/postgres.gpg.asc; gpgconf --kill all; rm -rf "$GNUPGHOME" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/17/bin

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17~beta1-1.pgdg120+1

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; export PYTHONDONTWRITEBYTECODE=1; dpkgArch="$(dpkg --print-architecture)"; aptRepo="[ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main $PG_MAJOR"; case "$dpkgArch" in amd64 | arm64 | ppc64el | s390x) echo "deb $aptRepo" > /etc/apt/sources.list.d/pgdg.list; apt-get update; ;; *) echo "deb-src $aptRepo" > /etc/apt/sources.list.d/pgdg.list; savedAptMark="$(apt-mark showmanual)"; tempDir="$(mktemp -d)"; cd "$tempDir"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev; echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list; _update_repo() { dpkg-scanpackages . > Packages; apt-get -o Acquire::GzipIndexes=false update; }; _update_repo; nproc="$(nproc)"; export DEB_BUILD_OPTIONS="nocheck parallel=$nproc"; apt-get build-dep -y postgresql-common pgdg-keyring; apt-get source --compile postgresql-common pgdg-keyring; _update_repo; apt-get build-dep -y "postgresql-$PG_MAJOR=$PG_VERSION"; apt-get source --compile "postgresql-$PG_MAJOR=$PG_VERSION"; apt-mark showmanual | xargs apt-mark auto > /dev/null; apt-mark manual $savedAptMark; ls -lAFh; _update_repo; grep '^Package: ' Packages; cd /; ;; esac; apt-get install -y --no-install-recommends postgresql-common; sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf; apt-get install -y --no-install-recommends "postgresql-$PG_MAJOR=$PG_VERSION" ; rm -rf /var/lib/apt/lists/*; if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove; rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi; find /usr -name '*.pyc' -type f -exec bash -c 'for pyc; do dpkg -S "$pyc" &> /dev/null || rm -vf "$pyc"; done' -- '{}' +; postgres --version # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; dpkg-divert --add --rename --divert "/usr/share/postgresql/postgresql.conf.sample.dpkg" "/usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample"; cp -v /usr/share/postgresql/postgresql.conf.sample.dpkg /usr/share/postgresql/postgresql.conf.sample; ln -sv ../postgresql.conf.sample "/usr/share/postgresql/$PG_MAJOR/"; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/share/postgresql/postgresql.conf.sample # buildkit

2024-05-29 21:09:26 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

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-05-29 21:09:26 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Danger Zone
Delete Tag

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.

Delete