Namespace
library
Image / Tag
postgres:17rc1-alpine3.20
Content Digest
sha256:6637c3702c397a3d5af12535e2d5b4db790e9493f308588fe35b809fafb8ef6a
Details
Created

2024-09-05 13:44:37 UTC

Size

98.7 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

PG_VERSION

17rc1


Layers

[#000] sha256:2689ac6c14fd48d5dbd1df1dd2d317f177e131f689c1a010922edcd778518efd - 3.35% (3.31 MB)

[#001] sha256:670deed320e248d59b1b38fb274bcc5ee406f779acae3004a0bdb75cd521ce4b - 0.0% (982 Bytes)

[#002] sha256:986f81993a2f8b1a167bfea34053832cfd1e529d3233bda3356645c64e70704f - 1.06% (1.04 MB)

[#003] sha256:4a3534a5a8704976339c28bda96dfe736c7df300b97e37e77c05b6fd5d271def - 0.0% (116 Bytes)

[#004] sha256:99480f7160979079d229586b477aff0038ecb4515fd8a362cb7f43a5e5938e96 - 95.57% (94.3 MB)

[#005] sha256:d1e045790d7740f7e296457c0a1364acddcba7ab66729821360c6e3454ab9614 - 0.01% (9.65 KB)

[#006] sha256:36b7b596af5004411714aea4233a34ae3b6c4157103a1fc5cea52a17c68bc3f1 - 0.0% (128 Bytes)

[#007] sha256:f070220a59a9f34d4f6c36a13c7c6fcc772ad046048e8a8027aba8f9e3e9de65 - 0.0% (168 Bytes)

[#008] sha256:7794da6be6bde907b924c7556ea2b8260eb616375e9a6dda7db283a5a30fdfd8 - 0.01% (5.29 KB)

[#009] sha256:b82217a564fc0a82b1a9552cf83a24997d1457b06642a6a2c775584913b57b34 - 0.0% (183 Bytes)


History
2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; 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; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17rc1

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-09-05 13:44:37 UTC

Size

93.6 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

PG_VERSION

17rc1


Layers

[#000] sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 - 3.69% (3.46 MB)

[#001] sha256:2ac317d321560f3ed9447b36070e8720e0efa90ded1921248c17c64f51374b76 - 0.0% (984 Bytes)

[#002] sha256:97908738ae9e495061793d455846ed3930abdaf0ccfb38053abf6b4b78c4bb98 - 1.14% (1.07 MB)

[#003] sha256:f7edf311d9fcff699cfd5c5dde053b91d1134995849a3f3a2bbb421bb00415eb - 0.0% (114 Bytes)

[#004] sha256:df7c63ee6ddab0c94c574a066a50763d6eebaeb564297d787c99bffc92235efe - 95.15% (89 MB)

[#005] sha256:08b882af9a5ce1d6aa8af43f9d87142374797477c1c353a50f0b0d9cce2133e1 - 0.01% (9.65 KB)

[#006] sha256:d66bdd269f39cf86a5fa555f5feb705879b8251d423a78d4e62a2f5c434b8ee3 - 0.0% (128 Bytes)

[#007] sha256:262e9545a21d62a4aeea5cfda6df40fc8551ddbf99ff63496d5730e03377acc7 - 0.0% (169 Bytes)

[#008] sha256:ab4bdfe0e66e62ef562336576d9c13034db402b8e0d6d177ea237f11bf43df86 - 0.01% (5.29 KB)

[#009] sha256:c7dc531773d1342154fbb57110edc246f1ad2a043c07e09e212864004c48264e - 0.0% (184 Bytes)


History
2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; 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; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17rc1

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-09-05 13:44:37 UTC

Size

92.3 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

PG_VERSION

17rc1


Layers

[#000] sha256:97964a4b92f04f720ed681b3ec62b071ced94b08b57765c612866e77a71ec087 - 3.48% (3.21 MB)

[#001] sha256:e1926ba8f8f62878b68875756f8686ff4fbac12ecedb3040e7fcdb795834f064 - 0.0% (982 Bytes)

[#002] sha256:a8999ec1aa34d37759a1bc9a1ab2364f588fa7168269d15b795fd1f59eb268fb - 1.12% (1.04 MB)

[#003] sha256:a6402e77ba8264a82c2754d3874c4645dcdb1f2ffbb0172587cb2b67059d5e4c - 0.0% (116 Bytes)

[#004] sha256:963d85663023784ba6cce6fbe4347038015ec303393322838f238b17aa4ae1ac - 95.38% (88 MB)

[#005] sha256:ea10c939725331f4850f57a31291cfc287b3b7fe87e64bb3b9a94b10750214a1 - 0.01% (9.66 KB)

[#006] sha256:56983db1715d3beddf4fbd9bd927815eab7438065457ffafc7559bedd46c2ab8 - 0.0% (128 Bytes)

[#007] sha256:13e1e25b13ac96e5a26503c262c98bb57da3e6a1c17483300d0ed20634dc43d1 - 0.0% (168 Bytes)

[#008] sha256:9d53becf3f2d164445c38b7fc2a1de84c4fe1f297946aac362465c8a960ac438 - 0.01% (5.29 KB)

[#009] sha256:e3d064e40500fed77c83beeb2c445f809bdaa660f418762436c721031a7146a9 - 0.0% (185 Bytes)


History
2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; 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; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17rc1

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-09-05 13:44:37 UTC

Size

86.9 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

PG_VERSION

17rc1


Layers

[#000] sha256:da2748c71804914f58a58693c998a4885dd24623380daf301f4a1a88185cb4c8 - 3.4% (2.95 MB)

[#001] sha256:e2ac8e9d0c68b096b09818bfb20f42e953c3d9cd9df375198a3b549dd5ce5f63 - 0.0% (986 Bytes)

[#002] sha256:0ea95758d71d5413b7fd57d98797bffda5c623934cbefc0067a635c1ff9f62e9 - 1.19% (1.04 MB)

[#003] sha256:bb3eb9bcbc673e2305b89fa82426cf69bbf20e06da869248597e8ca53c857068 - 0.0% (116 Bytes)

[#004] sha256:866da46e3cf5a8e00777825748898bf47302a102f47e3b4276c1d758b3a4b683 - 95.39% (82.9 MB)

[#005] sha256:9705600822d69a9d7d41dedd756584d73dafee09f414e19cd14bee4165d18c81 - 0.01% (9.65 KB)

[#006] sha256:249e0ea5c5a08869c3c8d6f9d2cc4557c48faa275142ce88c671e0eac1f6976c - 0.0% (128 Bytes)

[#007] sha256:b2e08353bf17e6fdb95b41fa782de906516737254d44c230972c32dd3a5ed5c4 - 0.0% (169 Bytes)

[#008] sha256:b2eb5ee120d463b105afc5cf0c7f351bd8b19b629c14be4d8d9861385974be8e - 0.01% (5.29 KB)

[#009] sha256:f6997444c696584acd66be770c38e5eed91c42c09458e8f15d30a3d75a28df0c - 0.0% (185 Bytes)


History
2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; 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; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17rc1

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-09-05 13:44:37 UTC

Size

92.8 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

PG_VERSION

17rc1


Layers

[#000] sha256:cf04c63912e16506c4413937c7f4579018e4bb25c272d989789cfba77b12f951 - 4.2% (3.9 MB)

[#001] sha256:4ce02d10b61bf34aa182aa7cd3783def4d5bbd8176c97011032c1508b214ff88 - 0.0% (987 Bytes)

[#002] sha256:afc2a136d16381dd1cb44173056502b63f1221519780ccd6a68b144efc25d984 - 1.08% (1020 KB)

[#003] sha256:c2e1742e08ac657eba264aa068186690c68b3488741cb9dfb24434ca4cc7f035 - 0.0% (116 Bytes)

[#004] sha256:256ccfc71643b8e733b31064c66fde11c3237dc3be7628735021d65f464e994f - 94.71% (87.9 MB)

[#005] sha256:695c53cdde9e3adf16c662da0bede727dadf02e5d243294743742f6b60c6ece6 - 0.01% (9.65 KB)

[#006] sha256:54e0d0492d2c0000afbb74b904107a2d56542d9eec3cbc0f82924dcc5c81c7b3 - 0.0% (127 Bytes)

[#007] sha256:ad191583287201788c2956577e0847f8adf2745e0c8813ff0c3bce62fff917d6 - 0.0% (167 Bytes)

[#008] sha256:0abdce6d19692f22dc016b53cd9141b989a00a19957eac539aca973e88c4866b - 0.01% (5.29 KB)

[#009] sha256:c80281fcf667df6782cc69227b3a146c60135a91c9624c3b1993243102d8e985 - 0.0% (182 Bytes)


History
2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; 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; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17rc1

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-09-05 13:44:37 UTC

Size

98 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

PG_VERSION

17rc1


Layers

[#000] sha256:b5caf700653f785a3409fb40484075ff91a3a7a84b79ad6a91b165589b35fbc0 - 3.48% (3.41 MB)

[#001] sha256:f09660e5b8bc5bd55341d07e7bcd5185688c061c64258a651b47cea587e00681 - 0.0% (984 Bytes)

[#002] sha256:2dd1554d2d2be5884f5ca5cba1185e70dc91ca57d033741832939409b096d44a - 1.01% (1010 KB)

[#003] sha256:ea88afaa427f538c947d9bec622dbc35a2dadd602da06a4d8edbaf78de9885e9 - 0.0% (116 Bytes)

[#004] sha256:9c4aa39b2f079f40212c66dc4298e6bc9d1c1799b17bb7f18dae30fba3073f59 - 95.5% (93.6 MB)

[#005] sha256:d0ac92d3e2eb8567de190032ffb80dba274d2d56106a2ef04d3c7d6f08b00e00 - 0.01% (9.66 KB)

[#006] sha256:a695f7e73c439bbf2e67a1c9af1cfbb1314f386c4c15dd6f703a1f0f9bc7cc9f - 0.0% (128 Bytes)

[#007] sha256:77d1e65903e4d3f577992b0dc302dc50f66bcd71abc976e6949179cb9e31dcb8 - 0.0% (168 Bytes)

[#008] sha256:26a77e7232b9975c19f920599350fb80f1cacf28e989e03eb56afe69f3e3a417 - 0.01% (5.29 KB)

[#009] sha256:cf94cf258333060f3c0d25866b0b60ad880883020dd40f7942aee2bddf156fb9 - 0.0% (184 Bytes)


History
2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; 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; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17rc1

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-09-05 13:44:37 UTC

Size

93.7 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

PG_VERSION

17rc1


Layers

[#000] sha256:8c4a05189a5fd2cf629c25ab8d0831be7156d74b336f129a412933ee78af018c - 3.43% (3.22 MB)

[#001] sha256:00c0a33ca1e0010b2933d844f58d1adbfedd0d5f9ed593d28f743f587da5c4f0 - 0.0% (985 Bytes)

[#002] sha256:7cc8cc678fef78489c3aaa8bdfb1dcc8f823e88452890bd484cba0b49520c887 - 1.11% (1.04 MB)

[#003] sha256:419540a88c2b57c52ce1705244aa143f8c9ce6d14301b62d1d25d48d46cbec65 - 0.0% (116 Bytes)

[#004] sha256:c830ad1bb12ffe40085ce30cda8d89979081fb61a8add3328f1bb2d700f6fef2 - 95.44% (89.4 MB)

[#005] sha256:c507121268f70baf795535a51debc07845c58db0452156601280e0ef516bd2fa - 0.01% (9.66 KB)

[#006] sha256:7d8eedf50d23f32369b0c1950525f0f49830aa8eb6b9d84a3a8ce7d3b8810748 - 0.0% (128 Bytes)

[#007] sha256:62ff27a5a8fd40ec27735193514db471bbf4f141f71ec7b82daa4ce7f8b04af3 - 0.0% (169 Bytes)

[#008] sha256:b15861b234526ac871af75a2d54afc228c23f6c74a09c93194f0e1cb169cdfba - 0.01% (5.3 KB)

[#009] sha256:8219e870281408e8d8690ae11c26f1713a70703d81dedd2dd2e1546fa9d0543a - 0.0% (187 Bytes)


History
2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; 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; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17rc1

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-09-05 13:44:37 UTC

Size

102 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

17

PG_SHA256

cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

PG_VERSION

17rc1


Layers

[#000] sha256:df110db6acd600b9ee5ebd7b510779652f96424d3f80321a4e0dcb8a09aa0526 - 3.23% (3.3 MB)

[#001] sha256:c9bd51305a798a8f4a2548106c9ede18568dab62599f818ec4a568a640541969 - 0.0% (987 Bytes)

[#002] sha256:a77eb0b034a50a4f7c869cb4d64d60e371eca69a55c30006747fb3a91328aacc - 1.01% (1.03 MB)

[#003] sha256:53bd2f61b8b81e669c3f6359e8e7f97ac355d62c2ea1ca450597ccbbd1a5f491 - 0.0% (114 Bytes)

[#004] sha256:a64c0a2a584fefd6dbc1b70e8541f6d62f354fd06c1eb4c4688962ee8edc257e - 95.74% (97.7 MB)

[#005] sha256:85f0ea4a24d0eac4be75320fc43236d279570ecd25b0ee358e01ca62fa74a1bf - 0.01% (9.65 KB)

[#006] sha256:19c93112e630e3139bd289e7f38f27964de89cb9999cd98d21f178a3b5ac1603 - 0.0% (128 Bytes)

[#007] sha256:726f4abaaa1f9d6304482f0f5c00e41c0a786241299f96ed48fafaba80a842f9 - 0.0% (168 Bytes)

[#008] sha256:bde503d123ec69d89da005f38d0830ff1a0471be5be05275960edcc7aeaafce6 - 0.01% (5.3 KB)

[#009] sha256:972959345a94c5462c007b9c16114ab02a78eed2e8ec440c7de61f552246320b - 0.0% (186 Bytes)


History
2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; 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; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17rc1

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=cef689e2de8c3d605d8406c065573b8d70859fc6f2a8d720b0d98a6d62ef16e8

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

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

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-09-05 13:44:37 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-09-05 13:44:37 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