sha256:fd04847ccd0f7800e83b232b03fe3fb9d965af671f0ff568e3f9555cb4515665
2024-09-26 18:19:57 UTC
100 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:ab80d4d2b0222e03eca115215a16260e1a5f86f8b55e9b677e9d5c30b909a6af - 3.09% (3.1 MB)
[#001] sha256:fbdb9a44d7e7d0155c700e99b190c42d0a35ad65ef4c88bc8cf660240b0535b1 - 0.0% (1.24 KB)
[#002] sha256:f9ab9295efbd0c4cdede666db64326ed0fd06f50bbf08b19a15917bb3bf5e71a - 1.04% (1.04 MB)
[#003] sha256:1394b0ea4ed9cc7ab8d702d8880ac3fc2b6ee344b6485f526f6c161996caab29 - 0.0% (116 Bytes)
[#004] sha256:e3d231e2569f387e6ebed3cfcafd95bb2caada94157f44ad44f3a5ccf70c9bc6 - 95.85% (96.3 MB)
[#005] sha256:ce26ef479937947bdc59fad8c374c5958043a559997302d59a8bfc5564e1eddf - 0.01% (9.65 KB)
[#006] sha256:925d86548ca9f32374cf3d4e2675e7da2360405e2f138ed9d5a0a5b4bbf1c9bf - 0.0% (128 Bytes)
[#007] sha256:dc433be49fa5aed0894c31bc997566fef0f76085d8ff6967f22ea08bd425445e - 0.0% (170 Bytes)
[#008] sha256:ef0e3d5a64e23cc9a7cf55db4cf7dd655b03d3a6dc1ff39cd48fcbe5002c7b14 - 0.01% (5.29 KB)
[#009] sha256:0ebccfe378c14e843e1072828572344aa9fa4c579705998ae1105ecaba52b8a1 - 0.0% (183 Bytes)
ADD alpine-minirootfs-3.19.4-x86.tar.gz / # buildkit
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:c3c9c12576b5edf0dbe1a46afcf7500635e9269e90736cd32b83a47f9b6eda1a
2024-09-26 18:19:57 UTC
95.5 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:a7cd7d9a21440da0d765f2989d75f069adf9b3463a765421a0590bca720920d4 - 3.41% (3.26 MB)
[#001] sha256:48ea50e789c3b8e1fcabd78359b43b3d31e229d8c2dbbf986b6eeb725b90873f - 0.0% (1.24 KB)
[#002] sha256:2569dc7a6c8f51063eb915a1808eb8558175eb03ae25de990f537c635e02ed48 - 1.12% (1.07 MB)
[#003] sha256:98248a6905364e7524c74dca8983097bac936d90c962db93faf45405a8dbbf38 - 0.0% (116 Bytes)
[#004] sha256:85e760f64c3b8c06f1d3b243ff4bf068f38f63cda88a7725ec8e715147157132 - 95.45% (91.2 MB)
[#005] sha256:bf9bd51a229edfe93556341668dcabe6d2cc5d8ad96805b014282214956588ae - 0.01% (9.65 KB)
[#006] sha256:c6a5d2fdc9294f931e3bcafcb0dbe651ee4bfa182459885d6788b10fce770e62 - 0.0% (129 Bytes)
[#007] sha256:4081eee637c7de49b0220a3dfc78d1e2c782380c8410369cc1e3ea327d8859d4 - 0.0% (169 Bytes)
[#008] sha256:8945c3c05aa51c3314e481942539fe4af02d282ba622bf12382ee40a9ca5fc2b - 0.01% (5.29 KB)
[#009] sha256:eecaf250c3bdb30a68789238eaa01e4586c982fc88dabac8f18aedf7f6e52f68 - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.19.4-x86_64.tar.gz / # buildkit
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:df6cf193460cf04d0c795095525bba4b0bdc49dda8a7c03d1f8dbdb76f25c955
2024-09-26 18:19:57 UTC
94 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:1962dd3845094270fb16c55729f52e68e09c9fdecbe06ccfa89e981fa679172d - 3.22% (3.03 MB)
[#001] sha256:1129eba1c516693bf2f340f0343f658e37e7812832c7f2e7493ce214856d3fc0 - 0.0% (1.24 KB)
[#002] sha256:1855f1ed4c4392b8709ed6c84e2a119012e83c080f39bb8faf7f1bbc735a9252 - 1.1% (1.04 MB)
[#003] sha256:5aa2615eec230123f6a0e89ad8b2756fe04419eb394d6645c8c6d069b10e09b7 - 0.0% (116 Bytes)
[#004] sha256:1129f98d6edf6e18a53212886087902797711f41043f430b78342f249b72bd41 - 95.66% (89.9 MB)
[#005] sha256:a5a780fbda2b6fc7b2d786214c89dbd52f594455666770d546886aab19e2f6c7 - 0.01% (9.65 KB)
[#006] sha256:f070ac0c2425902e58025863cf684aaa80f52c8d5ea8d3c511359f16fb6b91e2 - 0.0% (128 Bytes)
[#007] sha256:734ef5ad6256c92f3bead02c2a55c64af495fd001c49349355731abff0b671aa - 0.0% (170 Bytes)
[#008] sha256:b42dfad999b4cd5ce596f799c6c01ee1d8be11b7d8fdbb46c46cfc85da254a51 - 0.01% (5.29 KB)
[#009] sha256:08b3d17df377b55b166367640b8e0d3a840d06aeb49478b5aef309b9464d1c0d - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.19.4-armhf.tar.gz / # buildkit
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:d41404eca938bdaf21b28c8e89e8a6dcf84b793578872459d7ff3b1a7fa2b9bb
2024-09-26 18:19:57 UTC
88.5 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:02dfd5e2e7e47e8d8f9020a0d7f4d8240d6646afc6a52b168c0899bc0c3d06a3 - 3.15% (2.79 MB)
[#001] sha256:c5db41ad436d5f7ebd4024d28883a253bc45e3577ec71b917f3af8f6247e0a49 - 0.0% (1.24 KB)
[#002] sha256:07ec4ab37e54f1eaa5a6a0648af6ccfa09df4dda8aebd4bfd4c95a09aeeaf220 - 1.17% (1.04 MB)
[#003] sha256:7d724b69202dff14aa464310c973a9df72cd3040855d59315ec350389a2a1ac8 - 0.0% (116 Bytes)
[#004] sha256:9339a1c2624b1e8a3337e0437128c95af11685c5f5d67cb0001bec099d77bcc9 - 95.66% (84.7 MB)
[#005] sha256:8a06c9d4b7d99376f13466775d365ba2536c011c670d405ab825be63caf87e54 - 0.01% (9.65 KB)
[#006] sha256:d2b3b41af571a4ab2a951c400282cd777485017202e21275e4a64171c6f3424e - 0.0% (128 Bytes)
[#007] sha256:a9c6d564d400e11fd3e2ff01bb36e3147397df17eb34ea81edd9983a7456800d - 0.0% (169 Bytes)
[#008] sha256:a89124f5b91a2eaf935ab5da4eec842a6aaba95ac0a6f748e1de6b294450071c - 0.01% (5.29 KB)
[#009] sha256:07264982ac4457106ab803b72dbae00fc2bafb37dae8a0fc9917f7026eda271c - 0.0% (184 Bytes)
ADD alpine-minirootfs-3.19.4-armv7.tar.gz / # buildkit
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:f9d7b95de937a650ac9e6f4da29ba316cbfc7b76ea4ebd1d723c2e4394481cfb
2024-09-26 18:19:57 UTC
94.2 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:6c9d4d66fb4987fcd48c673e8b29bb504a3cfb33f10b97cbcea126aa3b8b59fd - 3.4% (3.2 MB)
[#001] sha256:ff54d4329846145ee02efd07421e687bf03dccfd110b41d27be9e1b28191499e - 0.0% (1.24 KB)
[#002] sha256:ad02ddf5c8ac009520c934fddaba6a040ac5e2d873f745a521aa4ac96362cc97 - 1.06% (1 MB)
[#003] sha256:8b5cb152d93629bc0c1cb37f6de5a369c7744581cd6166bb4dd478f70b363045 - 0.0% (116 Bytes)
[#004] sha256:97fbd09021bd5f8443a794088abc6d0decc0de6dd5caca3b405ccc134e291a06 - 95.52% (90 MB)
[#005] sha256:163f42d2ad7d2e617f61df56dc808860bfe104563eab7518c09973e033a0601e - 0.01% (9.65 KB)
[#006] sha256:71746feb654be964e4af8ee9d4c71fc2b8e7afa8b5ea6c68087706c005f1aa31 - 0.0% (129 Bytes)
[#007] sha256:f4c57a1dec2ed66330a2872512f2cadfe3cf11ebbc139dc63589d35c563eff60 - 0.0% (170 Bytes)
[#008] sha256:9494f1305264c082738bbe0a416270b89e2b5d568e01326c6ea0e2add94980a1 - 0.01% (5.29 KB)
[#009] sha256:261c961f26916f019b86e220ea4d2b92dc4b1c0e2de3106abde7a41e0d3b86f2 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.19.4-aarch64.tar.gz / # buildkit
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:70f8874023e67ce14930f6f45e2a01f3cd61b913894c814206415404a5e914ce
2024-09-26 18:19:57 UTC
99.8 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:c3045cb4f0dd3320c62c35c3443bc350e64a45c48666004b29e9912a645e7b35 - 3.21% (3.21 MB)
[#001] sha256:a44aed1596aae53b43b5c560a70ed3077f01224dad331cd0f195462cd93de112 - 0.0% (1.24 KB)
[#002] sha256:4a0c1eec1649b1b27928c826ff7967e09692327c62f6641f0fb1010c2e92117e - 0.99% (1020 KB)
[#003] sha256:1a9c8a3c406978e167a2ce8783167ab531948c0e6a0f1ada877f0764a536e708 - 0.0% (116 Bytes)
[#004] sha256:ae93ac7f79fff4762706402a63a33f2764702859f053bdcea3f8649dbf6940c7 - 95.78% (95.6 MB)
[#005] sha256:37a8043ae6ffc53e684298f12d500c68bee38572da618a8a154176e5da3ebe8b - 0.01% (9.66 KB)
[#006] sha256:40e3cb4f37e00048d7e3b253c2bc761e27076113c84d65db04538caed0e2fed3 - 0.0% (129 Bytes)
[#007] sha256:4fc1609bf5780713a4eb73cc1fcf6e80397182795986ec2491f083cb693732e8 - 0.0% (170 Bytes)
[#008] sha256:18763b0ce660c3952b99d2c25a6816601f7e965cf570446f83d741b5eb37490a - 0.01% (5.29 KB)
[#009] sha256:5d748811646d38ee4af8143613e9741c97d484c8329eebe8ac3e43bc346f77d8 - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.19.4-ppc64le.tar.gz / # buildkit
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
sha256:73a08906f0fc23498b63df8ee29dc34ffda4354adb068208491aa09dca9920f7
2024-09-26 18:19:57 UTC
104 MB
llvm15-dev clang15
GOSU_VERSION1.17
LANGen_US.utf8
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGDATA/var/lib/postgresql/data
PG_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:6281353bb84e1beeb4deabf01093d4ab69b089bed69f3a95c18702b149677456 - 2.99% (3.1 MB)
[#001] sha256:1be5dc1246d0976e782f1978d2b2c680cd917af96a6f248e327cf6c5a71ddbac - 0.0% (1.24 KB)
[#002] sha256:dea0a759c44d4c20668d2dd240b15b5122b742a9976f56b2975b365b6c05623a - 1.0% (1.03 MB)
[#003] sha256:7812d75d98e27ac280ac6098ba2faa87afa5ac62c3535dab3584f78baff17305 - 0.0% (116 Bytes)
[#004] sha256:0e3045e3006691f2e4d5f038bd97275c70c58b776cbb1fa804a52df8238edd68 - 96.0% (99.6 MB)
[#005] sha256:b26f9df4df9a9fb154ea641699158858a71298a79e0456e983937ed64154f794 - 0.01% (9.66 KB)
[#006] sha256:de5568d5776065c48935cb478d575e9b192cc5ef31a5752f446e7b10add1388a - 0.0% (127 Bytes)
[#007] sha256:ce344316e7193ca23a785524f77784b4b9258c61eb6a962a13cac775b41b8127 - 0.0% (170 Bytes)
[#008] sha256:791057056b8ab1446f209ebf35023bad6f85ef6547851a77f3a5eec877782793 - 0.0% (5.29 KB)
[#009] sha256:22cf8faf4073e4c8a9744762f6bb315872100b076f68d888bf98cc72c32761fc - 0.0% (185 Bytes)
ADD alpine-minirootfs-3.19.4-s390x.tar.gz / # buildkit
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
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.