2025-03-20 08:50:29 UTC
223 MB
llvm19-dev clang19
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_MAJOR16
PG_SHA2569468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
PG_VERSION16.8
[#000] sha256:69aa61ccf55e5bf8e7a069b89e8afb42b4f3443b3785868795af8046d810d608 - 1.48% (3.3 MB)
[#001] sha256:dae0909a0434c10edf67809b0c5590c31d38b86ed69ae549a0f423f1d41f5885 - 0.0% (970 Bytes)
[#002] sha256:280da5a7476624e78c446b7406857da66530f2958f144f153a6c674e7a74afe1 - 0.47% (1.04 MB)
[#003] sha256:baa1884e3672ef2f34800b5ff162b1f2ef177395dd6e78be4768e65f0157aebe - 0.0% (173 Bytes)
[#004] sha256:5ea9105bea62f61c1085f71f290057b77ca95004fe317d8fcbec4c5c7862eaab - 0.0% (116 Bytes)
[#005] sha256:1c2c2b3af589cece1b2d36c3f71a30ff29981d46e16bce480da37eed3a0316f7 - 47.56% (106 MB)
[#006] sha256:c05eba0744dbc2372481e06ab67158ab4f1eb706660ea246d3e28682fbe2c717 - 0.0% (9.34 KB)
[#007] sha256:4f18957d9158a8b1c89255f2447c4a328cad547af4eebf3854a839c9d30ece29 - 0.0% (129 Bytes)
[#008] sha256:7dc01bea0fbb97806e711602f35f1db28619833af294631cba70ae85c2ea2b62 - 0.0% (170 Bytes)
[#009] sha256:734d5c96dd179bcc45c72fbc7d65c751a393f9b9521d4aec93a37258f6ca6664 - 0.0% (5.35 KB)
[#010] sha256:8f4971a5dfe7ba7fa488b94eb6369f8b2dc3b2a50c3f2e0ef88bc9f0ceea3d5d - 0.0% (184 Bytes)
[#011] sha256:4f876588a4bbcb493154816ffd8c3c5eadc08163a635670081227768e908d6b1 - 10.56% (23.5 MB)
[#012] sha256:6d67a52e18afb33b21ef5d6973b641d1915c5f5bcbc0749d093f6a3da1607838 - 2.31% (5.15 MB)
[#013] sha256:23c8713d1707adb7419aac38a5caa3971659941e33f44a65ad89cf9b8f525884 - 0.0% (2.08 KB)
[#014] sha256:15da6af245d4f27a6acc96f0c5f077f9847c8365efdad2164c39360cfeec648a - 3.36% (7.49 MB)
[#015] sha256:826a13e411cf0d4ee0dc24cdd7e32368aefff3d8c36d4b8669669fb9c879f5b1 - 17.96% (40 MB)
[#016] sha256:c3977c54f3216fd248d194a6bbc35ee28d339e7e91c131a6ef528b9fc6fc31b5 - 14.14% (31.5 MB)
[#017] sha256:70195514d4b72acb12a193b41f81918a6774db6508aa0b72b2f7d2603fd11776 - 2.15% (4.81 MB)
ADD alpine-minirootfs-3.21.3-x86.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=9468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --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
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.21
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 /bin/sh -c set -ex; echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" >> /etc/apk/repositories; apk update; if [ "$PG_MAJOR_VERSION" -ge 16 ] ; then apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-03-20 08:46:37 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; if [ "$PG_MAJOR_VERSION" -ge 17 ] ; then apk add --no-cache postgresql-pgvector; else apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2025-03-20 08:46:37 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-03-20 08:47:23 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-03-20 08:47:23 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-03-20 08:47:24 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-03-20 08:47:24 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.19.0
2025-03-20 08:50:29 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 TS_VERSION=2.19.0 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-03-20 08:49:54 UTC
219 MB
llvm19-dev clang19
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_MAJOR16
PG_SHA2569468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
PG_VERSION16.8
[#000] sha256:f18232174bc91741fdf3da96d85011092101a032a93a388b79e99e69c2d5c870 - 1.59% (3.47 MB)
[#001] sha256:d3fa5bea7429ee382561576b9a93d1ec7f116705490cf9d79c37ce67348243af - 0.0% (972 Bytes)
[#002] sha256:d160f5d84fae419e902819de58dbaab66e86c0e3833c59b7cfd36301f2238262 - 0.49% (1.07 MB)
[#003] sha256:7cdbcf1585083644b4ea4bec5891c5a9be274c41bebdbb6699cd9609567d33d1 - 0.0% (176 Bytes)
[#004] sha256:ff49b4a326ab89704f171364a2fcd6580c375e610fd48e7135dd37d83aba64e1 - 0.0% (116 Bytes)
[#005] sha256:658bbf5b160b00efeb8a06f82d6093e3acf245870a265f3d6c1c920de7669a61 - 45.72% (100 MB)
[#006] sha256:ad59dcac79555f9db003f848bd89c923e57bfd3821af6c539ad36d99f8c87e44 - 0.0% (9.33 KB)
[#007] sha256:fe6f369443b540ec2ca709ea9a4a2167c36b14f383928dafb992c4720b80aeaa - 0.0% (128 Bytes)
[#008] sha256:a95aeabeba272fbac22a1561c36517a1426aa33259ac222b0694ef670ffd15f6 - 0.0% (170 Bytes)
[#009] sha256:59e8ecdd711f4c3d1f75344810383858ee525344629716e3153531e8db3abf59 - 0.0% (5.34 KB)
[#010] sha256:248166938f44bd0aae2894d7415a17021a9eb55afd4268c1ffb4d4f2f7be0bba - 0.0% (183 Bytes)
[#011] sha256:97675b5e7924d3cd46496e29d323fe325b3d21fd153b1009c9abf21383888315 - 10.39% (22.7 MB)
[#012] sha256:a698e7705aead2de2c1b58000739b1a1ee9dce26b3e4a6b61711a805c685c332 - 2.43% (5.32 MB)
[#013] sha256:2cc9f950d78616042e92b50e37e55a12286f6f50c3756c009ff3f79d349f2faf - 0.0% (2.08 KB)
[#014] sha256:355b7c89ec5dff84f4b47ceccc4129fa1112088bf2cc750b5f8722cf2be1899e - 3.56% (7.79 MB)
[#015] sha256:e843e1bc27228ad4f5267df46dee348a83472dc55cc1974d23fc42f938d38c68 - 19.14% (41.9 MB)
[#016] sha256:3949bf60d59cb6a19f78f9c2d83052b0af458ab845de269960e741207c586979 - 14.41% (31.5 MB)
[#017] sha256:d5a0be454e7d19e4e137416d1037865ae3b186c32e1cecb9f182cb3c02d9cdfe - 2.25% (4.91 MB)
ADD alpine-minirootfs-3.21.3-x86_64.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=9468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --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
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.21
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 /bin/sh -c set -ex; echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" >> /etc/apk/repositories; apk update; if [ "$PG_MAJOR_VERSION" -ge 16 ] ; then apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-03-20 08:45:10 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-03-20 08:46:34 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; if [ "$PG_MAJOR_VERSION" -ge 17 ] ; then apk add --no-cache postgresql-pgvector; else apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2025-03-20 08:46:34 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-03-20 08:47:05 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-03-20 08:47:05 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-03-20 08:47:06 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-03-20 08:47:06 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.19.0
2025-03-20 08:49:54 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 TS_VERSION=2.19.0 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-03-20 09:12:01 UTC
196 MB
llvm19-dev clang19
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_MAJOR16
PG_SHA2569468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
PG_VERSION16.8
[#000] sha256:76099982f06682e28a60c3b774ef20931d07b0a2f551203484e633d8c0361ee7 - 1.63% (3.21 MB)
[#001] sha256:62e8cc19bee9308afcbf52843a00e4ef4972c49cf21acd9b92368cecf528ff49 - 0.0% (972 Bytes)
[#002] sha256:781627176b8f9e10a830d9e3a634776cd0db6531992b444881c58b767652e146 - 0.53% (1.04 MB)
[#003] sha256:2d5c66ed96baf47284abdd1941a68e679209bcd67c5115885f337bd99a0c6008 - 0.0% (176 Bytes)
[#004] sha256:221e19b745e47706571cde1555189229d670f7c69c24c2b57e6260be58b7045a - 0.0% (116 Bytes)
[#005] sha256:55071245c6d5774ef373ce32e59de3eb66d05e938591994546931487a7a0ab89 - 41.15% (80.8 MB)
[#006] sha256:2800c48d20437fb00016d7878d901b0eaa3dc5af1a54b01f6e158c9f4a1c5987 - 0.0% (9.33 KB)
[#007] sha256:3c421a7cacc7319fb5800307853a47907f1ad5f1b4840cd06ff36a7443faf252 - 0.0% (129 Bytes)
[#008] sha256:8b3736036fc5b0ff093e68462c7ba18eed982256a9404c99c4c426323a25ec1b - 0.0% (168 Bytes)
[#009] sha256:98ec152f09c020cba2694dd58808ab34d26e284fcba321d89f5d14f2c8ed379c - 0.0% (5.34 KB)
[#010] sha256:d82564a3015e497cd674c5a277ba86b8d36ed83c8e6686be30ce901ac254c0dd - 0.0% (186 Bytes)
[#011] sha256:2249e27c798045780e8960a2a92297e336a3490f3e70f1717966d3c309ee6e22 - 11.12% (21.8 MB)
[#012] sha256:17d7afcb313178a204ae2e7b6faef84ab6661ddaac7a5a9e28ae0e5d5797578a - 2.49% (4.9 MB)
[#013] sha256:b950b39e76d414e5c2d38ec0e8ba9bf8aa4ae913597b63bd04e3e9dbe2e69270 - 0.0% (2.08 KB)
[#014] sha256:61020a7ea12bbc5807ea9e1e0d4f34ee51347400b06193ba48d107f6663feb4a - 3.69% (7.25 MB)
[#015] sha256:4fa21fed1664270d22161eee5171cc24bc88c02d77dc7176f0f3fd67eaf0a999 - 20.84% (40.9 MB)
[#016] sha256:9cb08cdadc1a6353967bfb5a62240a0548502e4ca2ecb88293ff3b1bddddc815 - 16.06% (31.5 MB)
[#017] sha256:22f1c9b79c32f6a99bb44520f74c51c75c5b83dc926fa7bf4d79800bb1dc49e6 - 2.47% (4.85 MB)
ADD alpine-minirootfs-3.21.3-armhf.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=9468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --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
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-03-20 08:45:54 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-03-20 08:45:54 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-03-20 08:45:54 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-03-20 08:45:54 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-03-20 08:45:54 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.21
2025-03-20 08:45:54 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 /bin/sh -c set -ex; echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" >> /etc/apk/repositories; apk update; if [ "$PG_MAJOR_VERSION" -ge 16 ] ; then apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2025-03-20 08:45:54 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-03-20 08:45:54 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-03-20 08:45:54 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-03-20 08:45:54 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-03-20 08:55:13 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; if [ "$PG_MAJOR_VERSION" -ge 17 ] ; then apk add --no-cache postgresql-pgvector; else apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2025-03-20 08:55:13 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-03-20 09:01:08 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-03-20 09:01:09 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-03-20 09:01:09 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-03-20 09:01:09 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.19.0
2025-03-20 09:12:01 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 TS_VERSION=2.19.0 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-03-20 09:12:36 UTC
191 MB
llvm19-dev clang19
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_MAJOR16
PG_SHA2569468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
PG_VERSION16.8
[#000] sha256:85f3b18f9f5a8655db86c6dfb02bb01011ffef63d10a173843c5c65c3e9137b7 - 1.55% (2.95 MB)
[#001] sha256:c7024250a83f264a63fbff534638a3450b2f72ad8d8b35fe376f3e85aa54086d - 0.0% (972 Bytes)
[#002] sha256:8c4a8c8d36a5e942fa57e2ceda06a6b7f36ee0bfcc9dea6dea13a291bac3ff68 - 0.54% (1.04 MB)
[#003] sha256:15e35cdea82ca5630226b82d28e392522daaf6209398481688120f3198202889 - 0.0% (175 Bytes)
[#004] sha256:5d49d5df43279d9ad2270901f444af104f5ba3ce219b96ceb2020802a9b82c2e - 0.0% (116 Bytes)
[#005] sha256:8a5b8b5e08d3704ad985dfb2c7be6603d2b0fa1839ad789a42da2312dd4794e3 - 40.04% (76.5 MB)
[#006] sha256:0b798979480afc44eb1c10a2826eec0f3d1527672b88b89dd5a47468f8a59083 - 0.0% (9.34 KB)
[#007] sha256:47576dd78ece61fa761753c97c15174a3fe5136783ae7f8e380a0948d5e7c58b - 0.0% (128 Bytes)
[#008] sha256:c66a6269334adc04f14aadfed90289975cd8a6e5334f6217a8b0641c52216daa - 0.0% (169 Bytes)
[#009] sha256:9a08ea1e7b75d5fd150ff7679db7fe3ee4172fa6de341881e46b6b1ac71a315a - 0.0% (5.35 KB)
[#010] sha256:b83918d3b12c13fbb10914a5f48cdb2d5253637bd67f2ce5e19672e83cbda644 - 0.0% (188 Bytes)
[#011] sha256:767239fdaffe577ed1c15602b887a48f6b9755d0d865db8b3ba7654ad952a5be - 11.1% (21.2 MB)
[#012] sha256:6b3366bf2eb068507805753fb50c720669326a8328669170c16a62aeb8104fea - 2.65% (5.06 MB)
[#013] sha256:007447d977997fb4f98cc4fdc2aae6973b2415f2f46d78c36068dc90733c9a97 - 0.0% (2.08 KB)
[#014] sha256:be071523e4cc42dee6ac7fcd9fa18e6dd9e602dfb4599c7164483c56436e3b6a - 3.79% (7.23 MB)
[#015] sha256:c7119c9a5195a6de4934e3fb9a7372d5569a0efe31922cddfcdf5c7673aba191 - 21.29% (40.7 MB)
[#016] sha256:94ddd572dd9a5afb50e097a3af14601819c74b07481018741b1b0607a41e0e01 - 16.5% (31.5 MB)
[#017] sha256:91c45526d5665e7377e2c66baae389b30b4561228285c0f9603a50048db51bdf - 2.53% (4.84 MB)
ADD alpine-minirootfs-3.21.3-armv7.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=9468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --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
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-03-20 08:45:55 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-03-20 08:45:55 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-03-20 08:45:55 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-03-20 08:45:55 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-03-20 08:45:55 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.21
2025-03-20 08:45:55 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 /bin/sh -c set -ex; echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" >> /etc/apk/repositories; apk update; if [ "$PG_MAJOR_VERSION" -ge 16 ] ; then apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2025-03-20 08:45:55 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-03-20 08:45:55 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-03-20 08:45:55 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-03-20 08:45:55 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-03-20 08:55:12 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; if [ "$PG_MAJOR_VERSION" -ge 17 ] ; then apk add --no-cache postgresql-pgvector; else apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2025-03-20 08:55:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-03-20 09:01:12 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-03-20 09:01:12 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-03-20 09:01:13 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-03-20 09:01:13 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.19.0
2025-03-20 09:12:36 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 TS_VERSION=2.19.0 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-03-20 09:12:49 UTC
213 MB
llvm19-dev clang19
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_MAJOR16
PG_SHA2569468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
PG_VERSION16.8
[#000] sha256:6e771e15690e2fabf2332d3a3b744495411d6e0b00b2aea64419b58b0066cf81 - 1.78% (3.81 MB)
[#001] sha256:16d48755775e41959c11dbae67c73e508794c4507936bb8d9d1c54a5bf9baf7a - 0.0% (973 Bytes)
[#002] sha256:d35fcfe67dcaa92daec92707019371dd6c15793f8d326a1e2d0d2434dbd35c2b - 0.47% (1 MB)
[#003] sha256:2efe9af599f16a632d2f7095a66eae673a693b85ebff7f57530d7b7c92e777bf - 0.0% (174 Bytes)
[#004] sha256:768b1e3f7c9524ab0ed8549a61794969506c0a5b3999b7be7a96ca53574538a8 - 0.0% (116 Bytes)
[#005] sha256:c985f12a77cfa53508ddacdb11790264eacc3f4a96b7b38993beb03328b3ef98 - 44.89% (95.8 MB)
[#006] sha256:18a63da20c015c0f70314bcfed67b8b93bbf3da8c49c4a186daeb246f7f49740 - 0.0% (9.34 KB)
[#007] sha256:a7e2ca30cc55cd390967ade71add7bfe660e825df3cf5abfc6635250e1cc8a2d - 0.0% (129 Bytes)
[#008] sha256:95c894a1e8620cae8f12f76686f0f9b439957ed54d31c72656b24ea6bdf9c16b - 0.0% (169 Bytes)
[#009] sha256:41113d9ae882e0e30f43f434c9f2fab81e5004e11ef675edfbacc31d2eebcb98 - 0.0% (5.34 KB)
[#010] sha256:73087a2a737f79bacdfec4041797917a38b4b77cb4af1d032db5e3ddb565b250 - 0.0% (183 Bytes)
[#011] sha256:30a205d338bdaa3b0f6a85e0749d04abb72de76968458ccda4330e6d98075768 - 10.57% (22.6 MB)
[#012] sha256:63291c0351da9638822b294737fd15f3c1270c2f3a2f78dadf37c61f560f9f98 - 2.46% (5.24 MB)
[#013] sha256:39408046681bc2b32af0999c2955220a73a1dd8654b839c8958ea620770ea57c - 0.0% (2.08 KB)
[#014] sha256:d0ccf162afc3fe01d78cf347c8f228fe895196a72d8b248f454bf84af9aece41 - 3.43% (7.33 MB)
[#015] sha256:49e8340efdc7ace3cba0548dedd4ad18f29abed1ce5ba26e19e8f43ea93cf43c - 19.33% (41.3 MB)
[#016] sha256:7b2b2612d9c0add6c743d8e058d6716101a80d2f9c1edcaffa108c5a03e91cf7 - 14.77% (31.5 MB)
[#017] sha256:06430885fd7d524044c3dd2c3a44107a6a6b7fbeec94eeb51fac7a5535def031 - 2.28% (4.87 MB)
ADD alpine-minirootfs-3.21.3-aarch64.tar.gz / # buildkit
2025-02-14 03:28:36 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-02-27 00:53:12 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
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=9468083a56ce0ee7d294601b74dad3dd9fc69d87aff61f0a9fb63c813ff7efd8
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-02-27 00:53:12 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/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --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
2025-02-27 00:53:12 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
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-02-27 00:53:12 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-03-20 08:46:07 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-03-20 08:46:07 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-03-20 08:46:07 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-03-20 08:46:07 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-03-20 08:46:07 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.21
2025-03-20 08:46:07 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 /bin/sh -c set -ex; echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/" >> /etc/apk/repositories; apk update; if [ "$PG_MAJOR_VERSION" -ge 16 ] ; then apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2025-03-20 08:46:07 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-03-20 08:46:07 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-03-20 08:46:07 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-03-20 08:46:07 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-03-20 08:55:39 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 /bin/sh -c set -ex; apk update; if [ "$PG_MAJOR_VERSION" -ge 17 ] ; then apk add --no-cache postgresql-pgvector; else apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang${CLANG_VERSION} llvm${CLANG_VERSION}-dev llvm${CLANG_VERSION}; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2025-03-20 08:55:39 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-03-20 09:00:51 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-03-20 09:00:51 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-03-20 09:00:51 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-03-20 09:00:51 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.19.0
2025-03-20 09:12:49 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PG_MAJOR_VERSION=16 ALPINE_VERSION=3.21 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 TS_VERSION=2.19.0 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
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.