Namespace
library
Image / Tag
postgres:14.15-alpine3.19
Content Digest
sha256:d27f13914958b522ecb0838221cbadcb53f22eec45b443ffbfd1aa807684dbd1
Details
Created

2024-11-21 20:09:59 UTC

Size

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

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:ab80d4d2b0222e03eca115215a16260e1a5f86f8b55e9b677e9d5c30b909a6af - 3.17% (3.1 MB)

[#001] sha256:d69283567ee862552e281a4ca04e68ba279bb36d4f2e4d9a07b35c9d9b8788e8 - 0.0% (1.24 KB)

[#002] sha256:a9a868a02b0bd97e4ac3196ad2ec5de798fc18d79914239c00f3dff3758882cb - 1.07% (1.04 MB)

[#003] sha256:0db83ad258737fc893a7505d695e9e53f8e723952d87593398d4a42309903e78 - 0.0% (173 Bytes)

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

[#005] sha256:fb8ce42b0c5dcb308ac18bf07b20ff48eb97563bdb68c256ff3ff14d06da689c - 95.74% (93.6 MB)

[#006] sha256:3db8ccbaa61a8aae80e0e8e727372abc06d3614471fe93440d1d4b902269ac1d - 0.01% (8.98 KB)

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

[#008] sha256:0846c89e122f2329fd1d6bdcbebfac84e3ceb9beb85c6cccdced91b7cb4f93a5 - 0.0% (169 Bytes)

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

[#010] sha256:64afb3ff7eacfa03a9578bb38628fe3f2d5af71c3188ca753bfc2d0f95edec30 - 0.0% (182 Bytes)


History
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

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

2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-11-21 20:09:59 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; 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 ; 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-11-21 20:09:59 UTC

Size

92.9 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:a7cd7d9a21440da0d765f2989d75f069adf9b3463a765421a0590bca720920d4 - 3.51% (3.26 MB)

[#001] sha256:20bf21ab08380cb19e9624c7cef9be79dee0d32c6ac2ce33f8bda0ffae4660fe - 0.0% (1.24 KB)

[#002] sha256:a05ff72e9f8fe7d6493096a512b5f4a093ef190100135bcd2efdc2e5b39584b5 - 1.15% (1.07 MB)

[#003] sha256:523c281912c03f700879af140b801b6346052da1953801dbb6affc402338dee8 - 0.0% (172 Bytes)

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

[#005] sha256:1fcadbfcb8d64d09f54688c77537ac29be847985f91926f06679d2d76d3bbe87 - 95.32% (88.5 MB)

[#006] sha256:c64142802fb8f3411505a2f21d011443eee7131bc37f4ac7d06717790b1d1bd2 - 0.01% (8.98 KB)

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

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

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

[#010] sha256:3e7658b706ba4df59348ad4329d8e4353dbc4b36b7fc47806495b1364e276717 - 0.0% (183 Bytes)


History
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-11-21 20:09:59 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; 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 ; 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-11-21 20:09:59 UTC

Size

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

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:1962dd3845094270fb16c55729f52e68e09c9fdecbe06ccfa89e981fa679172d - 3.31% (3.03 MB)

[#001] sha256:1129eba1c516693bf2f340f0343f658e37e7812832c7f2e7493ce214856d3fc0 - 0.0% (1.24 KB)

[#002] sha256:1855f1ed4c4392b8709ed6c84e2a119012e83c080f39bb8faf7f1bbc735a9252 - 1.13% (1.04 MB)

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

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

[#005] sha256:e48112f21acc3d46e1be3653e67f7eabb485cd400560e864a25826702da5cd34 - 95.53% (87.3 MB)

[#006] sha256:286d7db7c401c65e98263d72f0c0374b0d9448dcfe94fbeb5b1987e8e9e11148 - 0.01% (8.99 KB)

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

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

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

[#010] sha256:d8aa814d2c18767ae05b8ce568480acabaa0afd0f84793aede530a48bb1fa1ed - 0.0% (183 Bytes)


History
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

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

2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-11-21 20:09:59 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; 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 ; 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-11-21 20:09:59 UTC

Size

86 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

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:02dfd5e2e7e47e8d8f9020a0d7f4d8240d6646afc6a52b168c0899bc0c3d06a3 - 3.25% (2.79 MB)

[#001] sha256:c5db41ad436d5f7ebd4024d28883a253bc45e3577ec71b917f3af8f6247e0a49 - 0.0% (1.24 KB)

[#002] sha256:07ec4ab37e54f1eaa5a6a0648af6ccfa09df4dda8aebd4bfd4c95a09aeeaf220 - 1.2% (1.04 MB)

[#003] sha256:694d2ecd365071d47a25ce95fec93acb0830747395eb32752556c88eb3dc3a81 - 0.0% (179 Bytes)

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

[#005] sha256:2fa1eb3cdbe7dd9dd8446491ea2eb0cae164014c578420a2caf474fe738eb031 - 95.53% (82.2 MB)

[#006] sha256:f5aea3cccb48c5a48abed000f2f641710e6c47484610fe10697cc3709bb7574d - 0.01% (8.99 KB)

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

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

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

[#010] sha256:11aa61c3552773a9bbc4dc21d654c8be6bd73689c32a4dcaee5628c40cde4488 - 0.0% (184 Bytes)


History
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

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

2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-11-21 20:09:59 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; 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 ; 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-11-21 20:09:59 UTC

Size

91.6 MB

Content Digest
Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:6c9d4d66fb4987fcd48c673e8b29bb504a3cfb33f10b97cbcea126aa3b8b59fd - 3.5% (3.2 MB)

[#001] sha256:0e12908080ef4c1fe1084233332d7f38ee24d4d9205cf67d2efaaf56b48161c8 - 0.0% (1.24 KB)

[#002] sha256:108f2378d159809cd20c16968f33184d490c2aeb6efac4b1ab24cb3014f9012e - 1.09% (1 MB)

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

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

[#005] sha256:db5a83fbd9ede0cbd5a8305dcde98feffede96a29eb942ca455861fab90fc1b3 - 95.39% (87.3 MB)

[#006] sha256:2d9cd75f2a480bb6bd7faefcbf33626987846dc051bdda53e93ca5679b3d520e - 0.01% (8.99 KB)

[#007] sha256:c5550446844c0fcf09c852411b3ec1883ddc55b0b1888e83b73125f42088179d - 0.0% (126 Bytes)

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

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

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


History
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

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

2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-11-21 20:09:59 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; 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 ; 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-11-21 20:09:59 UTC

Size

97.1 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

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:c3045cb4f0dd3320c62c35c3443bc350e64a45c48666004b29e9912a645e7b35 - 3.31% (3.21 MB)

[#001] sha256:6b210ec8ed1260138487b366b6cc6cf870563d4506a35f0a64ccdc7db288b503 - 0.0% (1.24 KB)

[#002] sha256:17f569b818764a75b625723057d18967c65a9adae20004f6d1aa2a6a6f141f80 - 1.02% (1020 KB)

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

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

[#005] sha256:f4d32d58755ccc0e3aaf0a795b0f6a0db02a0831eefc7d480398ba0309044b7e - 95.66% (92.8 MB)

[#006] sha256:c0774804e5df64e45d7338fe86854ae5922ccba046b585c48a7c52f826eecaf1 - 0.01% (8.99 KB)

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

[#008] sha256:839dc9ffc5e590556c2659eac938e52014a2d68ee9ce999cbe53e228cfdb216c - 0.0% (172 Bytes)

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

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


History
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

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

2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-11-21 20:09:59 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; 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 ; 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Details
Created

2024-11-21 20:09:59 UTC

Size

101 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

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:6281353bb84e1beeb4deabf01093d4ab69b089bed69f3a95c18702b149677456 - 3.07% (3.1 MB)

[#001] sha256:7508d4d6ac64ab81f5f150e33662bfd19f23a5c43a2e417c08da4ef9669ea599 - 0.0% (1.24 KB)

[#002] sha256:50692ebd9455b35336c3bbf6d65952fc740571194ad1404bee4b68c65a2d5eda - 1.02% (1.03 MB)

[#003] sha256:7b0fc7b1619a2ef674c606069a975f0de7c57938bd6bd30094ae92a0850cb056 - 0.0% (176 Bytes)

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

[#005] sha256:3385ce7f2cff69f14ad49bde6ab7a574c0e011cfe7a54c2f1b433bc5a7a7d2dd - 95.89% (97 MB)

[#006] sha256:4fad8d8a687e3adf3300bcc615dfdd2fa86408922f1d5877f5849f4306ceccee - 0.01% (8.98 KB)

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

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

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

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


History
2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

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

2024-09-06 12:04:22 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit

2024-11-21 20:09:59 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; 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 ; 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-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

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

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-11-21 20:09:59 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete