Namespace
library
Image / Tag
postgres:15.8-alpine3.20
Content Digest
sha256:8b963ea3038c3b32182ee7f592ccde21242fa7c5fd9d1b72aa333c27f1bfc809
Details
Created

2024-08-08 17:06:32 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

15

PG_SHA256

4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

PG_VERSION

15.8


Layers

[#000] sha256:9d36213c2c70043b8757c7d7ef3b21782d1ad5b2dd6d50df305e14054d6a1cb7 - 3.35% (3.31 MB)

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

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

[#003] sha256:9d6902952081b2a654285179ba65219b16824e4eb72a70740c9b8a5cfc3fd280 - 0.0% (176 Bytes)

[#004] sha256:063bbc4cec0726f6c4dceb395f3af023fa813259aa69cc1146b0999c82b1af8f - 0.0% (116 Bytes)

[#005] sha256:fcca259ab070db933546cb57f5d35c275c568098e08ba771928e9ff4c87cc466 - 95.57% (94.3 MB)

[#006] sha256:e5deba0ceac71802fa832ad4391826b0e1272562746821101311f197170c4a6e - 0.01% (9.22 KB)

[#007] sha256:541ba440234153013abe40b2b8f3cba2c88b0327011daf26f731efb3d58fd84f - 0.0% (128 Bytes)

[#008] sha256:e73702e9a049511088f1a3cd8e729522be642d5489f4430937e599984b31b7c5 - 0.0% (171 Bytes)

[#009] sha256:c8cc7423ddc5fdc78a733a9e8bf1ee58c37bd592da66ac24f84cb376d67bbe7b - 0.01% (5.29 KB)

[#010] sha256:e1e3d514491c7b17d4c5a5e97ef5cf22c553b2af9560b3483591f1f38da4e29f - 0.0% (185 Bytes)


History
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.20.3-x86.tar.gz / # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

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

ENV GOSU_VERSION=1.17

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

RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=15

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:06:32 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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:06:32 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:06:32 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:06:32 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

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

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:06:32 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

15

PG_SHA256

4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

PG_VERSION

15.8


Layers

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

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

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

[#003] sha256:269da9759ad2fe3b0f7a2ee4c777cdb9618c1f34daf7591bd0a62af3cf9158e3 - 0.0% (173 Bytes)

[#004] sha256:09ed019a3e608dda7f5d626f432112a73fa4b6cc1fc3a305c66e9ded4c6d467d - 0.0% (116 Bytes)

[#005] sha256:b8a90f57affb58dd36cb1b5644b22524a083b0470f513147bdf1d166b49a0525 - 95.16% (89.2 MB)

[#006] sha256:5579eb7fc36096bcc3a37e59923db5f3aab76984cb762aa64d995f0e7846c2e9 - 0.01% (9.23 KB)

[#007] sha256:b07b06ffce2ef134d56639356a231745f510d9aa7c8a04f4c3ffb1d0665683d6 - 0.0% (128 Bytes)

[#008] sha256:68cf6486385e83eff3a3402923b7786fb4350733950a5d1964fe5efa5eafb97f - 0.0% (171 Bytes)

[#009] sha256:354218c02cbd100e444b167644ca63a8b0e94a0ae9686251bcf7ace68203ffb7 - 0.01% (5.29 KB)

[#010] sha256:7ca59abe5698c4ad3586481b8c25c97c5a9377653e618b9f082c9ac9ca31d310 - 0.0% (185 Bytes)


History
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

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

ENV GOSU_VERSION=1.17

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

RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=15

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:06:32 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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:06:32 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:06:32 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:06:32 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

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

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:06:32 UTC

Size

92.2 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

15

PG_SHA256

4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

PG_VERSION

15.8


Layers

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

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

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

[#003] sha256:68300102007bc93827d658bcc2e3930a994d78385553143780dadcc3f284915a - 0.0% (177 Bytes)

[#004] sha256:fef5933ae7af9d77048b5e8ce8dc6807af55c837feaeaecb0fac68b44b61199d - 0.0% (116 Bytes)

[#005] sha256:3d9460ee3cc735c4cabec4f4ea56712799bf5dbadd8a31df37da69f8cab4a9a8 - 95.38% (88 MB)

[#006] sha256:8ba4afd846ef52eeedd1d939ac760d7b0ea50d1ad1f2c210c1af3c1b4d9ac3bb - 0.01% (9.23 KB)

[#007] sha256:e0ffb8a63c84eb356076edbabaf32de86866a796ec3245251524a49f68f6f8b4 - 0.0% (129 Bytes)

[#008] sha256:489d7a085b33cc987b5413b4633e6a2b914e752791629f6d7fcac561ced25e3f - 0.0% (170 Bytes)

[#009] sha256:106642aea7bb7297c02ae83ea2e4238ab73bef6fa179215098e989e4905119eb - 0.01% (5.29 KB)

[#010] sha256:595593d20733396bca00d44733327c747b71dd57c3d96217ec115d012e7c6bf3 - 0.0% (186 Bytes)


History
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.20.3-armhf.tar.gz / # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

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

ENV GOSU_VERSION=1.17

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

RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=15

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:06:32 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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:06:32 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:06:32 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:06:32 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

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

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:06:32 UTC

Size

86.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

15

PG_SHA256

4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

PG_VERSION

15.8


Layers

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

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

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

[#003] sha256:01d888b7309f123d800f8af6145d64abed32e528f1a44db6bf5788f93a4b0a5a - 0.0% (178 Bytes)

[#004] sha256:d840479dd2ab0d81f2a5784be112c99207d6d7c0a4ab7332367973bacf1ed7b0 - 0.0% (116 Bytes)

[#005] sha256:81523132e01c04dfa53fddaa3d5f55d3a4ac5f478c1eb9cf058dd1e3d736e361 - 95.39% (82.8 MB)

[#006] sha256:169fa21cfa8767eb0aa9f91e9558abc1381a195e5075a1fae06b6cda7b758ec0 - 0.01% (9.23 KB)

[#007] sha256:58b35eadf667bffb0c74ff0a572134b25177175bda6d81011f83972d87e3bfd3 - 0.0% (129 Bytes)

[#008] sha256:ce915e54b5b5827b269696a049f7b70e7858e7089ab68ecedcfa38776a18ee3a - 0.0% (171 Bytes)

[#009] sha256:1b2e503dffff6ef082e481f7327f803b7a17ad7447d3f9d490fc3c878b317eb3 - 0.01% (5.29 KB)

[#010] sha256:aed84b82ab57b8eb10b4f297eab2fccb075fd3b9c0a53c72c3b305b88592da51 - 0.0% (185 Bytes)


History
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.20.3-armv7.tar.gz / # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

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

ENV GOSU_VERSION=1.17

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

RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=15

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:06:32 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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:06:32 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:06:32 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:06:32 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

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

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:06:32 UTC

Size

93.4 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

15

PG_SHA256

4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

PG_VERSION

15.8


Layers

[#000] sha256:9986a736f7d3d24bb01b0a560fa0f19c4b57e56c646e1f998941529d28710e6b - 4.17% (3.9 MB)

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

[#002] sha256:896d994e2a0b432bc3a247e0ad5db617f8492c21a01b2e825af2145fdffbff0e - 1.07% (1020 KB)

[#003] sha256:2c58df13c5baa9c763950aba342771a95955ad465cd88771a853f00336eaa1e6 - 0.0% (175 Bytes)

[#004] sha256:64d7aa59458e719e08cbb7e9364d8c40a3fb8ba9a2e5307fd7434f47633ccec4 - 0.0% (116 Bytes)

[#005] sha256:3df6e532a3edcb15d5a9cb870a87e0b1f0b04c93d86b0a952ee73842c98d95b3 - 94.74% (88.5 MB)

[#006] sha256:7d973b74bcb2a90c5d27d7075101e48e10f2e76c54942dfa97bddb2adc3d84f8 - 0.01% (9.23 KB)

[#007] sha256:9f11acfbbc2ad192d78b3a2af10cd312f30c722e8483d9f4fc971c44c0ed549c - 0.0% (129 Bytes)

[#008] sha256:3ef0aa11efc41a1d0733068f38de4b73907948454ef4750157c536379e4f2629 - 0.0% (169 Bytes)

[#009] sha256:c9ad9e0f466768517fd8b9fc78bc8976b806350310ae1dd8e194c722ecfd9528 - 0.01% (5.29 KB)

[#010] sha256:ee73eeb984915f83daff6c118749b7475b1080f1be854aa801eb3c93b3dc2cbb - 0.0% (186 Bytes)


History
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.20.3-aarch64.tar.gz / # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

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

ENV GOSU_VERSION=1.17

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

RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=15

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:06:32 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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:06:32 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:06:32 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:06:32 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

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

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:06:32 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

15

PG_SHA256

4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

PG_VERSION

15.8


Layers

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

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

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

[#003] sha256:3b1eacc863115d916c7f14fdb7956d45a06cd56072bfcb39abee699970ca8aff - 0.0% (178 Bytes)

[#004] sha256:42f4827aec3ef0953d51b1267885e898aa3f3f28676e7230bb67120dd71f28c2 - 0.0% (116 Bytes)

[#005] sha256:5163d08433647d3236cd3816666262dc5d161f9abbf6f3dba05b6743811e742d - 95.5% (93.6 MB)

[#006] sha256:4f9f02bafa0fa945354999b1d14086f7370f7fd99f12ca97f9d6a378aad304b8 - 0.01% (9.23 KB)

[#007] sha256:ae79bb24ffc5f26076b9475910161ffb01dbcdb94a3ba95ae07f6b9ff43d7eb8 - 0.0% (128 Bytes)

[#008] sha256:f9db58590697b9624fd4303aa44ffe8829446e7a05a8930840d24d17d282f610 - 0.0% (171 Bytes)

[#009] sha256:23724530c4f0f22f875c55b4dc73f1e758b9327993efddd438b385464a5383cb - 0.01% (5.29 KB)

[#010] sha256:0223cccbae21c2fea1d114cb0f8f0ef67e7d34999d7e0102b39d6e46173ba53d - 0.0% (184 Bytes)


History
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.20.3-ppc64le.tar.gz / # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

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

ENV GOSU_VERSION=1.17

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

RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=15

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:06:32 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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:06:32 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:06:32 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:06:32 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

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

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:06:32 UTC

Size

93.5 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

15

PG_SHA256

4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

PG_VERSION

15.8


Layers

[#000] sha256:ea37667e50ca807fa8abc1caf0d21091cbbe1d66b2c217158fb3e91c2787afaf - 3.44% (3.22 MB)

[#001] sha256:7b8f6d509c68c45b1fdf0a1a4ab907f53741b31f985f51c20dc23cd8a8d6f8c6 - 0.0% (989 Bytes)

[#002] sha256:38504f2cb255ba8a48a6b356aaff81feb5626bcddc945bbd59e7de7b2cbad90a - 1.11% (1.04 MB)

[#003] sha256:35e6b162445bb1f4714c82ba5ee78e748e64dab99e6d2b388464c3cc9685b39d - 0.0% (178 Bytes)

[#004] sha256:71780435e839b7381f0d933d50d5f447819a9afaac78fd20e751316b070c6534 - 0.0% (116 Bytes)

[#005] sha256:4b266aa11bd8bf1d5f723c8f4253f616d9687dd48b9d5bb17457d49c9bc614ae - 95.44% (89.3 MB)

[#006] sha256:fe5df660f1c4ecb8dc4443ff1fcad5f31864daaaa92fd1a90d0876389932668e - 0.01% (9.24 KB)

[#007] sha256:a49f4cc03ab02f4ec4531947cbf0a536e827b708c3e59409d432e0cedfdd6f11 - 0.0% (129 Bytes)

[#008] sha256:d38435e7c886327a31b1d21bb161e3f8b0c04350f77c376971a7e177744e88ea - 0.0% (171 Bytes)

[#009] sha256:e03c21c38ac65743dc06f2717a8f41dbda5af8822195bda2a5338d8f31843683 - 0.01% (5.3 KB)

[#010] sha256:8d09121af946798744f2da1f62b818e01fb1f0236353253691b928dd1fa56ce4 - 0.0% (187 Bytes)


History
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.20.3-riscv64.tar.gz / # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

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

ENV GOSU_VERSION=1.17

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

RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=15

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:06:32 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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:06:32 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:06:32 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:06:32 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

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

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-08-08 17:06:32 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

15

PG_SHA256

4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

PG_VERSION

15.8


Layers

[#000] sha256:4261d20208fd5fe57c9f53c86783089a963169d6db6f16306e083ca43f937e0b - 3.24% (3.3 MB)

[#001] sha256:a7cfe172c7a286e8204df6e52175624b09a8eac0323a0ca93d64bb47b1e1d2ea - 0.0% (989 Bytes)

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

[#003] sha256:c3fe6b14f6ff1c0c299e08d8735b27df365d66f54f2df01a42eebe9fdd7d36e8 - 0.0% (178 Bytes)

[#004] sha256:475d6ddd0abdc1a91a6d685920d91fb766349ac3cc95c6ec4c29882d02db1665 - 0.0% (116 Bytes)

[#005] sha256:943fd3355c979b8f21b18f47f641ac7e8f447bf81b44a0f5b8b3b3dc07d1e2be - 95.73% (97.6 MB)

[#006] sha256:ee60631540933668041ad2190422157a6e2040aefb8c0b78b3a2abf58d2b9222 - 0.01% (9.23 KB)

[#007] sha256:3ef3760200e94789d9557c777a7619875ade10c3b9c7f4cd072dc4f5641e7b84 - 0.0% (129 Bytes)

[#008] sha256:b0dae68e2cfb14cadf5e8a496602543737c9c1da4aeb4ceee23b1f9b504fb0b8 - 0.0% (171 Bytes)

[#009] sha256:d0ad07a2a89c2c68489d6d793306f6c0e19160726a972bcf9c35f301c0b601db - 0.01% (5.29 KB)

[#010] sha256:c4210524fd008aeee1ea1b3650116231e41b1f2cc6381be0de1fb50dae8d1c5e - 0.0% (185 Bytes)


History
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.20.3-s390x.tar.gz / # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

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

ENV GOSU_VERSION=1.17

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

RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=15

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.8

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-08-08 17:06:32 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-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --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:06:32 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:06:32 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:06:32 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

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

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

ENTRYPOINT ["docker-entrypoint.sh"]

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-08-08 17:06:32 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