Namespace
library
Image / Tag
postgres:17beta3-alpine3.20
Content Digest
sha256:5471936a97eeea6906dacd500f5bd48c269a5e245aac184790732458a1de2f35
Details
Created

2024-08-08 17:34:59 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

010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

PG_VERSION

17beta3


Layers

[#000] sha256:2585500d54afa42a6b579f9ed6f62b49c5fb21c2653f79194342804bde8770fe - 3.35% (3.31 MB)

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

[#002] sha256:3a42e012efb7e5712d1a16acaea794bb54956a21ce4a1bf84b557b55725b3f61 - 1.06% (1.04 MB)

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

[#004] sha256:30ae2d36329901a5336f9fa0adefc2e9fc1b4578d3bf068d5a522721f0857d2a - 95.58% (94.3 MB)

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

[#006] sha256:c1daeeb060f2ae1decd0e8a4b8eb2484fb63c0f7d6b7b0ee66bbb374125afc76 - 0.0% (129 Bytes)

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

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

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


History
2024-07-22 21:38:29 UTC

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

2024-07-22 21:38:30 UTC

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

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17beta3

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:34:59 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-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:34:59 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

010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

PG_VERSION

17beta3


Layers

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

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

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

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

[#004] sha256:782e8dedabf91d4747d08b7de60a0ed363197b6ddc033865948f62454944f46d - 95.15% (89.1 MB)

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

[#006] sha256:ecf00955fe0bc7d555d3e4c1bfdd21c7493dee155d9d8c025bd0edac5da739ad - 0.0% (129 Bytes)

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

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

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


History
2024-07-22 22:26:43 UTC

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

2024-07-22 22:26:43 UTC

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

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17beta3

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:34:59 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-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:34:59 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

010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

PG_VERSION

17beta3


Layers

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

[#001] sha256:25307227c90bae58c84dab41277d5472d9cd00151c62baab3eec8f0811c54942 - 0.0% (983 Bytes)

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

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

[#004] sha256:dd1e336d467ac2704723f2434a9ec713af2e4dd2267cb9074650347be1c0cad2 - 95.38% (88.1 MB)

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

[#006] sha256:0bd765815a6b58946c6eaffdfcfacbcb4cc53f4886d6b2e1e4c3e531f1b83d98 - 0.0% (129 Bytes)

[#007] sha256:33faeaf6b6f4815c1920443b44a492c0b968ef3fa12ba981d8befa7845e70fe1 - 0.0% (170 Bytes)

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

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


History
2024-07-22 21:49:18 UTC

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

2024-07-22 21:49:19 UTC

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

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17beta3

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:34:59 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-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:34:59 UTC

Size

87 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

010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

PG_VERSION

17beta3


Layers

[#000] sha256:9c6652a37da7fb600faac56897745bdde89a4f9bd260a082b6bf4a0d173b5906 - 3.39% (2.95 MB)

[#001] sha256:974b6662c086828dec827256ff3ff1a849d7136080f8cfddf97c06178dd29ee7 - 0.0% (988 Bytes)

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

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

[#004] sha256:3a923a9a09f9bf7fa8534eee4f2e5ea9debc95b30d3a02d71620a1d14a4209f4 - 95.4% (83 MB)

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

[#006] sha256:1f10bf2aebbc861388dab3893a70e940d9aaa374aad680719dde5e25b3cf1319 - 0.0% (129 Bytes)

[#007] sha256:cc5af3969a8088475b8e145f2a17cc8676121368de3da77d7553c3d67bec95d9 - 0.0% (170 Bytes)

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

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


History
2024-07-22 21:59:47 UTC

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

2024-07-22 21:59:47 UTC

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

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17beta3

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:34:59 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-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:34:59 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

010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

PG_VERSION

17beta3


Layers

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

[#001] sha256:6128292d5cec813248e3e1bf41197e2e1b572046b0574e5dbb3d1c70445350d6 - 0.0% (983 Bytes)

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

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

[#004] sha256:6c9962c3f55f60c3ac59cb13dc984f3e4d1fba968013a5a1e7599a931b67ba47 - 94.71% (87.9 MB)

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

[#006] sha256:d93bfad1ede885b76c7f25ca38e1b7d83abf82c1dc57711858d491e38b3c8c06 - 0.0% (129 Bytes)

[#007] sha256:044ba62c2fe0f6c7fd426d098240c23d650c8ab9d6830e69cd09d6e12a0b3e64 - 0.0% (170 Bytes)

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

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


History
2024-07-22 21:44:13 UTC

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

2024-07-22 21:44:13 UTC

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

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17beta3

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:34:59 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-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:34:59 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

010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

PG_VERSION

17beta3


Layers

[#000] sha256:6e59b4988c495782a5b0c8f8d6698931851c16c5c0fc5ef09cbb0637ade56e36 - 3.47% (3.41 MB)

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

[#002] sha256:493d303f50c68c053ed606838d40534d57ffcce8a3fdd2e797fafe2055618b55 - 1.01% (1010 KB)

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

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

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

[#006] sha256:bf94433f510f0430da63a05b4e733a1512a6efdfe5d6fabdcea4117978d1c909 - 0.0% (129 Bytes)

[#007] sha256:4deea5f0cd8be977abcc82e1681f58382ec1e2f365d8698891d949ba893088d1 - 0.0% (171 Bytes)

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

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


History
2024-07-22 21:26:21 UTC

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

2024-07-22 21:26:22 UTC

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

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17beta3

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:34:59 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-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:34:59 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

010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

PG_VERSION

17beta3


Layers

[#000] sha256:faf447acae27573624c0613a79c4bcf1f9bc46d29f523140352abfd3f7691282 - 3.43% (3.21 MB)

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

[#002] sha256:08a4e93ef12922da34742cb49015c46af1058cc89f480318d1346da5ee6f8f47 - 1.11% (1.04 MB)

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

[#004] sha256:b36fa249789f9052c36f950615cdba3c5bc3e52c542c5c916660f85f7ab71938 - 95.45% (89.5 MB)

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

[#006] sha256:8cd3d48b71bce735c7dda6425964ccc9e55cc58d219da6ee789355c5080156f9 - 0.0% (129 Bytes)

[#007] sha256:ba45bde5a564b1c17d23f9125f42966a583bedf41f819cd2782165c824d1b45c - 0.0% (172 Bytes)

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

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


History
2024-07-22 22:21:00 UTC

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

2024-07-22 22:21:00 UTC

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

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17beta3

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:34:59 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-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:34:59 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

010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

PG_VERSION

17beta3


Layers

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

[#001] sha256:2acc84b0240620d268a9a34d9656893521b535e5695de2ecd3563889b2a4d089 - 0.0% (988 Bytes)

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

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

[#004] sha256:21f21403b2dd83b837010be2cc9a260be9598ad32198146458321108ae33ffe5 - 95.74% (97.8 MB)

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

[#006] sha256:d8a4f609745346514d29a198d6c62417360b64f841e0bd89ed53ed2cda033068 - 0.0% (129 Bytes)

[#007] sha256:0779f3b954cf5e5865fd18f88b61c9d7e324521f84fb9168746a0797d5024e62 - 0.0% (170 Bytes)

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

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


History
2024-07-22 21:50:06 UTC

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

2024-07-22 21:50:07 UTC

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

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=17

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=17beta3

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=010dfaff9fcca6afa2fd576eea89cdabcefc262aa0ba89a6845eaab4d4b08f71

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:34:59 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-08-08 17:34:59 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-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:34:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:34:59 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