Namespace
timescale
Image / Tag
timescaledb:2.17.2-pg14
Content Digest
sha256:11505c6957fd755f9ee6e1938988fde0a5f0f3f16943aa522e3d94bb316609e7
Pull command
Details
Created

2025-01-22 11:58:18 UTC

Size

338 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:6d632fc6244662e41ee3b3f29090684a520e615dc5c282638a7587366dcd4fb9 - 0.98% (3.31 MB)

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

[#002] sha256:73afc5ec0607c065e40546882fbdeca76642ea551d955bd14efddd5b7069d71f - 0.31% (1.04 MB)

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

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

[#005] sha256:63c3eee55a8680f52b96625b710cc07bd547dc2df4844fb9be4cc3cd65a921df - 27.09% (91.6 MB)

[#006] sha256:9e436de4ab99bccd07acdab00bd1f10444fa796110bdc47aecbc05796ce9faab - 0.0% (8.99 KB)

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

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

[#009] sha256:0d8b4a1b9c71fe92f9fe56a8d6a216bd07db2f659e51fd5a6cf402e4ea316c1d - 0.0% (5.29 KB)

[#010] sha256:17e44bf2903e5578010130fe4a80438589d763c4bf8b4590178ae69a58bf95e2 - 0.0% (184 Bytes)

[#011] sha256:b146d21ded60bef7b8bb8225e513b1887f9198bef8417e654bbd63fd2e6e4b5d - 6.72% (22.7 MB)

[#012] sha256:a0859bb89dc25563adb233d3209340ca9ccbaa56a5524a7ca311e3623fa7dad3 - 1.54% (5.22 MB)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:da4d968b35866c9753b298e1669fc8c66e13f52010a2707053eebcf106a562e4 - 0.0% (2.24 KB)

[#015] sha256:72dbc8d643ecb7c4315a3a83451de3051fe19dfb7df9ab8cd29dc0cf20edec9f - 2.21% (7.49 MB)

[#016] sha256:efa30f0329db01a056f3a5b206bca6fa7780da35ff0618f7bd036e172a31bab4 - 43.63% (148 MB)

[#017] sha256:aa371d0d1a0a895f829181efdd816a229f9cd50a4c656854d0a30e76e58cf8f6 - 15.66% (53 MB)

[#018] sha256:e9399d06b864629b219d04a83dd95cae7a39dabd73e7eefad2bad141f5c6b596 - 1.85% (6.25 MB)


History
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=14

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

RUN |2 OSS_ONLY= PG_VERSION=14 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; # buildkit

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.7.2

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=14

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=15

2025-01-22 11:53:05 UTC (buildkit.dockerfile.v0)

RUN |4 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 /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-01-22 11:53:05 UTC (buildkit.dockerfile.v0)

ARG PGAI_VERSION=extension-0.7.0

2025-01-22 11:53:05 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=14

2025-01-22 11:53:05 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=386

2025-01-22 11:53:05 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=14 TARGETARCH=386 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -ge 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add libarrow libparquet; apk add --no-cache --virtual .pgai-deps git build-base cargo cmake python3-dev py3-pip apache-arrow-dev; if [ "$(pip --version | awk '{print $2; exit}')" \< "23.0.1" ]; then python3 -m pip install --upgrade pip==23.0.1; fi; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cd /build/pgai; echo "pyarrow==$(pkg-config --modversion arrow)" > constraints.txt; export PIP_CONSTRAINT=$(pwd)/constraints.txt; if [ "$TARGETARCH" == "386" ]; then echo "pandas==2.1.4" >> constraints.txt; export PIP_CONSTRAINT=$(pwd)/constraints.txt; apk add --no-cache --virtual .pgai-deps-386 jpeg-dev zlib-dev; fi; PG_BIN="/usr/local/bin" PG_MAJOR=${PG_MAJOR_VERSION} ./projects/extension/build.py install; if [ "$TARGETARCH" == "386" ]; then apk del .pgai-deps-386; fi; apk del .pgai-deps; fi # buildkit

2025-01-22 11:53:05 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2025-01-22 11:53:45 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2025-01-22 11:53:46 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2025-01-22 11:53:47 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2025-01-22 11:53:47 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.17.2

2025-01-22 11:58:18 UTC (buildkit.dockerfile.v0)

RUN |8 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=14 TARGETARCH=386 TS_VERSION=2.17.2 /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

Details
Created

2025-01-22 11:57:35 UTC

Size

340 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:66a3d608f3fa52124f8463e9467f170c784abd549e8216aa45c6960b00b4b79b - 1.02% (3.46 MB)

[#001] sha256:45c4fcff392d7016897432cadb68139a23e3e4e4459989aae592625af562844b - 0.0% (985 Bytes)

[#002] sha256:05bfe7d9df76c5147f987448f1b941bc2d483e910d5bbcbefe264c02015ae6d3 - 0.31% (1.07 MB)

[#003] sha256:6220b8192ffe167514793e663dbe6a9c4c45077360701ee7c2352c278e1ed9f1 - 0.0% (174 Bytes)

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

[#005] sha256:c96fb640dd32c417dd323bc4fc1d068e058e6acd8c2823e2ebd495dcc407d2ae - 25.43% (86.4 MB)

[#006] sha256:72cd4af9e8311c508e8570d849603da49c4b75f5cbdec3e9ed770e5120c86a10 - 0.0% (8.99 KB)

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

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

[#009] sha256:f8ec9bedd86cbaa182c857ba783a642c1b6b33d80015199b0e04c67a3de35cce - 0.0% (5.3 KB)

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

[#011] sha256:13241ed6819c43a433167ef0e9a1dff8a3450e35d1d5c7d665c7fe80c0984a0c - 6.46% (22 MB)

[#012] sha256:16e408c8b5939981b469764b39828703f1a6cfbb7d819eefbc93f190e387d3f0 - 1.58% (5.38 MB)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:b8917b15d40c57f20afcf167e00b8a22186c4f8af9cd67d5d600efc33cfd8b60 - 0.0% (2.24 KB)

[#015] sha256:35280a48cbe2ee75343376166804a73f63ce514a2e431b40d2a94286fe2a7684 - 2.29% (7.79 MB)

[#016] sha256:562c6af89581942e9bba2234265fb7bda01f5c0c2f836665c88256966bffc4ba - 45.42% (154 MB)

[#017] sha256:18c5044637ba5abfb20f169060388671582137f91430f7691345d32c0092459f - 15.59% (53 MB)

[#018] sha256:f6bc889c63aac6f8679a1331948c4be3dcccba48a00142d62c8da1d4a1c7ea30 - 1.88% (6.4 MB)


History
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=14

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

RUN |2 OSS_ONLY= PG_VERSION=14 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; # buildkit

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.7.2

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=14

2025-01-22 11:51:35 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=15

2025-01-22 11:52:57 UTC (buildkit.dockerfile.v0)

RUN |4 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 /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-01-22 11:52:57 UTC (buildkit.dockerfile.v0)

ARG PGAI_VERSION=extension-0.7.0

2025-01-22 11:52:57 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=14

2025-01-22 11:52:57 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=amd64

2025-01-22 11:52:57 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=14 TARGETARCH=amd64 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -ge 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add libarrow libparquet; apk add --no-cache --virtual .pgai-deps git build-base cargo cmake python3-dev py3-pip apache-arrow-dev; if [ "$(pip --version | awk '{print $2; exit}')" \< "23.0.1" ]; then python3 -m pip install --upgrade pip==23.0.1; fi; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cd /build/pgai; echo "pyarrow==$(pkg-config --modversion arrow)" > constraints.txt; export PIP_CONSTRAINT=$(pwd)/constraints.txt; if [ "$TARGETARCH" == "386" ]; then echo "pandas==2.1.4" >> constraints.txt; export PIP_CONSTRAINT=$(pwd)/constraints.txt; apk add --no-cache --virtual .pgai-deps-386 jpeg-dev zlib-dev; fi; PG_BIN="/usr/local/bin" PG_MAJOR=${PG_MAJOR_VERSION} ./projects/extension/build.py install; if [ "$TARGETARCH" == "386" ]; then apk del .pgai-deps-386; fi; apk del .pgai-deps; fi # buildkit

2025-01-22 11:52:57 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2025-01-22 11:53:30 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2025-01-22 11:53:31 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2025-01-22 11:53:32 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2025-01-22 11:53:32 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.17.2

2025-01-22 11:57:35 UTC (buildkit.dockerfile.v0)

RUN |8 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=14 TARGETARCH=amd64 TS_VERSION=2.17.2 /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

Details
Created

2025-01-22 12:21:17 UTC

Size

333 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:27a1f2308f194d2c8cfe617a324e0078d055d65032c6c342eae11afb7a8d38c0 - 0.97% (3.22 MB)

[#001] sha256:88efc830b0008c442fbf41800df30ca9fb0c00964fddd3e80890961627c5b9b8 - 0.0% (984 Bytes)

[#002] sha256:0f0135973424a59bcd09d82651ba32d24eda2b75299b4d2e3f5deba54f7b2553 - 0.31% (1.04 MB)

[#003] sha256:4e4b0d2c7f42b79dc01dbd3833f6c268867a01749968770c19b0a257a02954cf - 0.0% (174 Bytes)

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

[#005] sha256:86ba5f2fa575d850959338d5bf02798c4385fc4fcbd75cc9f6f483a0c1b193bd - 25.67% (85.5 MB)

[#006] sha256:db36ee424085c2088b6f2655cf500cf1431f9ae5d9cfb415fb7747dc38b23ecc - 0.0% (8.99 KB)

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

[#008] sha256:9be706a54a219a8f19c9514f68b8539ba48862cce36741b7885fd5d5c46123f0 - 0.0% (167 Bytes)

[#009] sha256:8877578bc0321d9ca4c71067179e20253ad96d4900099cf03c1682b109bbca85 - 0.0% (5.29 KB)

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

[#011] sha256:2d5a8c087c017f9630684f520c335f5baec589bb30bdd28affb5ab5658ab1798 - 6.35% (21.2 MB)

[#012] sha256:a2139ed2be2f78a80048979b1de93dd98acd03f749ecf77c12f7aa591cc1eea3 - 1.48% (4.94 MB)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:e7bae2203d7fcea7c2add62468f25b701034a7755b6435c3dee6cfd4c29edf56 - 0.0% (2.24 KB)

[#015] sha256:e809bad89f37d8d249e14b0069fbdaa692c851fd5b31e4e49db93539c475156a - 2.18% (7.25 MB)

[#016] sha256:1897a7dfd5a697d9ab5e6618c2d88312ffb59c1c4850370f2e5ec0947c8ba71d - 45.25% (151 MB)

[#017] sha256:da3a3dc1fb85832769cfa7d2dc67e2a614d94b7d5b090b6905e6d076b3b70e46 - 15.9% (53 MB)

[#018] sha256:7d22769680e03d5f21cda9790604a42dc5d475bbf2daa5af7e7aed48b06aed62 - 1.89% (6.31 MB)


History
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2025-01-22 11:52:26 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY

2025-01-22 11:52:26 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2025-01-22 11:52:26 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=14

2025-01-22 11:52:26 UTC (buildkit.dockerfile.v0)

RUN |2 OSS_ONLY= PG_VERSION=14 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; # buildkit

2025-01-22 11:52:26 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.7.2

2025-01-22 11:52:26 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=14

2025-01-22 11:52:26 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=15

2025-01-22 11:59:53 UTC (buildkit.dockerfile.v0)

RUN |4 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 /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-01-22 11:59:53 UTC (buildkit.dockerfile.v0)

ARG PGAI_VERSION=extension-0.7.0

2025-01-22 11:59:53 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=14

2025-01-22 11:59:53 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=arm

2025-01-22 11:59:54 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=14 TARGETARCH=arm /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -ge 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add libarrow libparquet; apk add --no-cache --virtual .pgai-deps git build-base cargo cmake python3-dev py3-pip apache-arrow-dev; if [ "$(pip --version | awk '{print $2; exit}')" \< "23.0.1" ]; then python3 -m pip install --upgrade pip==23.0.1; fi; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cd /build/pgai; echo "pyarrow==$(pkg-config --modversion arrow)" > constraints.txt; export PIP_CONSTRAINT=$(pwd)/constraints.txt; if [ "$TARGETARCH" == "386" ]; then echo "pandas==2.1.4" >> constraints.txt; export PIP_CONSTRAINT=$(pwd)/constraints.txt; apk add --no-cache --virtual .pgai-deps-386 jpeg-dev zlib-dev; fi; PG_BIN="/usr/local/bin" PG_MAJOR=${PG_MAJOR_VERSION} ./projects/extension/build.py install; if [ "$TARGETARCH" == "386" ]; then apk del .pgai-deps-386; fi; apk del .pgai-deps; fi # buildkit

2025-01-22 11:59:54 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2025-01-22 12:06:00 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2025-01-22 12:06:00 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2025-01-22 12:06:02 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2025-01-22 12:06:02 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.17.2

2025-01-22 12:21:17 UTC (buildkit.dockerfile.v0)

RUN |8 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=14 TARGETARCH=arm TS_VERSION=2.17.2 /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

Details
Created

2025-01-22 12:21:44 UTC

Size

326 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:c8a32ed454e751770c0976636b8d0d0fccc4f778a2dd26c428067d613be1a299 - 0.9% (2.95 MB)

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

[#002] sha256:4af679bfaf56ffe9fecae43f4b7f02611bb9b4a9d9be36b50592229008b20fc0 - 0.32% (1.04 MB)

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

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

[#005] sha256:37db1153c6e07dd3d731b9ee7740c8051e41634162407bcdcc2768d6734f4aca - 24.66% (80.5 MB)

[#006] sha256:8dd46f923afe4b2c97e5387a7145e08bbf0d638255ff0759c0eb29772af03608 - 0.0% (8.99 KB)

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

[#008] sha256:0f6868c70696e0d3d01f0966a5cb46c0ba25f8991d17684a66576d5badd4423b - 0.0% (167 Bytes)

[#009] sha256:d836e3da9284dcd53ce5306ee09b206c6104cd0632761f86419b26ec4cd66357 - 0.0% (5.29 KB)

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

[#011] sha256:e0fe6700bd6899eb0caf5ac98a224b4a2443dca1a8c959b446ac00dd07643f6d - 6.3% (20.6 MB)

[#012] sha256:b226d766a0faf703244ab3d7802b91887db926a95751d60fce8cde5e7b4ca50e - 1.57% (5.12 MB)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:d1d39753c6f483a4c70b683070735dbb6eba718025455ef5fd1bef28e2c58bb2 - 0.0% (2.24 KB)

[#015] sha256:5fdee15043abc19d8878ab09eee3bd28313e185a5713481c7c8fd427f979ebc8 - 2.22% (7.23 MB)

[#016] sha256:c28b49210844f903a4dc527015cc58a44c59350c13b36632228c98fa588de869 - 45.86% (150 MB)

[#017] sha256:06e008fa05e355ed72101b1505330a75f5563f2cd4017d22ad47ee583d33b0b6 - 16.23% (53 MB)

[#018] sha256:2f4e3e616ebf8333ce92410e51a9f0b05e3b029e1e0ee4fd5ad4a8dcf68f7e2c - 1.92% (6.28 MB)


History
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2025-01-22 11:52:15 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY

2025-01-22 11:52:15 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2025-01-22 11:52:15 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=14

2025-01-22 11:52:15 UTC (buildkit.dockerfile.v0)

RUN |2 OSS_ONLY= PG_VERSION=14 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; # buildkit

2025-01-22 11:52:15 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.7.2

2025-01-22 11:52:15 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=14

2025-01-22 11:52:15 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=15

2025-01-22 12:00:01 UTC (buildkit.dockerfile.v0)

RUN |4 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 /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-01-22 12:00:01 UTC (buildkit.dockerfile.v0)

ARG PGAI_VERSION=extension-0.7.0

2025-01-22 12:00:01 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=14

2025-01-22 12:00:01 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=arm

2025-01-22 12:00:01 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=14 TARGETARCH=arm /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -ge 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add libarrow libparquet; apk add --no-cache --virtual .pgai-deps git build-base cargo cmake python3-dev py3-pip apache-arrow-dev; if [ "$(pip --version | awk '{print $2; exit}')" \< "23.0.1" ]; then python3 -m pip install --upgrade pip==23.0.1; fi; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cd /build/pgai; echo "pyarrow==$(pkg-config --modversion arrow)" > constraints.txt; export PIP_CONSTRAINT=$(pwd)/constraints.txt; if [ "$TARGETARCH" == "386" ]; then echo "pandas==2.1.4" >> constraints.txt; export PIP_CONSTRAINT=$(pwd)/constraints.txt; apk add --no-cache --virtual .pgai-deps-386 jpeg-dev zlib-dev; fi; PG_BIN="/usr/local/bin" PG_MAJOR=${PG_MAJOR_VERSION} ./projects/extension/build.py install; if [ "$TARGETARCH" == "386" ]; then apk del .pgai-deps-386; fi; apk del .pgai-deps; fi # buildkit

2025-01-22 12:00:01 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2025-01-22 12:06:02 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2025-01-22 12:06:03 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2025-01-22 12:06:04 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2025-01-22 12:06:04 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.17.2

2025-01-22 12:21:44 UTC (buildkit.dockerfile.v0)

RUN |8 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=14 TARGETARCH=arm TS_VERSION=2.17.2 /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

Details
Created

2025-01-22 12:22:20 UTC

Size

335 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

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

PGDATA

/var/lib/postgresql/data

PG_MAJOR

14

PG_SHA256

02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

PG_VERSION

14.15


Layers

[#000] sha256:0152682790bba2052e0b7dc52872083c01ea53c598fe87e3fe3eab5f9d4228cb - 1.16% (3.9 MB)

[#001] sha256:0d44399ea45a930603df43b60dc9b107535c6cf565758aadbb124b0eec4bee00 - 0.0% (984 Bytes)

[#002] sha256:3ad7be62d19dbe32494df2ba4a737e440946b4a8373c47d5a600dba48ed6adab - 0.3% (1 MB)

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

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

[#005] sha256:1b6c08c9fa5f7d473d5da107de4c133f039a4e7e846f2b8fec9022e73ffe7d48 - 25.45% (85.3 MB)

[#006] sha256:256377e5705e6ecc0da1ffdab5d3ef6daf78587286d2372e34c0c20ef4d54c35 - 0.0% (8.99 KB)

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

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

[#009] sha256:da59ec901cbcf05618c225e080d65d61d442dfab4ddc0aacfb02ecfd41e2ddbf - 0.0% (5.29 KB)

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

[#011] sha256:3a7a40667aac9e866ffff44a08809241518ea092a93764028de15e06fb03b5e4 - 6.59% (22.1 MB)

[#012] sha256:007c3a418f7eb5238702a5d4394bdec4f7cdc1c6e06d462b55a40270bc68e9e6 - 1.58% (5.3 MB)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:8941635eb555a6efe6d92eadc4d7e2c6f28322d65ebfdb963774ae3e36f38a44 - 0.0% (2.24 KB)

[#015] sha256:d0048c82b0d0bdae0ce4968248621304631ad630f467b909d51eeadc66634bf9 - 2.19% (7.33 MB)

[#016] sha256:fd9a842ca4b89b86c52e2b8326ae078b868492c79c1ca378f6d04aed1f7d59d2 - 45.05% (151 MB)

[#017] sha256:6b0eec20b8511f87d539d568f75766ffb3a3e8700909dee41ac36733f319175b - 15.8% (53 MB)

[#018] sha256:e5dc040390238e9be6153b92f96218353da2f59165d8ac3418a419b2bba2e827 - 1.88% (6.29 MB)


History
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV GOSU_VERSION=1.17

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV LANG=en_US.utf8

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_MAJOR=14

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=14.15

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=02e891e314b4e9ee24cbd78028dab7c73f9c1ba3e30835bcbef71fe220401fc5

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENV PGDATA=/var/lib/postgresql/data

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

VOLUME [/var/lib/postgresql/data]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

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

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-entrypoint.sh"]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGINT

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

EXPOSE map[5432/tcp:{}]

2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)

CMD ["postgres"]

2025-01-22 11:52:30 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY

2025-01-22 11:52:30 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2025-01-22 11:52:30 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=14

2025-01-22 11:52:30 UTC (buildkit.dockerfile.v0)

RUN |2 OSS_ONLY= PG_VERSION=14 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; # buildkit

2025-01-22 11:52:30 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.7.2

2025-01-22 11:52:30 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=14

2025-01-22 11:52:30 UTC (buildkit.dockerfile.v0)

ARG CLANG_VERSION=15

2025-01-22 12:00:31 UTC (buildkit.dockerfile.v0)

RUN |4 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 /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-01-22 12:00:31 UTC (buildkit.dockerfile.v0)

ARG PGAI_VERSION=extension-0.7.0

2025-01-22 12:00:31 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=14

2025-01-22 12:00:31 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=arm64

2025-01-22 12:00:31 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=14 TARGETARCH=arm64 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -ge 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add libarrow libparquet; apk add --no-cache --virtual .pgai-deps git build-base cargo cmake python3-dev py3-pip apache-arrow-dev; if [ "$(pip --version | awk '{print $2; exit}')" \< "23.0.1" ]; then python3 -m pip install --upgrade pip==23.0.1; fi; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cd /build/pgai; echo "pyarrow==$(pkg-config --modversion arrow)" > constraints.txt; export PIP_CONSTRAINT=$(pwd)/constraints.txt; if [ "$TARGETARCH" == "386" ]; then echo "pandas==2.1.4" >> constraints.txt; export PIP_CONSTRAINT=$(pwd)/constraints.txt; apk add --no-cache --virtual .pgai-deps-386 jpeg-dev zlib-dev; fi; PG_BIN="/usr/local/bin" PG_MAJOR=${PG_MAJOR_VERSION} ./projects/extension/build.py install; if [ "$TARGETARCH" == "386" ]; then apk del .pgai-deps-386; fi; apk del .pgai-deps; fi # buildkit

2025-01-22 12:00:31 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2025-01-22 12:05:17 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2025-01-22 12:05:18 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2025-01-22 12:05:20 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2025-01-22 12:05:20 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.17.2

2025-01-22 12:22:20 UTC (buildkit.dockerfile.v0)

RUN |8 OSS_ONLY= PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=15 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=14 TARGETARCH=arm64 TS_VERSION=2.17.2 /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

Danger Zone
Delete Tag

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

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

Delete