2024-10-08 14:49:39 UTC
110 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_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:2689ac6c14fd48d5dbd1df1dd2d317f177e131f689c1a010922edcd778518efd - 3.01% (3.31 MB)
[#001] sha256:f0c5679cf6d989e038bec6712d6cc673d40037111ac9d97edff06de324cf602a - 0.0% (984 Bytes)
[#002] sha256:c969a5d259af5cb48a36f3685e7fde0c5c4f42c04e5ba500d5e7b5ff2ae438d8 - 0.95% (1.04 MB)
[#003] sha256:d6f1273db976c75ab8e302ad30e602b40805f2f4ea90c344e86ca6c3e995616f - 0.0% (116 Bytes)
[#004] sha256:6aef97e580f49bee7544fd4b4f7ffc91ab65204fbcde821a81d72731c0241dbe - 85.88% (94.3 MB)
[#005] sha256:9651708d2373420973f0d10895fae033c0db054946a75ab154b33b0bf6de248d - 0.01% (9.65 KB)
[#006] sha256:68345d1792ae76235ef85b04c1c14ca823bc75bab2b5f8e92b8e9ff0ece8ad08 - 0.0% (129 Bytes)
[#007] sha256:7df1b25a67c671bbb7c255746dcf4f14fb61c3f2ae17b0a84fa68df9a9388a31 - 0.0% (171 Bytes)
[#008] sha256:7a2b380c9be6c7f24198f807110f31fade68ee36c6bf17a6dd9f14a6009f7163 - 0.0% (5.29 KB)
[#009] sha256:714564639bd61fff6032e41201b7502d854bf9e544ae257952818bd73edf626f - 0.0% (185 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#012] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#013] sha256:59a66d3fc6b26b66a42784abaf89b91f7bfe3c026559bc3404c9aff96596dffd - 0.0% (2.24 KB)
[#014] sha256:73bd252966aa322247305bbd71b26de941288f262a7c2a377239ff1333a758d5 - 5.91% (6.49 MB)
[#015] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#016] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#017] sha256:586a50d2fcc09bb720cec311e0a3ea8d217684b9b36b9b6f9592a013be1ddd08 - 4.23% (4.65 MB)
/bin/sh -c #(nop) ADD file:00e6c22c1917031dd97c411814ae384c25a7f2bb91890494a73ea34f3c168453 in /
2024-09-06 22:41:21 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 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-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-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 /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-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 /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-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=386
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=17 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-08 14:46:41 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-08 14:47:48 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-08 14:47:48 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-08 14:47:48 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-08 14:47:48 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.0
2024-10-08 14:49:39 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=17 TARGETARCH=386 TS_VERSION=2.17.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
2024-10-08 14:49:20 UTC
105 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_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 - 3.29% (3.46 MB)
[#001] sha256:c79abea055734e579d992a6fd175b9383bf48b878213618b71d65d46903980c4 - 0.0% (984 Bytes)
[#002] sha256:4479bb44c7148bbf2aabf66f32811632ca00b95093fc65c89626dc7da42f55ec - 1.02% (1.07 MB)
[#003] sha256:470eef99dec753d40d3b9ae592e32c5d1ad0e7daaf6d9e59d176204de264ad5e - 0.0% (116 Bytes)
[#004] sha256:e0d5e490c51dead93766c1af6ec321bb091fd65db40199fec3d1bdb75919e353 - 84.77% (89.1 MB)
[#005] sha256:1f560d2170904dd831f651cf62e529417929dddaa36c5ae48852e263512d7a0d - 0.01% (9.65 KB)
[#006] sha256:00c99d4a3f4170f72864b25255b2bd63cd5d5b547c6b4d2ae56d020eada33196 - 0.0% (128 Bytes)
[#007] sha256:cdfdc0509fd5cd6e21fde83d57a2517989a910d075f5dbe0c410b1efe6c7d1cf - 0.0% (170 Bytes)
[#008] sha256:e632debb317998b9bacd4044af9841bf5a7a5cdf014f4cd868b3290a88278d10 - 0.0% (5.29 KB)
[#009] sha256:566f5c6d1a925367f306a2e35aa3718406a3e98f611286c233cb5db006a6747f - 0.0% (184 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#012] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#013] sha256:59a66d3fc6b26b66a42784abaf89b91f7bfe3c026559bc3404c9aff96596dffd - 0.0% (2.24 KB)
[#014] sha256:efcc5b4c14c6f8102456dca3a58e57379bfb23e85d4ccabc6aa63c725b2cc517 - 6.39% (6.72 MB)
[#015] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#016] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#017] sha256:1e73e78958fe17d04fa4a0793728c79a573c7270e039aceb4e6c03c61b27e3c8 - 4.51% (4.74 MB)
/bin/sh -c #(nop) ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in /
2024-09-06 22:20:07 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 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-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-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 /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-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 /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-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=amd64
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=17 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-08 14:46:41 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-08 14:47:40 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-08 14:47:40 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-08 14:47:40 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-08 14:47:40 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.0
2024-10-08 14:49:20 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=17 TARGETARCH=amd64 TS_VERSION=2.17.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
2024-10-08 15:05:05 UTC
103 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_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:97964a4b92f04f720ed681b3ec62b071ced94b08b57765c612866e77a71ec087 - 3.11% (3.21 MB)
[#001] sha256:e1926ba8f8f62878b68875756f8686ff4fbac12ecedb3040e7fcdb795834f064 - 0.0% (982 Bytes)
[#002] sha256:a8999ec1aa34d37759a1bc9a1ab2364f588fa7168269d15b795fd1f59eb268fb - 1.0% (1.04 MB)
[#003] sha256:a6402e77ba8264a82c2754d3874c4645dcdb1f2ffbb0172587cb2b67059d5e4c - 0.0% (116 Bytes)
[#004] sha256:e56e1265ca909a31287d04cc7dc51b8635acacb5794666bb2e2f38cb79528514 - 85.27% (88.1 MB)
[#005] sha256:420f1bf641d6cd954235f74db4164c6f67df063a027884ea795b1ba28f5c37fa - 0.01% (9.65 KB)
[#006] sha256:38bdb7f80765a6f43b984fcc5b4b2b5b1fcf6e8b3b1eb63a1dc5c93f7adc8421 - 0.0% (128 Bytes)
[#007] sha256:b15b8d3fa3bd338d3487314aad72c831023772bc45f2c4ab754038ed9ed45afc - 0.0% (170 Bytes)
[#008] sha256:c41301be9cd78e60b83d64261721acb985ce896cbfe32957d2621f007db168e1 - 0.01% (5.29 KB)
[#009] sha256:82974480458d7cc425956f551c5187109e50a376e805a4057c6b521cc64f139e - 0.0% (184 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#012] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#013] sha256:0534068c94ab4ab268d1037e9ce9a00f90b839e66e1ce186d905b129cacccbdf - 0.0% (2.24 KB)
[#014] sha256:4c2c26963de01cf06cc5622c725673f8a6ca7bd705ff79862077789c04655f78 - 6.05% (6.25 MB)
[#015] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#016] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#017] sha256:72b4967f9605b33f2d95c02d34a3041ba49c3f2ea399798aafc9d878f22cedf4 - 4.54% (4.69 MB)
/bin/sh -c #(nop) ADD file:faa3509308d5524875c6afec4d4d1a357118aa1587e5485eca63c2907b37d968 in /
2024-09-06 22:49:24 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 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-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-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 /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-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 /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-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm
2024-10-08 14:46:42 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=17 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-08 14:46:42 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-08 14:56:08 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-08 14:56:08 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-08 14:56:09 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-08 14:56:09 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.0
2024-10-08 15:05:05 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=17 TARGETARCH=arm TS_VERSION=2.17.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
2024-10-08 15:05:41 UTC
97.9 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_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:da2748c71804914f58a58693c998a4885dd24623380daf301f4a1a88185cb4c8 - 3.02% (2.95 MB)
[#001] sha256:e2ac8e9d0c68b096b09818bfb20f42e953c3d9cd9df375198a3b549dd5ce5f63 - 0.0% (986 Bytes)
[#002] sha256:0ea95758d71d5413b7fd57d98797bffda5c623934cbefc0067a635c1ff9f62e9 - 1.06% (1.04 MB)
[#003] sha256:bb3eb9bcbc673e2305b89fa82426cf69bbf20e06da869248597e8ca53c857068 - 0.0% (116 Bytes)
[#004] sha256:adfbcce1c816c91ca0c4b727aad62a8ae98f8b7bd71ce983bb14f67d0443b7d4 - 84.75% (83 MB)
[#005] sha256:5202ac00ba2be941d23d06dbe5ab624516f16618ffb0838c0ae9f300031556fe - 0.01% (9.65 KB)
[#006] sha256:7afdc728ff77e37f8319b6bf77f6cdcb285c66359700c8ba2e1b4e6f4a01d2f5 - 0.0% (129 Bytes)
[#007] sha256:ca6c9e972b4a5320c8adc0aed639d3984d9a5bc7bb8d46a4a9c2a605b0f4fa4e - 0.0% (170 Bytes)
[#008] sha256:7956f90c8a237eb5d8c33a0475d5b8f691064bc8c69fabfa515a91c3403e64aa - 0.01% (5.29 KB)
[#009] sha256:81c50a7d4502444707dde95fe6950020c43ce1eb5390b37abdde1faad0fbad58 - 0.0% (183 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#012] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#013] sha256:0534068c94ab4ab268d1037e9ce9a00f90b839e66e1ce186d905b129cacccbdf - 0.0% (2.24 KB)
[#014] sha256:c03a0078b07f1742a100afbf947644b02dc8fb66ffc8ea59c141ed9ca7d4b4e6 - 6.38% (6.24 MB)
[#015] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#016] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#017] sha256:2cfbc17ad082b6e371548594c9437aac199d059b48148da0c03810d467edaee4 - 4.78% (4.68 MB)
/bin/sh -c #(nop) ADD file:8096a7e97160f837a432988b8138ffab07ff212be781f530c8baa2067265d071 in /
2024-09-06 22:08:01 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 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-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-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 /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-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 /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-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm
2024-10-08 14:46:42 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=17 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-08 14:46:42 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-08 14:56:09 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-08 14:56:09 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-08 14:56:09 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-08 14:56:09 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.0
2024-10-08 15:05:41 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=17 TARGETARCH=arm TS_VERSION=2.17.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
2024-10-08 15:05:56 UTC
104 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_MAJOR17
PG_SHA2567e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
PG_VERSION17.0
[#000] sha256:cf04c63912e16506c4413937c7f4579018e4bb25c272d989789cfba77b12f951 - 3.75% (3.9 MB)
[#001] sha256:044d9972b6f92da8c283b8d9b96843ac7413110b610c688d7fec844114db2c79 - 0.0% (985 Bytes)
[#002] sha256:1c4b963fa70b688aa058af614efb64311bc2239da7d941e7b3e9f588638aca9b - 0.96% (1020 KB)
[#003] sha256:c97ff27562e7119f3e131e3443361574c7cc0b07a7720f895be44aedeab6ba71 - 0.0% (116 Bytes)
[#004] sha256:0a8fa91fd8ddc12f01896b48884200cbce218fa7c51cfc2b85012884985bdfc5 - 84.66% (87.9 MB)
[#005] sha256:fc336a10ac24dba2cb720f9b17fda744d6ea0891e07607fe1c1726abc344dba5 - 0.01% (9.65 KB)
[#006] sha256:e64e42d2e378873915b4f2bff1a06dbe7e4ab51c40ef236260228d29c9ef0e49 - 0.0% (129 Bytes)
[#007] sha256:368fad94fbf55bf9099c0782bfd534332ff612ef9a279dd993be7fcdab5db569 - 0.0% (170 Bytes)
[#008] sha256:2f5a5dbb159e6624c33a34c0f54f693e38e66c1d23ba76d83f37db4dffa55ab8 - 0.0% (5.29 KB)
[#009] sha256:440196fcba862892024e90fee80ca30353ed485a758a83318e44f15990d1e1df - 0.0% (184 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#012] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#013] sha256:0534068c94ab4ab268d1037e9ce9a00f90b839e66e1ce186d905b129cacccbdf - 0.0% (2.24 KB)
[#014] sha256:0bcdc15a64d09a03729110aeeda4977d6fc0e618834f8094daf47977ef8a243f - 6.08% (6.32 MB)
[#015] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#016] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#017] sha256:67e8b1967513c8e82d661acb170561701fbd5cd069f0c4a78d01cd5746b395c7 - 4.53% (4.7 MB)
/bin/sh -c #(nop) ADD file:ee5bb8409915b11413f44cce4c22fed658aba4fb078a448e08dd4ac9a23581f2 in /
2024-09-06 22:44:11 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=17
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=17.0
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=7e276131c0fdd6b62588dbad9b3bb24b8c3498d5009328dba59af16e819109de
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-09-26 18:19:57 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-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-09-26 18:19:57 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-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-09-26 18:19:57 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 /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-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 /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-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=17
2024-10-08 14:46:41 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm64
2024-10-08 14:46:42 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=17 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-08 14:46:42 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-08 14:55:22 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-08 14:55:22 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-08 14:55:23 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-08 14:55:23 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.0
2024-10-08 15:05:56 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=17 PGVECTOR_VERSION=v0.7.2 PG_VERSION=17 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=17 TARGETARCH=arm64 TS_VERSION=2.17.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.