2025-01-23 11:27:16 UTC
788 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_SHA25623369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
PG_VERSION16.6
[#000] sha256:dbaac2331104495e5df0818a1db05c402cfc13af140c75beccf51922d5f37ad5 - 0.42% (3.3 MB)
[#001] sha256:63c50a9e0fccf79fe11f7b362f9bc6f89636bad6cb568555d342dc7f04e25235 - 0.0% (982 Bytes)
[#002] sha256:cf04a1b2e19844357fde9dec69498c4e058055eefaba5533c58691c0b54d98bc - 0.13% (1.04 MB)
[#003] sha256:78f8d044bef55a8ec0d6f62bbf268132fbca987eb9be00914c6d870f582e9764 - 0.0% (172 Bytes)
[#004] sha256:cbb39d437b2c75de6d77ac8b64d61b56a5754f1675155134e1e2dd66aa4bf97d - 0.0% (116 Bytes)
[#005] sha256:0a4c4f7dc8567fe5a8bf9aaba76d706689de2c1d6d83f2105216630c762bdb82 - 13.44% (106 MB)
[#006] sha256:8b099f737689d57cd323b289ebf3f12128acd8c563211102058e0c0393bddd9c - 0.0% (9.34 KB)
[#007] sha256:e6a47fe31eb24e517319bd1843b2c383c635864d537b487a6b68f02b3b14872a - 0.0% (129 Bytes)
[#008] sha256:f26bc220c846d331aefb6cbb30ec4113c0a9b93c5aba5c94621d8dcee752135c - 0.0% (168 Bytes)
[#009] sha256:971751c8b735fdb1eefd961988ce45256706a840f4b607b996b3ee8e4aed0093 - 0.0% (5.29 KB)
[#010] sha256:55ff6bb351dbf9afbed6c6eab4fcbab9c5aa433c1b6607733cd30f8e8daf8afa - 0.0% (185 Bytes)
[#011] sha256:0ae19e06cdd0c12a447ad65b8d012e14874336d8b0c358242f1371c005b57c9f - 2.97% (23.4 MB)
[#012] sha256:621a9a6cdae39d49b1d5c58c4022a3b73c79f7767e44527fd1ec10e3c39f65c4 - 0.66% (5.16 MB)
[#013] sha256:cf011817681b66acca85cba477a0c01bd5d68f3522f83ce712f24a9da6311ef5 - 73.42% (578 MB)
[#014] sha256:4ae8f36619996c066ccc037450d8c29be76a7cca6ea62824f8be4c64f1aff84e - 0.0% (2.24 KB)
[#015] sha256:3ace23bc0d0466f6bdd8623fd4e9adbb9164903721f08019ea888a0cc574f5f2 - 0.95% (7.49 MB)
[#016] sha256:bc87a5e42f6a941e3233a489b78a7e6c98c04452e8612d975268c7700d998410 - 4.16% (32.7 MB)
[#017] sha256:70adaa3ca9244182527347ae234377f42e3472c79dbf1064cb8ce4cc263c77fe - 3.26% (25.7 MB)
[#018] sha256:833a3295738c6389c57aa65289b684ed5b386e8a234d6cc0576595d8fb021fc5 - 0.6% (4.69 MB)
ADD alpine-minirootfs-3.21.2-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=16
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.6
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=23369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
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 zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
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-23 09:57:21 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; # buildkit
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-01-23 09:59:11 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 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-01-23 09:59:11 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=extension-0.7.0
2025-01-23 09:59:11 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-01-23 09:59:11 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=386
2025-01-23 11:26:21 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=16 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-23 11:26:21 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-01-23 11:26:21 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-01-23 11:26:22 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-01-23 11:26:22 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-01-23 11:26:22 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.18.0
2025-01-23 11:27:16 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=16 TARGETARCH=386 TS_VERSION=2.18.0 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-01-23 10:26:03 UTC
673 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_SHA25623369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
PG_VERSION16.6
[#000] sha256:1f3e46996e2966e4faa5846e56e76e3748b7315e2ded61476c24403d592134f0 - 0.52% (3.47 MB)
[#001] sha256:a4c802027a0405c4852bb82d526f289fa10c0ea51b3e68e7de1be978a5132762 - 0.0% (982 Bytes)
[#002] sha256:54c224fb2df5c704c1c5d096764fd6ff3631819a64f598020449ca413a2d5e9f - 0.16% (1.07 MB)
[#003] sha256:3a17d2b659b01cf85e653b88620d72de237b031304af1b12fd752fce5a37e3d7 - 0.0% (171 Bytes)
[#004] sha256:49ad3884a129d07b67bb208a28d4fea70356eefdf36c200cfa57ec63010ae1fc - 0.0% (116 Bytes)
[#005] sha256:4b6b7646a219f925a8594b948c159acb70660b687e94777000a5401536424c51 - 14.85% (99.9 MB)
[#006] sha256:5d98180353926f65efaa1d98af9758171a27d0a81513d1ff5250d3d55e93b576 - 0.0% (9.34 KB)
[#007] sha256:bcb6070a0663e058ab574dee9833d9321893222086a604106d9412667e63507c - 0.0% (127 Bytes)
[#008] sha256:7574d2c7e3536957b4c7f3adb03d8fdcc02c4b26d9ce067a390546f4135168bc - 0.0% (168 Bytes)
[#009] sha256:633c8f215c66555596b397fec702da90ea48172c9d3fb3f2fc95ce675220baa3 - 0.0% (5.29 KB)
[#010] sha256:03a7edb641e896d379a6848bca96c848c75eea42509c34ceaf1718029ceba62f - 0.0% (185 Bytes)
[#011] sha256:c7bab82e234c472f1cff327879075ffd27da4e621cb2254eb599b949db7956d5 - 3.36% (22.6 MB)
[#012] sha256:2cb1541b74e8f13a700d821b2648b083d796df75acc2ca42aa3873fa012376e2 - 0.79% (5.32 MB)
[#013] sha256:941e892d231ac8cec45556275016d8bf8a16fc93f1bd5e5e07bbe9913a0ce848 - 69.54% (468 MB)
[#014] sha256:a9867c5ac4e8f11f19f2b548e6e976df8fdf2b0fbe2d0de3b6ad2587ea26e53f - 0.0% (2.24 KB)
[#015] sha256:323835d322c5565d57f868696e934cf4e66d7f8821e000f079c6bfd4df9deac3 - 1.16% (7.79 MB)
[#016] sha256:0510733003d300c1b15af7765249a7214a2869053a86c7f103028f6256336727 - 5.1% (34.3 MB)
[#017] sha256:7fd1db1f0580433f8355d050155c81c938085a549d36cabe0b3ddcd0b2802788 - 3.82% (25.7 MB)
[#018] sha256:46d45dbd13a136e250bf443340d21068f87490d55308145485a19348d8fe7a36 - 0.71% (4.8 MB)
ADD alpine-minirootfs-3.21.2-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=16
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.6
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=23369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
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 zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
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-23 09:57:21 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; # buildkit
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-01-23 09:57:21 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-01-23 09:59:11 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 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-01-23 09:59:11 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=extension-0.7.0
2025-01-23 09:59:11 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-01-23 09:59:11 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=amd64
2025-01-23 10:24:18 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=16 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-23 10:24:19 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-01-23 10:24:19 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-01-23 10:24:19 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-01-23 10:24:20 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-01-23 10:24:20 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.18.0
2025-01-23 10:26:03 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=16 TARGETARCH=amd64 TS_VERSION=2.18.0 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-01-23 10:33:54 UTC
183 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_SHA25623369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
PG_VERSION16.6
[#000] sha256:d3e229a4bb72770bd404e0f6590519a8e566146523e984834c6a3d82836f0069 - 1.76% (3.21 MB)
[#001] sha256:93a22c557d31caf1b269aa223bacac912676332abc4327c4fc6d8db2708f4b85 - 0.0% (980 Bytes)
[#002] sha256:958deb370f8f34e49786548df7ccce1178adf3085f56572db7da1fa3bdcffb3c - 0.57% (1.04 MB)
[#003] sha256:f5baf854ce9dcfb4a9c9035f65fda2ede7e4341458462f603a1a2e5470a9497f - 0.0% (174 Bytes)
[#004] sha256:9e858c75599abdf33031fd4cf16af58c3e650f1e9a786e6a125088aa5ab788f8 - 0.0% (116 Bytes)
[#005] sha256:2d12cdc9f1c105b92d5482a038842030abca64e5a39c52397995f6ceae8fe932 - 44.17% (80.7 MB)
[#006] sha256:6f8a62c83a6064fa68bfd7dd3b218802c0caff3e2776d9a5f992f7057e3bfc82 - 0.0% (9.34 KB)
[#007] sha256:5bda353316917ca76f4e00d8f8a65b6649213aa29b67de25e3991a29e8e11210 - 0.0% (129 Bytes)
[#008] sha256:5ada99cf7297c3c7320698c813db66d4b5c7c5e16edfaf2f56d1d4b335c978be - 0.0% (167 Bytes)
[#009] sha256:8b9f30817f29d85ed876aa0118fad43b088535e3888f82ce29ea87354ceae5ed - 0.0% (5.29 KB)
[#010] sha256:4102648e50c332087505923beb3b75b899b4487ab5810036eb19259d018cd357 - 0.0% (185 Bytes)
[#011] sha256:145ae72cec2879368443df47f1db57c8ccdecb658038c25956b5a1cd194cb96b - 11.87% (21.7 MB)
[#012] sha256:36ffd2b451e888fac11e811a7eb3653755c0aa327b62eb0491a2d5355d875feb - 2.68% (4.89 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:91966e4cbe168dabd8a0a43f89a7162fb14952b976cbd1b00152fad9c5ff6a49 - 0.0% (2.24 KB)
[#015] sha256:f98c922957905a495219473716c3dcde5647527fe6b70794f06e9d3186d99755 - 3.97% (7.25 MB)
[#016] sha256:6803464c3b10a167592509b632220b8d7dd55a20a7a877fb4e41dd7b4b091b0d - 18.33% (33.5 MB)
[#017] sha256:465bcebebb735e740d29adc0d6848f4ae7960893b1dc5d1f2c27156ff2f196a9 - 14.06% (25.7 MB)
[#018] sha256:d5e0dc963cb6baf0ebbab1ab3112989a09782aad4501043bcb0e010f47b88efb - 2.59% (4.73 MB)
ADD alpine-minirootfs-3.21.2-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=16
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.6
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=23369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
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 zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
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-23 09:58:20 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-01-23 09:58:20 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-01-23 09:58:20 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-01-23 09:58:20 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; # buildkit
2025-01-23 09:58:20 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-01-23 09:58:20 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-01-23 09:58:20 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-01-23 10:08:09 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 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-01-23 10:08:09 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=extension-0.7.0
2025-01-23 10:08:09 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-01-23 10:08:09 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm
2025-01-23 10:08:10 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=16 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-23 10:08:10 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-01-23 10:19:32 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-01-23 10:19:33 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-01-23 10:19:34 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-01-23 10:19:34 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.18.0
2025-01-23 10:33:54 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=16 TARGETARCH=arm TS_VERSION=2.18.0 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-01-23 10:34:23 UTC
177 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_SHA25623369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
PG_VERSION16.6
[#000] sha256:824bc99f06f2c6bebc1172ff7e39d7a1cdbd077ec44632079a629f69e9db7abf - 1.66% (2.95 MB)
[#001] sha256:3043b289c08b6a73ab17209c154b239b3f05fdfd7848b7998201233815f0a218 - 0.0% (983 Bytes)
[#002] sha256:747e84eee9b0ada26b99693bf1611dc0102b66efcbba324135a8cb9a8f8ef79f - 0.58% (1.04 MB)
[#003] sha256:eca53028c2b0b7582a608f94cd26abae76e84c8c0c06b83ad517b85691f8a2b1 - 0.0% (176 Bytes)
[#004] sha256:229b6d45dd04dc876d0abb520ae532f338e3fd83ece8546f50ae095ae3d24cc1 - 0.0% (116 Bytes)
[#005] sha256:aa36ce9f08fa7ef148efbd31d5c45e9fc8fb111b556f75c193a76a1157ebef8a - 43.05% (76.4 MB)
[#006] sha256:fda7c046f26674cb9512f295725096b6c35e94091532ab0b71b4fb658d3dd0b6 - 0.01% (9.34 KB)
[#007] sha256:b74de6b1b21728748b7ac480a7a656da82f521ceb2634625a9c91929559ae940 - 0.0% (128 Bytes)
[#008] sha256:7a0079d47d8961f3c4ad1f940cfe9882bad45aff7b6e5ee44f986722e64ff41f - 0.0% (167 Bytes)
[#009] sha256:4d8bb54727c116382f90c66946cffa048e13b6c5d4eee16a4ed59371ccb28bde - 0.0% (5.29 KB)
[#010] sha256:1e447dcd647e3b42b5c322efb903744efa91be7998c907433cd1abeb17e86f32 - 0.0% (184 Bytes)
[#011] sha256:7df28d295edfdcbf6273c5e36e34edc90cbbd6a1814361eb0c73891f91bec34d - 11.88% (21.1 MB)
[#012] sha256:57bd0408da04eebc4b7ab496dccb3f59e7e9005c70b806dbba88acee8387b046 - 2.85% (5.06 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:ad9a5eb496e607a620ea28ddb7fb3208840aa1f7327c8c4e5f5e4a3b365be5a7 - 0.0% (2.24 KB)
[#015] sha256:b9b501c200820308e76f9204308e4434100ec3a86393f55ff37bdccb2d2fce42 - 4.08% (7.23 MB)
[#016] sha256:b62537a4c031c1b181a1075552b1ac4101853a44ea1d5283e935de60fa315061 - 18.76% (33.3 MB)
[#017] sha256:e62e9d9ae18f9c7a9111682ac9a0bf7b1ea7543f2b7b4df93c6f8092cffdc617 - 14.47% (25.7 MB)
[#018] sha256:d68252ac321e8c3d6de20dacd0ac233b6281af896710d67ca739e8cd9caf779e - 2.66% (4.71 MB)
ADD alpine-minirootfs-3.21.2-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=16
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.6
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=23369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
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 zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
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-23 09:58:17 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-01-23 09:58:17 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-01-23 09:58:17 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-01-23 09:58:17 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; # buildkit
2025-01-23 09:58:17 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-01-23 09:58:17 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-01-23 09:58:17 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-01-23 10:08:21 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 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-01-23 10:08:21 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=extension-0.7.0
2025-01-23 10:08:21 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-01-23 10:08:21 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm
2025-01-23 10:08:21 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=16 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-23 10:08:21 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-01-23 10:19:34 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-01-23 10:19:35 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-01-23 10:19:36 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-01-23 10:19:36 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.18.0
2025-01-23 10:34:23 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=16 TARGETARCH=arm TS_VERSION=2.18.0 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2025-01-23 12:12:32 UTC
660 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_SHA25623369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
PG_VERSION16.6
[#000] sha256:52f827f723504aa3325bb5a54247f0dc4b92bb72569525bc951532c4ef679bd4 - 0.58% (3.81 MB)
[#001] sha256:ed2ed9ea56ac3cfe6fea3e9b3c283afc940ca046116a4f9fd32bd714dda6997b - 0.0% (981 Bytes)
[#002] sha256:f11fbb84cbf5be179886944bb2dd5e4635f42dcc567dcb493d768dfbb4647e72 - 0.15% (1 MB)
[#003] sha256:8d659638d6d64110611107df8741f0c2600cd5951b1f5bf84d80a624dc50c552 - 0.0% (174 Bytes)
[#004] sha256:23e4ac430039ef77af25b8b1b0286173e8215f9fe9a3989b68ca724bc8aa447a - 0.0% (116 Bytes)
[#005] sha256:932818a6660a564b78a63f60cff538052bbb51f6bf94d60d32f445b777d3a812 - 14.5% (95.7 MB)
[#006] sha256:ac2d31894017daa78366cc777987f2a388d4187e522d91d17c4921d53a0baaf0 - 0.0% (9.34 KB)
[#007] sha256:e159b7eb1593c2769a46f90ee4e7792fc7092e5ed6de0a6187ca92c4a73fb14b - 0.0% (130 Bytes)
[#008] sha256:d17f794c80c17a3022dec13fc5d19688a54861548a0e285cf46b006cdda4e4b9 - 0.0% (170 Bytes)
[#009] sha256:73856b41f65dd4200caadc9dd8e4febf18a42a9ba1e4f8ef332d80220a569b75 - 0.0% (5.29 KB)
[#010] sha256:2cc553af7295d7d2bcd1ea13da4e5f08c4ee46afdce2cd853a7b46194df5ab31 - 0.0% (187 Bytes)
[#011] sha256:fb86f8bfc2aa66656f7b56a132e962feccc43615cd4067c943c233a04eeb3d2e - 3.39% (22.4 MB)
[#012] sha256:4c60466fcea57a4f5c5a4791868f2560581f1da43ffc205e82f7f98fdd0feebb - 0.8% (5.26 MB)
[#013] sha256:1967a637f361be2ebdb4a8f9e99956a96455d5b6ed4f1c763c096d4da5665763 - 69.74% (460 MB)
[#014] sha256:55d2d3e9444622e0e9dc54d4fa10fd355cb623a23cbf5e4d97fb1471c1e9317f - 0.0% (2.24 KB)
[#015] sha256:e7346da5c5836440758f7fe9fd28cf7ec9f314f493343ca5d3032f1ea9e60c96 - 1.11% (7.33 MB)
[#016] sha256:d7258e3948d244287715d542914e0ff4f8196b293a591a6271b2dd2c336092d2 - 5.12% (33.8 MB)
[#017] sha256:11f68162fd8ad33e8a2fb62f5b3aff3d81b861f4eedf6ec43da2762c451dc565 - 3.89% (25.7 MB)
[#018] sha256:d7db330c56b2529b245f2cb73df246cc4c6db31d3cbb1b37c1eda72686bb85ee - 0.72% (4.76 MB)
ADD alpine-minirootfs-3.21.2-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=16
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.6
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=23369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b
2024-12-06 00:14:30 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm19-dev clang19
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 zstd-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config"; export CLANG=clang-19; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
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-23 09:58:23 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2025-01-23 09:58:23 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2025-01-23 09:58:23 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-01-23 09:58:23 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; # buildkit
2025-01-23 09:58:23 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2025-01-23 09:58:23 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2025-01-23 09:58:23 UTC (buildkit.dockerfile.v0)ARG CLANG_VERSION=19
2025-01-23 10:09:03 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 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-01-23 10:09:03 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=extension-0.7.0
2025-01-23 10:09:03 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2025-01-23 10:09:03 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm64
2025-01-23 12:05:28 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=16 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-23 12:05:29 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2025-01-23 12:05:29 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2025-01-23 12:05:29 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2025-01-23 12:05:30 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2025-01-23 12:05:30 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.18.0
2025-01-23 12:12:32 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 CLANG_VERSION=19 PGAI_VERSION=extension-0.7.0 PG_MAJOR_VERSION=16 TARGETARCH=arm64 TS_VERSION=2.18.0 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.