Tag
trainspot/postgres:13
Created
2024-08-08 16:37:43 UTC
Architecture
linux / arm64
Content Digest
Pull Command
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.16-1.pgdg120+1
  • PGDATA=/var/lib/postgresql/data
Layers
  • 001 sha256:14c9d9d199323cbf0a4c2347a8af85f2875c1f2c26a1558fd34dfca7a26cff22 27.8 MB
  • 002 sha256:40c88e7faf79a34dd0af94058994e066483fb95ac60c57004716687e64f9bed5 1.14 KB
  • 003 sha256:86552d6a2e14fbce88d8ffa08a7f7e06dd4c6d7f208b84997c96c0f91053cba5 4.29 MB
  • 004 sha256:a986120aadb711cc1e9e8fbd5f2f62c7b123e0c329d6c1812be7bc38d03479b2 1.31 MB
  • 005 sha256:b8f6f593e3897cc85ba643ed6309995123ad8701a994700d1a796bb9ab0a1200 7.69 MB
  • 006 sha256:76441873964fa4a8d07dd408edfe47b022e2506a9fdabd6467f71cce1bd6c96a 1.06 MB
  • 007 sha256:c00daffc086af223cc3083937b64cb98e4f5dbaae60aca84f869b695d9be65b4 116 Bytes
  • 008 sha256:3e872bee6899bad3fe1acbb7e580e8381aa1f6a99b1e8d7b427011fe3beb076a 3.07 KB
  • 009 sha256:e5fad5150511770d8cf9a7c7897acc5071bf82152746d24fcab418512588b0a6 98.1 MB
  • 010 sha256:9cdfe87ade9ac094122b40ea56385b2995479da6ba988321c613e1dada3b3e9b 9.13 KB
  • 011 sha256:80ba833808c5a97ab3009f7f8243999d07be358faeda66fb0916d18905e86ab7 129 Bytes
  • 012 sha256:dc6814d84714dfbe630da03c93b0dee0077ddff127a727617cd441f62d3d91a3 167 Bytes
  • 013 sha256:028c14c36d19117543cf6301ae980c1afcded306757902374557a46cc3cc3611 5.29 KB
  • 014 sha256:1de81e9381dedf00ffa49ed28ed93e63630ae3682a40cac35826591e91b34fa5 184 Bytes
History
[2024-08-08 16:37:43 UTC] /bin/sh -c #(nop) ADD file:28df1cb6a6576d40b5226851d0a6a76ffd5d1c94644ee441490b74a90f29f425 in / [2024-08-08 16:37:43 UTC] /bin/sh -c #(nop) CMD ["bash"] [2024-08-08 16:37:43 UTC] 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; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit [2024-08-08 16:37:43 UTC] 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-08-08 16:37:43 UTC] ENV GOSU_VERSION=1.17 [2024-08-08 16:37:43 UTC] 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-08-08 16:37:43 UTC] 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-08-08 16:37:43 UTC] ENV LANG=en_US.utf8 [2024-08-08 16:37:43 UTC] 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-08-08 16:37:43 UTC] RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit [2024-08-08 16:37:43 UTC] 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-08-08 16:37:43 UTC] ENV PG_MAJOR=13 [2024-08-08 16:37:43 UTC] ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/13/bin [2024-08-08 16:37:43 UTC] ENV PG_VERSION=13.16-1.pgdg120+1 [2024-08-08 16:37:43 UTC] 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; DEBIAN_FRONTEND=noninteractive 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-08-08 16:37:43 UTC] 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-08-08 16:37:43 UTC] RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit [2024-08-08 16:37:43 UTC] ENV PGDATA=/var/lib/postgresql/data [2024-08-08 16:37:43 UTC] RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit [2024-08-08 16:37:43 UTC] VOLUME [/var/lib/postgresql/data] [2024-08-08 16:37:43 UTC] COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit [2024-08-08 16:37:43 UTC] RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit [2024-08-08 16:37:43 UTC] ENTRYPOINT ["docker-entrypoint.sh"] [2024-08-08 16:37:43 UTC] STOPSIGNAL SIGINT [2024-08-08 16:37:43 UTC] EXPOSE map[5432/tcp:{}] [2024-08-08 16:37:43 UTC] CMD ["postgres"]