2024-10-21 18:08:18 UTC
239 MB
llvm15-dev clang15
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_MAJOR15
PG_SHA2564403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a
PG_VERSION15.8
[#000] sha256:2689ac6c14fd48d5dbd1df1dd2d317f177e131f689c1a010922edcd778518efd - 1.38% (3.31 MB)
[#001] sha256:5347f94af1180d28b95ced238d95ada5f341a47988f6b2978578e14a6fed53b1 - 0.0% (983 Bytes)
[#002] sha256:0fb28d81fec4eaeec0bbece40cc27e067ce8348f7572073159e2d320818d3ef9 - 0.44% (1.04 MB)
[#003] sha256:66c526ec867ac2829aa79219a6643cab9b3cf9d7476c799d1a1ce7476ead7569 - 0.0% (175 Bytes)
[#004] sha256:cff953869449944092943e4d875e4870cfdcd03c3d8bda9078298bc21a91aad6 - 0.0% (116 Bytes)
[#005] sha256:7c9ccb6c81c055fdfabc71512f44b270f7ece504f2d48fac1574b0781f2afd9f - 38.61% (92.3 MB)
[#006] sha256:2cf3ce6d236392c875ec93c6dc70c7313df8750889f0458e49ae0cb86c3debdc - 0.0% (9.22 KB)
[#007] sha256:43f6deb1d68b2d2160317ba0ef1390d1a1190797eb06a22f7aed48f25ff9d95c - 0.0% (128 Bytes)
[#008] sha256:85f46e67a3a9f9175ce837c9cb8a213e4d656b665e9b375009d8acabd317c117 - 0.0% (168 Bytes)
[#009] sha256:b87ff9d16ba65b29aabe084e93fd48d80e566527da02455c38a0c6b8cd5badaf - 0.0% (5.29 KB)
[#010] sha256:b9d24afcb274148b6657867f6521c92550c9ec628e4e42931c8b4707956ba3fa - 0.0% (181 Bytes)
[#011] sha256:e1c9840a30e6434005d55620d4750fb60a49dbecc61227729c6b461b66c8fd30 - 9.65% (23.1 MB)
[#012] sha256:4223bdd2b06714b0765401262026e9440ed720125287dc1e63ed857b82835c4d - 2.98% (7.13 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:82eba2f9c0ea01de758fee88be09a80ed93f253d16287cfe6420833bd1a876ff - 0.0% (2.24 KB)
[#015] sha256:5f1b224f25c154430323f65ffa8c43554f6f572675923a85b35be995397e6a5c - 2.72% (6.49 MB)
[#016] sha256:a970970dbb1f93baf9f09d4804590d706017e68120d5a7b489f8ffb1af729388 - 24.42% (58.4 MB)
[#017] sha256:612380b6dfe7561fe76cda166b5386f689578be23651b62039b9d39db517b458 - 17.95% (42.9 MB)
[#018] sha256:7a7e567b4f059e351138b31ec706d5c09a3652711d12740ac2110c47458d3d13 - 1.83% (4.37 MB)
/bin/sh -c #(nop) ADD file:00e6c22c1917031dd97c411814ae384c25a7f2bb91890494a73ea34f3c168453 in /
2024-08-08 17:06:32 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 17:06:32 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-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.8
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 17:06:32 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/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 --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-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=15
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=15
2024-10-21 18:04:59 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang15 llvm15-dev llvm15; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2024-10-21 18:04:59 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-21 18:04:59 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=15
2024-10-21 18:04:59 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=386
2024-10-21 18:04:59 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=386 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add --no-cache --virtual .pgai-deps git build-base cargo python3-dev py3-pip; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; apk del .pgai-deps; fi # buildkit
2024-10-21 18:04:59 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-21 18:05:31 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-21 18:05:31 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-21 18:05:32 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-21 18:05:32 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.1
2024-10-21 18:08:18 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=386 TS_VERSION=2.17.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-10-21 18:07:48 UTC
237 MB
llvm15-dev clang15
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_MAJOR15
PG_SHA2564403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a
PG_VERSION15.8
[#000] sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 - 1.46% (3.46 MB)
[#001] sha256:93ab95764ea3d9d228d0364126c59ebeeac1c92e53c401f348ad7adcd93930b8 - 0.0% (985 Bytes)
[#002] sha256:935316949c7f22d5d753b77ecd374e5bb24e1326b81b77a17f2940f2bdf7dc2d - 0.45% (1.07 MB)
[#003] sha256:675d717e7e293a9b3dd796197b7078bf2cfe81347b9e323261b7207025f78614 - 0.0% (173 Bytes)
[#004] sha256:cff953869449944092943e4d875e4870cfdcd03c3d8bda9078298bc21a91aad6 - 0.0% (116 Bytes)
[#005] sha256:cf370ec807c597038418e14bd3c6e9621378c39e79a84b98736fbdf412813e13 - 36.77% (87 MB)
[#006] sha256:a054d768ddb624815273c830a98dc86df6e76859a44a5da7c1da80cd91e7e5fd - 0.0% (9.23 KB)
[#007] sha256:577ac298767b85c0719008f921550f80203d182ceed621de4090f77ca63c3c4f - 0.0% (128 Bytes)
[#008] sha256:e70ea69731cca5660a07370f8696e738ecbd045f60fb8a42f84dbeb8d78ff2a1 - 0.0% (169 Bytes)
[#009] sha256:cfb1487c3b1daefe109648fa80ec3fe504109c0587501d3bc65d84f0130ecd1e - 0.0% (5.29 KB)
[#010] sha256:22f588a0e40be05a8ad9471ee951f98dc2ad176956a066ab3e606466662c81b8 - 0.0% (183 Bytes)
[#011] sha256:51806cc1e2d656b38c088ab8e363382057d8052e4540e42740fa6a5cf509f573 - 9.41% (22.3 MB)
[#012] sha256:21af0dbf56b9332a7ec231e5df6bd725ae7650105adbd8668a3a81776a3d42b9 - 3.15% (7.45 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:1248dba58467d057c8b4141273b4752714143d4333a3a39cb5e1f715ec93d766 - 0.0% (2.24 KB)
[#015] sha256:07c54213ba7bf44e9c25e4010a704bb0e7794eb72730c430e8a4c4aff26777ec - 2.84% (6.72 MB)
[#016] sha256:9068914faa4ea475c71c912f28ac73533413799416ca8805d8dbcb0a66a18375 - 25.91% (61.3 MB)
[#017] sha256:1b2e6253b7d5f437c93029f6a81c16bd2454173ce91b05f46cdce10910d58501 - 18.12% (42.9 MB)
[#018] sha256:949771c61a6624d137d61debeb12abb2f8b8b7aeada6c809ab255d5c637b3537 - 1.89% (4.47 MB)
/bin/sh -c #(nop) ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in /
2024-08-08 17:06:32 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 17:06:32 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-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.8
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 17:06:32 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/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 --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-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=15
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-21 18:03:39 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=15
2024-10-21 18:04:56 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang15 llvm15-dev llvm15; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2024-10-21 18:04:56 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-21 18:04:56 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=15
2024-10-21 18:04:56 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=amd64
2024-10-21 18:04:56 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=amd64 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add --no-cache --virtual .pgai-deps git build-base cargo python3-dev py3-pip; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; apk del .pgai-deps; fi # buildkit
2024-10-21 18:04:56 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-21 18:05:12 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-21 18:05:13 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-21 18:05:14 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-21 18:05:14 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.1
2024-10-21 18:07:48 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=amd64 TS_VERSION=2.17.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-10-21 18:25:13 UTC
232 MB
llvm15-dev clang15
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_MAJOR15
PG_SHA2564403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a
PG_VERSION15.8
[#000] sha256:97964a4b92f04f720ed681b3ec62b071ced94b08b57765c612866e77a71ec087 - 1.38% (3.21 MB)
[#001] sha256:e1926ba8f8f62878b68875756f8686ff4fbac12ecedb3040e7fcdb795834f064 - 0.0% (982 Bytes)
[#002] sha256:a8999ec1aa34d37759a1bc9a1ab2364f588fa7168269d15b795fd1f59eb268fb - 0.45% (1.04 MB)
[#003] sha256:751d0a1b6a5f8acc091860ce9cefa33d4a4763f0a4d758cb02b7cdfb0ca5d2a0 - 0.0% (177 Bytes)
[#004] sha256:970105bc24623b15b6694f85b81c01da170360a8ade161ecb48f80e2aed986ac - 0.0% (116 Bytes)
[#005] sha256:0e1eb4b15d2e1740a49a5b7a4ebef3563ec1627d10a4696f7bafd491e906b59b - 37.1% (86.1 MB)
[#006] sha256:ec7ffa97ec4b5cc6746ea375c9606a7591a3daf12e8305aba1df4cab658dbff3 - 0.0% (9.23 KB)
[#007] sha256:7b465ca08422a429cc5feae4bd634453ac100c54c3455e5cb9ac33de782db57e - 0.0% (128 Bytes)
[#008] sha256:dc81190dddc0c334d10350bc1a55e99866bf923174227127829cbe473c0255dc - 0.0% (169 Bytes)
[#009] sha256:3420036a6985b612db98825fa01b6d887fcfa54cb7705a3586836c3e27c6279f - 0.0% (5.3 KB)
[#010] sha256:02e8e881ab3fc49fb282fd0e1043d417501a097d9fc584ba914bc5ed0e540171 - 0.0% (185 Bytes)
[#011] sha256:b4d7077cc53d8d22bbc94ec935da9fd72194c1f3bee0ffcd39c5d41cf9035e68 - 9.24% (21.5 MB)
[#012] sha256:f9311e1674ffc235ca8d333d089470c37f7feb2502dce8640cbd2878bdc972c5 - 2.89% (6.7 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:ae9a2f3a023c588bd8ff5d12551de28c1593b077fb1fd5d24c147d6c1acbeb8c - 0.0% (2.24 KB)
[#015] sha256:e2d34c48ec12a56dee5ee015251a87cb16df2906556925ef61b4c069f61eaaa4 - 2.69% (6.25 MB)
[#016] sha256:517b757181f0905af3edd0130400934ac47ebac655bcc06a62f276066f74c2c5 - 25.85% (60 MB)
[#017] sha256:3e5e8ae351c1b115bb25cd6f8027ece6ad3460063bc22e8def826434474b5c20 - 18.48% (42.9 MB)
[#018] sha256:0b5cb137646d2d7a877da8fbf6dcda98d8e041e3472b15162c290f5fa03c690f - 1.9% (4.42 MB)
/bin/sh -c #(nop) ADD file:faa3509308d5524875c6afec4d4d1a357118aa1587e5485eca63c2907b37d968 in /
2024-08-08 17:06:32 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 17:06:32 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-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.8
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 17:06:32 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/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 --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-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-21 18:04:19 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-21 18:04:19 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-21 18:04:19 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=15
2024-10-21 18:04:19 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2024-10-21 18:04:19 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-21 18:04:19 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=15
2024-10-21 18:11:14 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang15 llvm15-dev llvm15; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2024-10-21 18:11:14 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-21 18:11:14 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=15
2024-10-21 18:11:14 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm
2024-10-21 18:11:14 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=arm /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add --no-cache --virtual .pgai-deps git build-base cargo python3-dev py3-pip; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; apk del .pgai-deps; fi # buildkit
2024-10-21 18:11:14 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-21 18:16:10 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-21 18:16:10 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-21 18:16:12 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-21 18:16:12 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.1
2024-10-21 18:25:13 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=arm TS_VERSION=2.17.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-10-21 18:25:21 UTC
226 MB
llvm15-dev clang15
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_MAJOR15
PG_SHA2564403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a
PG_VERSION15.8
[#000] sha256:da2748c71804914f58a58693c998a4885dd24623380daf301f4a1a88185cb4c8 - 1.31% (2.95 MB)
[#001] sha256:e2ac8e9d0c68b096b09818bfb20f42e953c3d9cd9df375198a3b549dd5ce5f63 - 0.0% (986 Bytes)
[#002] sha256:0ea95758d71d5413b7fd57d98797bffda5c623934cbefc0067a635c1ff9f62e9 - 0.46% (1.04 MB)
[#003] sha256:5f93540d99e99914202c8ed07dbb4762ba225d2c6061670c2fafc29c7af5b206 - 0.0% (176 Bytes)
[#004] sha256:8913630691ba9994e15bc5ad692e83b0d35705f5db68d326926e420ae066c0e7 - 0.0% (116 Bytes)
[#005] sha256:ce55d211597f90dd12b2bb27e21c4b167a62beababef2e3061a8dc8c0f231f8f - 35.9% (81.1 MB)
[#006] sha256:4841f9177e273af6cb4b754d63ffcb2d59528e7c0e3b06e54d4e6217839610a2 - 0.0% (9.23 KB)
[#007] sha256:1adfa63ed403b3a697225aa0fab695baab70d08ddd9cfa29fa52e50f0fec39e6 - 0.0% (128 Bytes)
[#008] sha256:e6c5910937cac85cdd0b8c907a478ed0ac2828f614fafa83599200da17959f44 - 0.0% (168 Bytes)
[#009] sha256:0ffe0f19587772868b81717cc6b16e24e2570518fbdfec34730942b6c20631a9 - 0.0% (5.29 KB)
[#010] sha256:dcba1b3f981e40ef25e80175c711ae376a0db1d50d8244e29eb3ff091289d192 - 0.0% (184 Bytes)
[#011] sha256:d6d510438dbdeefd75eb1dfe0955ae24b0c46a17c303edf895a1ebf2ae8af6c5 - 9.22% (20.8 MB)
[#012] sha256:a789b80ac795a7617560acd16b1b62c868361e9fe2bad80fc5c7b797ec7964c9 - 2.98% (6.73 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:7f5f863548c46d68f5244145459b233b22d00fb72e4c679c1598d1643a09b995 - 0.0% (2.24 KB)
[#015] sha256:d5a8c32bdc96bc1d39c8d925aa537ce4bb642080274523c09838351e1a84511e - 2.76% (6.24 MB)
[#016] sha256:fdaf961068aade722503b28dc6a89fbbca7f5293ff7114d1d2a935d1c0219206 - 26.42% (59.7 MB)
[#017] sha256:e34b4c670c61ff86d2fe31284d1a7cdf13e6184e82e42f0cd9c1c92b40116a1f - 19.0% (42.9 MB)
[#018] sha256:4cbc22bced062fec0ab21ee0e6ef1b080df475604efdc27746a16530d6c98e2f - 1.95% (4.4 MB)
/bin/sh -c #(nop) ADD file:8096a7e97160f837a432988b8138ffab07ff212be781f530c8baa2067265d071 in /
2024-08-08 17:06:32 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 17:06:32 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-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.8
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 17:06:32 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/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 --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-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-21 18:04:23 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-21 18:04:23 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-21 18:04:23 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=15
2024-10-21 18:04:23 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2024-10-21 18:04:23 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-21 18:04:23 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=15
2024-10-21 18:11:26 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang15 llvm15-dev llvm15; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2024-10-21 18:11:26 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-21 18:11:26 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=15
2024-10-21 18:11:26 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm
2024-10-21 18:11:26 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=arm /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add --no-cache --virtual .pgai-deps git build-base cargo python3-dev py3-pip; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; apk del .pgai-deps; fi # buildkit
2024-10-21 18:11:26 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-21 18:16:12 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-21 18:16:12 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-21 18:16:14 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-21 18:16:14 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.1
2024-10-21 18:25:21 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=arm TS_VERSION=2.17.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-10-21 18:25:56 UTC
235 MB
llvm15-dev clang15
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_MAJOR15
PG_SHA2564403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a
PG_VERSION15.8
[#000] sha256:cf04c63912e16506c4413937c7f4579018e4bb25c272d989789cfba77b12f951 - 1.66% (3.9 MB)
[#001] sha256:4ce02d10b61bf34aa182aa7cd3783def4d5bbd8176c97011032c1508b214ff88 - 0.0% (987 Bytes)
[#002] sha256:afc2a136d16381dd1cb44173056502b63f1221519780ccd6a68b144efc25d984 - 0.42% (1020 KB)
[#003] sha256:3d8ca8946873e79c55e98d72c8e8199b4e5fa08d6d8c68ef8a6901d7c0300fd2 - 0.0% (174 Bytes)
[#004] sha256:02e732be064c163369f8060a02cdb4896b04c1cdb30b10c1a5bb161a03df18d9 - 0.0% (116 Bytes)
[#005] sha256:79c930377fd7a2f41d6636d60bd17b096686113e6f665807c8511e77d5de6e6e - 36.55% (85.9 MB)
[#006] sha256:e34eb2e93aa286ec713607dd3d735869b4affa3aa5be3260fed0ea2cf001dc41 - 0.0% (9.23 KB)
[#007] sha256:14965af90e8e434fb0738c04ba7f6856415ac0c52dd6366b82821ab610098982 - 0.0% (128 Bytes)
[#008] sha256:188aec8a964d8ef27474bc71bc7ff5bf502fdc3315e8c6448fbbe9efd3b3cecd - 0.0% (168 Bytes)
[#009] sha256:d0eb370a0f818e835df6606aabfe11e6c18e3ece61499b165ad042ddac543ac4 - 0.0% (5.29 KB)
[#010] sha256:647fdd00ceebe554fa7b2499edaf57300bbb0e57576d5869281adfe5cefc7f49 - 0.0% (184 Bytes)
[#011] sha256:6c17916b419655b16ed816e3cc5e43af979bc009600bab68be82c2ba6965f4bc - 9.54% (22.4 MB)
[#012] sha256:9b52d77a91645301453447eaf636b9cb559e4c30643fa84264dd469230a1b5f2 - 3.3% (7.76 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:c32f875793228f5da78710dc7468e6c1ef2decc5ef26284c74daf947b6e90b7a - 0.0% (2.24 KB)
[#015] sha256:763a5f126ec0ab5f0874366be4609e18fce96f386f39de9e9530438b7d8050bf - 2.69% (6.32 MB)
[#016] sha256:3af14fc78ac4d4aaa60053574eebb9550d6f464dd37869509b60fe478e88ee16 - 25.69% (60.4 MB)
[#017] sha256:3322a7f0569f40617003fbda6697670b755ffe6592ee1ddfa8e6bccf7e511a5f - 18.25% (42.9 MB)
[#018] sha256:14006d25fd07812530d293b00c32e4cf6008a1b79bef806a365374d43a615a3f - 1.89% (4.43 MB)
/bin/sh -c #(nop) ADD file:ee5bb8409915b11413f44cce4c22fed658aba4fb078a448e08dd4ac9a23581f2 in /
2024-08-08 17:06:32 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 17:06:32 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-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=15
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=15.8
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=4403515f9a69eeb3efebc98f30b8c696122bfdf895e92b3b23f5b8e769edcb6a
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 17:06:32 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/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 --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-08-08 17:06:32 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-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 17:06:32 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=15
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=15
2024-10-21 18:11:48 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang15 llvm15-dev llvm15; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2024-10-21 18:11:48 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-21 18:11:48 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=15
2024-10-21 18:11:48 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm64
2024-10-21 18:11:48 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=arm64 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add --no-cache --virtual .pgai-deps git build-base cargo python3-dev py3-pip; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; apk del .pgai-deps; fi # buildkit
2024-10-21 18:11:48 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-21 18:15:44 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-21 18:15:44 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-21 18:15:45 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-21 18:15:45 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.1
2024-10-21 18:25:56 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PG_VERSION=15 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=arm64 TS_VERSION=2.17.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.