2025-05-27 15:02:31 UTC
245 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_SHA25607c00fb824df0a0c295f249f44691b86e3266753b380c96f633c3311e10bd005
PG_VERSION16.9
[#000] sha256:69aa61ccf55e5bf8e7a069b89e8afb42b4f3443b3785868795af8046d810d608 - 1.35% (3.3 MB)
[#001] sha256:b83d30a0e7ff4a390883d8ba76079d04c24507aa75038d10b8e9dc34bdc67860 - 0.0% (971 Bytes)
[#002] sha256:7ce53c099590fb848e9ee4ada292e66444cdbf60c1eb102a26c1f4ea37cdbed7 - 0.43% (1.04 MB)
[#003] sha256:6ae9559172a91690dd5c908dfbe7467e5bb9743da598beedde47a306c41ccd78 - 0.0% (173 Bytes)
[#004] sha256:b939ff087296ca6b4f76f87914feeecc36749cd97d564b52c686145f69121b98 - 0.0% (116 Bytes)
[#005] sha256:f226ef6e95684022a8f500dbc345fac4e13cd3fb43b2f06a2fac2a35eb670297 - 43.27% (106 MB)
[#006] sha256:5504a8630e42625d4c364731afdd909a1a24d0dbc18116e35663ba8167d86fc1 - 0.0% (9.34 KB)
[#007] sha256:08a99e490e0c79ddcc3c4d99a474a491d8d0537bf0e8f78ae9b20adc08725850 - 0.0% (128 Bytes)
[#008] sha256:edf753781ed15f52cd35e4e536fc87d6cfd0550c115d666cef65a0a36dbd127b - 0.0% (170 Bytes)
[#009] sha256:ad454eda85883c418eb3d5770ada1e09f908473cbdc1e1fe5357e3391a4a0751 - 0.0% (5.34 KB)
[#010] sha256:0ac5094f1885499985c157afd9d662efb77e40325c295baec7fe8243eec6e52e - 0.0% (183 Bytes)
[#011] sha256:577408c57a7fdbf7d2a3fc432a1fb84399b100f02e3bf9c97f202593970bb440 - 9.6% (23.5 MB)
[#012] sha256:9fd2833acad887c20280ed74ae4917872d0e390933ed90e0d015dda8a093b957 - 2.11% (5.17 MB)
[#013] sha256:21888a74ef38a38667550520ac7a8aa15a15b9aa84836497cb1b5f3f93866ce6 - 0.0% (2.08 KB)
[#014] sha256:57167b07cda70963407a026693ef0881bdb049b7a8f407e351b590527e34fee1 - 3.06% (7.49 MB)
[#015] sha256:aa522d3598f86b42f342f81ebb40cb29fb4f5044ff67a8b12e4f02c23691cfdb - 21.32% (52.3 MB)
[#016] sha256:976bf99a59e7bb4e946cdb90bee43cb1f494f8ff5451fb3791166fd508e6c809 - 17.0% (41.7 MB)
[#017] sha256:0a7906a88c77d657632c0354b42d27cb9c6359b10d895478ee43d1ecf113f35c - 1.86% (4.57 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-05-08 18:32:48 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.9
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=07c00fb824df0a0c295f249f44691b86e3266753b380c96f633c3311e10bd005
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-05-08 18:32:48 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)"; 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.21
2025-05-27 14:57: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-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-05-27 14:58:35 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; 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; # buildkit
2025-05-27 14:58:35 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-05-27 14:59:22 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-05-27 14:59:22 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-05-27 14:59:23 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-05-27 14:59:23 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.20.1
2025-05-27 15:02:31 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.20.1 /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-05-27 15:01:55 UTC
241 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_SHA25607c00fb824df0a0c295f249f44691b86e3266753b380c96f633c3311e10bd005
PG_VERSION16.9
[#000] sha256:f18232174bc91741fdf3da96d85011092101a032a93a388b79e99e69c2d5c870 - 1.44% (3.47 MB)
[#001] sha256:10e9080a2e2410f5d6ac5614cdb1974139407fa43ac141db86997bf8b9f92e58 - 0.0% (974 Bytes)
[#002] sha256:8adafa2306477a47d57f742a8b7353bde27eb36b1480f021e8bb181b0ca8c642 - 0.44% (1.07 MB)
[#003] sha256:6e354c51bc0109f20843255b7f1b2c255c772777da6f4fa94403b39acd52f47a - 0.0% (174 Bytes)
[#004] sha256:f71a8df96436d84a7149a43f73ebb134915505cd8375c68fb1ee0b1749ead469 - 0.0% (116 Bytes)
[#005] sha256:162e443ce030030308168e26f3076f154f1c5de68cb464f9eb1d754663628e9c - 41.44% (100 MB)
[#006] sha256:4c3435ecd36c1bcc387f3c712b15ab7572bd1a6a5ae7736645ad44f13db2fe0f - 0.0% (9.33 KB)
[#007] sha256:9842d12f704299e1ed56007ae44594d92d811d8e852004ac692bae93b51ee4b8 - 0.0% (128 Bytes)
[#008] sha256:f0c6e23b5b51a3342c8d8e0ebb10b422bf3a6cc5df83489825a820e567ac532a - 0.0% (171 Bytes)
[#009] sha256:6dc008d32b799ce25d68b34e30db9b5c4179fadac89bc1fc12cc0ff1a3f2c7e7 - 0.0% (5.34 KB)
[#010] sha256:8814fd72acf5aca607a10f47360f307b0139f3c487588cb56687090e0f3739ff - 0.0% (183 Bytes)
[#011] sha256:9761e6fa16727cb9419a9f3b4519135488272734befbe3a77a7afe1b55fcf478 - 9.42% (22.7 MB)
[#012] sha256:5caf05c30f6411f421d70d52313c406ae191f223cb278cd27543ec406aaee8c0 - 2.21% (5.33 MB)
[#013] sha256:94f51f1594fab47727e0e971df183e5f4d78ab5378c7d6213a811f5e4101a010 - 0.0% (2.08 KB)
[#014] sha256:cc2b3b76df123270033a525b6e32868a2314545af1cf6ba7f9a29c807a822a07 - 3.23% (7.79 MB)
[#015] sha256:aa4b32532a4b57bdcb56e2201443557fce6cf8a21788e8a69f2ddbe4b734f766 - 22.63% (54.6 MB)
[#016] sha256:44b548b9e62ace748f8a58811ee7850700e828f261395ce310290e293e266a99 - 17.26% (41.7 MB)
[#017] sha256:7eff6709ed4d4bba67e8e6046a8068d5c0dc96be1eba4187bf7a808f2215c06a - 1.94% (4.68 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-05-08 18:32:48 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.9
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=07c00fb824df0a0c295f249f44691b86e3266753b380c96f633c3311e10bd005
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-05-08 18:32:48 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)"; 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.21
2025-05-27 14:57: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-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-05-27 14:57:10 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-05-27 14:58: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; 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; # buildkit
2025-05-27 14:58:37 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-05-27 14:59:04 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-05-27 14:59:04 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-05-27 14:59:05 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-05-27 14:59:05 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.20.1
2025-05-27 15:01:55 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.20.1 /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-05-27 15:24:39 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_SHA25607c00fb824df0a0c295f249f44691b86e3266753b380c96f633c3311e10bd005
PG_VERSION16.9
[#000] sha256:76099982f06682e28a60c3b774ef20931d07b0a2f551203484e633d8c0361ee7 - 1.47% (3.21 MB)
[#001] sha256:62e8cc19bee9308afcbf52843a00e4ef4972c49cf21acd9b92368cecf528ff49 - 0.0% (972 Bytes)
[#002] sha256:781627176b8f9e10a830d9e3a634776cd0db6531992b444881c58b767652e146 - 0.47% (1.04 MB)
[#003] sha256:2d5c66ed96baf47284abdd1941a68e679209bcd67c5115885f337bd99a0c6008 - 0.0% (176 Bytes)
[#004] sha256:221e19b745e47706571cde1555189229d670f7c69c24c2b57e6260be58b7045a - 0.0% (116 Bytes)
[#005] sha256:4e66be80efefdc553b00a01ae8c9ddb15df00bd34eba415d047f2a8e5e051f8b - 36.95% (80.8 MB)
[#006] sha256:d597b55e768c27259ce4af06fa0e0953cce629e318047be034516e3d2a7e46e5 - 0.0% (9.34 KB)
[#007] sha256:8d98ec543d7e2d97ea23dc41d6a34b571993403457eebb60b50f4489c0d27f66 - 0.0% (128 Bytes)
[#008] sha256:36ff4efadc1d2a2affb90af15ab59080f8a3d98b534a200be51e27c73da49c00 - 0.0% (170 Bytes)
[#009] sha256:f98c95345b838cd9b926bfd76487762647d5c4f2276953d1e568c53bce4fdb1c - 0.0% (5.35 KB)
[#010] sha256:08bdad5fa679155d761ac2ece2e391163a8773beaa9ea2c12c8af7adc9224548 - 0.0% (183 Bytes)
[#011] sha256:6e62e42e693cb28e8b93529b5bd333e65817e67e5d1790b9215ee6103f10201e - 9.98% (21.8 MB)
[#012] sha256:28ef5477e880f15ec46631466683f1c74c0fd7a3429a77ab4686fd165ae2c976 - 2.23% (4.89 MB)
[#013] sha256:5b7ce2b5b962f04958118aabcd1e534822f0775a885f6661c7c9d56ddd8ecf07 - 0.0% (2.08 KB)
[#014] sha256:dfdf1c4442adfbbd7eabe9d6c42315c156390bebb635f1a44c683489dd398fc1 - 3.31% (7.25 MB)
[#015] sha256:324a5b64ba11cad7221c8f58c1c32cd572d15198f95b7b76e7d3c7b998a21e2b - 24.41% (53.4 MB)
[#016] sha256:9522ce9a98237b390c89b5df1a777c0de5634d9fcbce288c1c9cb3aab95c9882 - 19.05% (41.7 MB)
[#017] sha256:8744fc851af839483bb126d12337463677882707e29c97a8cd0b45a30c7059b2 - 2.11% (4.62 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-05-08 18:32:48 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.9
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=07c00fb824df0a0c295f249f44691b86e3266753b380c96f633c3311e10bd005
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-05-08 18:32:48 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)"; 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-05-27 14:58:01 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-05-27 14:58:01 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-05-27 14:58:01 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-05-27 14:58:01 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-05-27 14:58:01 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.21
2025-05-27 14:58:01 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-05-27 14:58:01 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-05-27 14:58:01 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-05-27 14:58:01 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-05-27 14:58:01 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-05-27 15:07:19 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; 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; # buildkit
2025-05-27 15:07:19 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-05-27 15:13:27 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-05-27 15:13:27 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-05-27 15:13:28 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-05-27 15:13:28 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.20.1
2025-05-27 15:24:39 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.20.1 /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-05-27 15:24:54 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_SHA25607c00fb824df0a0c295f249f44691b86e3266753b380c96f633c3311e10bd005
PG_VERSION16.9
[#000] sha256:85f3b18f9f5a8655db86c6dfb02bb01011ffef63d10a173843c5c65c3e9137b7 - 1.38% (2.95 MB)
[#001] sha256:3ada47321bd0e89157bae4052aa7de0b68f59e22e5aa8ed76cb27a9a4fb2758b - 0.0% (973 Bytes)
[#002] sha256:997421b050761e5bc8fffaa3538a99a0dfde2e21a4b3c0d5f0432f97e3b5127d - 0.49% (1.04 MB)
[#003] sha256:ce3ebd6a73bb383b8af8f2740ed00d938ad77aded3653a6c82feb078c4df2e9d - 0.0% (178 Bytes)
[#004] sha256:47f44772b8b361b4f64d07c3deb45db2f43c43f540d73e8bba67c33366661daf - 0.0% (114 Bytes)
[#005] sha256:5cc2243f4ce13b5bfb84c5723743e8a2f21092fcc6803118ce41ed96b6360e20 - 35.87% (76.5 MB)
[#006] sha256:96e92da7d5d11e1058f53db4ecf6f746cad1571a00594da56bebb850e283ec57 - 0.0% (9.34 KB)
[#007] sha256:fa42bf54445e1d03bf6fbd862b149f44acdabcb5b43b6f27b0bd3ce87eaad5e2 - 0.0% (127 Bytes)
[#008] sha256:9cbb268d67c8987af8083664776061aae1e8625bce7665f2f21fd338b890cabe - 0.0% (172 Bytes)
[#009] sha256:310bac555e081013f56a2e3f68f9db196f8f217b95e552b3c20471a72783cab4 - 0.0% (5.34 KB)
[#010] sha256:67906f549620cc0211b1aa59a1cfa6bdbd73257ba507e6e58181525a942cd2bd - 0.0% (184 Bytes)
[#011] sha256:ad7827c1fa84db67a97ba692c33b8513a079ab04fe39881d20456c6827cb57d2 - 9.94% (21.2 MB)
[#012] sha256:a09de225bf767f376df3148f947cff3aba3bd586e1b0d6b33ee3df70130bd5c0 - 2.37% (5.06 MB)
[#013] sha256:816cffacacf7efc7c73b87651fdfb44a255bdc9cb4aaa6f24a4e7ff859c10828 - 0.0% (2.08 KB)
[#014] sha256:ed1813e6155fb410ff7c3d496d3f878081ddc5c0c1408ac6b6d0dc721d158f3a - 3.39% (7.23 MB)
[#015] sha256:7d296adc92248685c200e6dd25ca4925d1bd37b92a435d2717629465bbf2c0a6 - 24.87% (53.1 MB)
[#016] sha256:3455d8cafa2912bff51f4e4bfd213fdfef48eb6033758b451bf42fc332966d83 - 19.53% (41.7 MB)
[#017] sha256:cc49dbadba38779efd7413d3381e2dc8bdba92fc3ca903c3c2ab5f0768c6e09d - 2.15% (4.6 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-05-08 18:32:48 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.9
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=07c00fb824df0a0c295f249f44691b86e3266753b380c96f633c3311e10bd005
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-05-08 18:32:48 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)"; 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-05-27 14:57:54 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-05-27 14:57:54 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-05-27 14:57:54 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-05-27 14:57:54 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-05-27 14:57:54 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.21
2025-05-27 14:57: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-05-27 14:57:54 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-05-27 14:57:54 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-05-27 14:57:54 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-05-27 14:57:54 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-05-27 15:07:14 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; 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; # buildkit
2025-05-27 15:07:14 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-05-27 15:13:28 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-05-27 15:13:28 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-05-27 15:13:29 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-05-27 15:13:29 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.20.1
2025-05-27 15:24: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.20.1 /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-05-27 15:25:36 UTC
236 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_SHA25607c00fb824df0a0c295f249f44691b86e3266753b380c96f633c3311e10bd005
PG_VERSION16.9
[#000] sha256:6e771e15690e2fabf2332d3a3b744495411d6e0b00b2aea64419b58b0066cf81 - 1.61% (3.81 MB)
[#001] sha256:80d2520a24d998204e8ceb4a9de65be79f4682dff9f4c13754ea7d80be740d07 - 0.0% (973 Bytes)
[#002] sha256:f902a55e1f5ccbc0e968f96c95c6407849a74f82c937ab32c0942e65f92a0da2 - 0.42% (1 MB)
[#003] sha256:df10ca38afc99ed0ff05d41913f2b2748749c556729fc12efbc0fbf7ca4ab9c2 - 0.0% (177 Bytes)
[#004] sha256:6320dbbd0635a3c65339326440ade8cb02029f5037d7b37f53e751807f9535a9 - 0.0% (116 Bytes)
[#005] sha256:b77aad30e1361f75e90309de9451abc6804a80b9f1bc2876cb55c2a1a2b8eab4 - 40.61% (95.8 MB)
[#006] sha256:10cef688189b091139300aa8aa3a06d7535be385516a19ae8683e09844ba5547 - 0.0% (9.34 KB)
[#007] sha256:ba7187ed489273f69f8585a042854beb8a8629d86a8250c63d170aea10b97ab3 - 0.0% (127 Bytes)
[#008] sha256:02bbd938cacbc80b2ab85cdcf8d3bcbd267c114c61ac7b09e35dd85caa0fd05d - 0.0% (171 Bytes)
[#009] sha256:92fd87599cc9cebf2089f91f573c0ad915414b5f693a6f8b8db10eb21fc6ecf1 - 0.0% (5.35 KB)
[#010] sha256:c5a4a70d6ab60b65a588243901d4b5d05ba55358124a14e07b327cde2b4a553d - 0.0% (182 Bytes)
[#011] sha256:881f4e89cdd1b63a2d9ef57ad584c834f0175d9c6819c23f1f190328d4442cfd - 9.56% (22.6 MB)
[#012] sha256:be5c86f3bddfed932395a66d6ffe527f72a41e9382918d225caf69ee9cbdc07f - 2.23% (5.26 MB)
[#013] sha256:908aa5eaeaeaa2c4d8d36de493e364a3ca156d6bee01ec5160c6c631e13cb9d6 - 0.0% (2.08 KB)
[#014] sha256:51de2d3dcb6a49af4a081da7343e9b5816c9b28d6492b137f0f8da4062cf109f - 3.11% (7.33 MB)
[#015] sha256:4d8cae75f7c0e484bb04cfa243594f07ad410c0d6a63328384f01c6bb3aae0a2 - 22.81% (53.8 MB)
[#016] sha256:be574778de704de593485fa584a9eeedbdece2638a17ef02fe7b31f6736e8492 - 17.66% (41.7 MB)
[#017] sha256:7163a7da0052d366e0d6dac7dac920d20a0346f40afd02939429e597ce028912 - 1.96% (4.63 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2025-05-08 18:32:48 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.9
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=07c00fb824df0a0c295f249f44691b86e3266753b380c96f633c3311e10bd005
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
2025-05-08 18:32:48 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)"; 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-05-08 18:32:48 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-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2025-05-08 18:32:48 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2025-05-27 14:58:12 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-05-27 14:58:12 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-05-27 14:58:12 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-05-27 14:58:12 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-05-27 14:58:12 UTC (buildkit.dockerfile.v0)ARG ALPINE_VERSION=3.21
2025-05-27 14:58:12 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-05-27 14:58:12 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-05-27 14:58:12 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-05-27 14:58:12 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-05-27 14:58:12 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-05-27 15:07:45 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; 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; # buildkit
2025-05-27 15:07:45 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-05-27 15:13:09 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-05-27 15:13:09 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-05-27 15:13:10 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-05-27 15:13:10 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.20.1
2025-05-27 15:25: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.20.1 /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.