2024-07-31 18:50:56 UTC
327 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_MAJOR16
PG_SHA256331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
PG_VERSION16.3
[#000] sha256:2585500d54afa42a6b579f9ed6f62b49c5fb21c2653f79194342804bde8770fe - 1.01% (3.31 MB)
[#001] sha256:54506773fbfbf5f51fd024075ec96b7c34c65afee8208af92564c49b3ca745e1 - 0.0% (981 Bytes)
[#002] sha256:d7152ccde47bdd2a8319723d8f3623a02bdba59cd3916b303865ed47d9fb0490 - 0.32% (1.04 MB)
[#003] sha256:3e382e52c03115b0454e4e0f3bb5dc1133d93abb72c01265e843ba189c098df0 - 0.0% (170 Bytes)
[#004] sha256:7988cf249b0e1dfcb76a147c9554d9318a60dcc5d3ab9bc6187fb232c09ce9dd - 0.0% (116 Bytes)
[#005] sha256:96773b172a0bd7e1971c0568944d1db32e9880582b9c89299844afed929c3d4f - 28.42% (93.1 MB)
[#006] sha256:901599347d869e173732bc739af6aa0a322674899846a8b09643305875048ff0 - 0.0% (9.33 KB)
[#007] sha256:614042e6755917c1ef0ed6f4160189d437ea31f47b336227cf12bee5dd2dde8c - 0.0% (129 Bytes)
[#008] sha256:d48ed2d40e631e929329b1ddb6d65a8fa1eb2ea04ae1e9d8f81926297ee80183 - 0.0% (168 Bytes)
[#009] sha256:ad87e97964650541249bda92083b446e08ea069dc37cc7e8b19b4566a11ff191 - 0.0% (5.29 KB)
[#010] sha256:21d9777d18ddc75a4dd13b8baae678c81c57ae351ad6bcff871916da445de65b - 0.0% (183 Bytes)
[#011] sha256:fe1647eb1a2b01879fa96d587e05a89dfc52ed517f2164557bdc6f4eaff5d1cd - 7.13% (23.4 MB)
[#012] sha256:fcd530fc49d256d7e744d00ea783b0001d198f4bd55101e845da6f7468fabfa5 - 1.45% (4.76 MB)
[#013] sha256:8adf066005d30edd7efbad80f114a8b2d5b6e8c4c9c08b9b9b9be37bc1c835b0 - 46.79% (153 MB)
[#014] sha256:18b4e63df703ca973ecffaad99630c4768fd81c8898c6b74c91c52ec8847fecc - 0.0% (2.19 KB)
[#015] sha256:191aae15aae7abe007e2e3ec3188f8936edfeae52eca2fd932c19099750a8955 - 1.98% (6.49 MB)
[#016] sha256:978c08d99f04f507bd5d57a5b61bb058266ccfa1a4d44af584224c36708fd7cf - 6.37% (20.8 MB)
[#017] sha256:47523dcebe7f80d65588a0f7dc7919498e1476b15ebbd0b097c5d87d3318c317 - 5.19% (17 MB)
[#018] sha256:6bd36dc258604d89eb2a5295fdc46f63250639209915b782771fcc2a5f2aba29 - 1.33% (4.35 MB)
/bin/sh -c #(nop) ADD file:e5b77b9337c5f89df9a65f8c439736a6d79e68274100ab1a1d7d61359a9abf5d in /
2024-06-03 20:57:56 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-06-03 20:57:56 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-06-03 20:57:56 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-06-03 20:57:56 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-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.3
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-06-03 20:57:56 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-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-06-03 20:57:56 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-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-07-31 18:17:49 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-07-31 18:17:49 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-07-31 18:17:49 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2024-07-31 18:17:49 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3 # buildkit
2024-07-31 18:17:49 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-07-31 18:19:09 UTC (buildkit.dockerfile.v0)RUN |3 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 /bin/sh -c set -ex; 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 # buildkit
2024-07-31 18:19:09 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-07-31 18:19:09 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2024-07-31 18:19:09 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=386
2024-07-31 18:50:07 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=16 TARGETARCH=386 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -gt 15 ] && [ "$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-07-31 18:50:07 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-07-31 18:50:07 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-07-31 18:50:08 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-07-31 18:50:08 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-07-31 18:50:08 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.16.0
2024-07-31 18:50:56 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=16 TARGETARCH=386 TS_VERSION=2.16.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-07-31 18:22:49 UTC
248 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_MAJOR16
PG_SHA256331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
PG_VERSION16.3
[#000] sha256:c6a83fedfae6ed8a4f5f7cbb6a7b6f1c1ec3d86fea8cb9e5ba2e5e6673fde9f6 - 1.4% (3.46 MB)
[#001] sha256:4f325da6b46565519abb5d94049854dc78a4828450f58e3d15fdde754ec729c3 - 0.0% (980 Bytes)
[#002] sha256:3b9c004462cc3c70c3949c63f609cbd3c2b9884eab94a4d2f45b7848f569a789 - 0.43% (1.07 MB)
[#003] sha256:b79435b3f24eb1652d4af1d23442c09e8e715ad834fc894665a271c9534e4eb8 - 0.0% (171 Bytes)
[#004] sha256:826bb0ac100468a29551c8f05ac0b0fc51742843d4431db1ac9c0b245a4c66b9 - 0.0% (116 Bytes)
[#005] sha256:877cab0f2b20b3216be0b74c2533ce470ac014006d858f363cd33e62660022a4 - 35.48% (87.8 MB)
[#006] sha256:8dc019278051cafb6f382283d71020be0fc0a922b3c45beb0b1f9cf529643f95 - 0.0% (9.34 KB)
[#007] sha256:8b290b70c03cd032df4485af30a408f705d3145b3a5bb413cf118eab700a815f - 0.0% (129 Bytes)
[#008] sha256:5349cd158aa93786351f0710807fb3ae8ad0376dbaf452330d3baaf7df4d0aab - 0.0% (169 Bytes)
[#009] sha256:d45300484531de003beea89e361dde4b9960e2ec5d86f81b7d9ada916b8be002 - 0.0% (5.29 KB)
[#010] sha256:b40d58adb5bb3b8252ae4750499a8ec9148e8ed424ddb80c2bc161a1a62aec13 - 0.0% (184 Bytes)
[#011] sha256:36bf94c661188b844dc7669581603f14df602610fb44775af82891eb1ef393ce - 9.1% (22.5 MB)
[#012] sha256:f1d69e33be8965b382e0b2eb3bf53551e96614de1745041638ac63b209482988 - 1.99% (4.92 MB)
[#013] sha256:e79c5d45bac8ac1da9f42c960a0d4b027236db8edf63b1370c120975ca45c4dc - 31.38% (77.7 MB)
[#014] sha256:56a1bceab208706881168d92cd6662c1b639405920ee6b0efcff55ed2bf8c4eb - 0.0% (2.19 KB)
[#015] sha256:3f79a8b38616701e97fa26778757a8880412dd72d0460a572c0c5d79cf7191d7 - 2.71% (6.71 MB)
[#016] sha256:4b7b87a2f2872fce237d0ed76ce8ec7b3adf21f2ffd850be635d14f36b3b56e5 - 8.84% (21.9 MB)
[#017] sha256:7dadd48efd5c403a11028d50ec6f0a5db6d7051c304146c8ba63f9e5175cd028 - 6.86% (17 MB)
[#018] sha256:aa29b5869595544639cbd5664722f7aba92a6edda78577323f697e024113c565 - 1.8% (4.46 MB)
/bin/sh -c #(nop) ADD file:99093095d62d0421541d882f9ceeddb2981fe701ec0aa9d2c08480712d5fed21 in /
2024-06-03 20:57:56 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-06-03 20:57:56 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-06-03 20:57:56 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-06-03 20:57:56 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-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.3
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-06-03 20:57:56 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-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-06-03 20:57:56 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-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-07-31 18:17:45 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-07-31 18:17:45 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-07-31 18:17:45 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2024-07-31 18:17:45 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3 # buildkit
2024-07-31 18:17:45 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-07-31 18:19:09 UTC (buildkit.dockerfile.v0)RUN |3 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 /bin/sh -c set -ex; 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 # buildkit
2024-07-31 18:19:09 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-07-31 18:19:09 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2024-07-31 18:19:09 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=amd64
2024-07-31 18:20:17 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=16 TARGETARCH=amd64 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -gt 15 ] && [ "$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-07-31 18:20:17 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-07-31 18:20:17 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-07-31 18:20:18 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-07-31 18:20:18 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-07-31 18:20:18 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.16.0
2024-07-31 18:22:49 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=16 TARGETARCH=amd64 TS_VERSION=2.16.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-07-31 18:44:21 UTC
166 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_MAJOR16
PG_SHA256331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
PG_VERSION16.3
[#000] sha256:ae2458422e4465e718700cd0c5970c709804ded4caa7b7f317eada5d16878e29 - 1.93% (3.21 MB)
[#001] sha256:e9b773cfc448de5399b645e9021d9feb73e5260f6a55c6f74a72e816b47345f3 - 0.0% (981 Bytes)
[#002] sha256:285b19070c31caa9d2c26bf36838d9bfed23a66bc19e14687cc69cefc8b9ec0e - 0.62% (1.04 MB)
[#003] sha256:8cb2963a2892e4a8937d2c3d799cabf53b5a4cb1c5ce1e26499c2cc226746c20 - 0.0% (175 Bytes)
[#004] sha256:bdeaa90218771d2c7a549b14ad1d87aae71cc65461651067ca6d60180581f944 - 0.0% (116 Bytes)
[#005] sha256:f3afde209ffd9717dce5f8213febb1e8b1244fa690d2948490e7fe29c88adecb - 52.22% (86.9 MB)
[#006] sha256:8def22b66ca27bbfbb44c48913a6828b42e7d0801db13f9c7d7356d748c58470 - 0.01% (9.34 KB)
[#007] sha256:62b3bc042e085fe6b365ba4afef0be1c10ee4b32407679ad9648134f8633a923 - 0.0% (129 Bytes)
[#008] sha256:2b99bce4f85b8c9a3e170ff2064bd42847c86a7ba033a8e348298358359313a0 - 0.0% (168 Bytes)
[#009] sha256:33303268a45bd69deb85768dc6eb4e0ea3119fb48fb1ceda546621086d079946 - 0.0% (5.29 KB)
[#010] sha256:72e95c8e2002d238e09e38cd2e93f37a50779a380efcc90a349d1324f2d8b196 - 0.0% (186 Bytes)
[#011] sha256:d21cdad407848057e1a1cdac6523a0857b4e4521cce12d38d4c16d909fe78a73 - 13.06% (21.7 MB)
[#012] sha256:e9eb39e70346bbdf847613753db097895aa2188d3d91b4f27f2f217135f15786 - 2.7% (4.49 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:2f2014ff6ac74506b5b122c3550d96d2568020ba2aa181e166d8832cd79602b8 - 0.0% (2.19 KB)
[#015] sha256:43135677f4e2fad3ba7f38ae36a392cf2859a5b1524008d21640a6fa4d4bc1b9 - 3.75% (6.24 MB)
[#016] sha256:e3d65b46978e101d1e41cf46c2896c5fe867292cd0c309a654251d5a1d897e50 - 12.85% (21.4 MB)
[#017] sha256:08656163c90c49fd7c3fd807bc252f041e286bfbe1bbf1d71a26b21ed4367f1a - 10.21% (17 MB)
[#018] sha256:f747fe70e022af4a317a14b962fa271814fdfe1b26411aa66fb45223ad2516da - 2.65% (4.4 MB)
/bin/sh -c #(nop) ADD file:85f927c1895bee1d0b095b2905c8d47ada8773f13e03fd4a201f718103ef7958 in /
2024-06-03 20:57:56 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-06-03 20:57:56 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-06-03 20:57:56 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-06-03 20:57:56 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-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.3
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-06-03 20:57:56 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-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-06-03 20:57:56 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-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-07-31 18:18:25 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-07-31 18:18:25 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-07-31 18:18:25 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2024-07-31 18:18:25 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3 # buildkit
2024-07-31 18:18:25 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-07-31 18:25:58 UTC (buildkit.dockerfile.v0)RUN |3 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 /bin/sh -c set -ex; 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 # buildkit
2024-07-31 18:25:58 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-07-31 18:25:58 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2024-07-31 18:25:58 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm
2024-07-31 18:25:58 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=16 TARGETARCH=arm /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -gt 15 ] && [ "$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-07-31 18:25:58 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-07-31 18:33:31 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-07-31 18:33:31 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-07-31 18:33:32 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-07-31 18:33:32 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.16.0
2024-07-31 18:44:21 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=16 TARGETARCH=arm TS_VERSION=2.16.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-07-31 18:44:36 UTC
160 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_MAJOR16
PG_SHA256331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
PG_VERSION16.3
[#000] sha256:9c6652a37da7fb600faac56897745bdde89a4f9bd260a082b6bf4a0d173b5906 - 1.84% (2.95 MB)
[#001] sha256:2490af644d68c34906e0c9e80c2e13f2de007edb89b5cb5a48d745b862813731 - 0.0% (981 Bytes)
[#002] sha256:5e95c854f037189d46203de85a8267a4b5195f503635dd6f6bb17821f554e94b - 0.65% (1.04 MB)
[#003] sha256:45cc9497a5a3a57e7e22e03d57e578257b2154fcef7e619e8fc4f53dd99c4091 - 0.0% (175 Bytes)
[#004] sha256:7f74dbf7a2139887bc137c0aa3958db7419a82683fa84c0c3b96c34b167dead6 - 0.0% (116 Bytes)
[#005] sha256:77de4573f278a93b0becdfc5855850bea14940d1021d21e305c777f35f19f3f2 - 51.0% (81.8 MB)
[#006] sha256:b194ecff09464bb8ffc1af7cd100cf0297ce8370092a445ee7c5f7820c02ae68 - 0.01% (9.33 KB)
[#007] sha256:be02c9b3bbc87ba7eedfcb1a1a2b6c7e415732d5414e26b2f7767ec5dfa2f434 - 0.0% (127 Bytes)
[#008] sha256:0ee78a58b6e9e5e0682b4d461e18932db1e0e0110cc3fa45edd8e257b25aaaaa - 0.0% (170 Bytes)
[#009] sha256:18e24b9777514e0320d0e22327d89b0342bee6944a3ab261b14a0da38187a2c1 - 0.0% (5.29 KB)
[#010] sha256:015a7e55488e772e70299f351d660ff0e65ce2eff07ac5764eb48ac0d9cb9f10 - 0.0% (184 Bytes)
[#011] sha256:020449bfc53d6d1f71c818e1282db342410cfff2d3cee298ed0ce84ec39d543b - 13.14% (21.1 MB)
[#012] sha256:a31a60d226fa195f4aab3dbce66251cfb778b1e5dea260fe4ab8f460712d0727 - 2.91% (4.67 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:76531fd2da0cd581db985369324c9b8bcd2c5cfa313b6a8ac31137033a1a0154 - 0.0% (2.19 KB)
[#015] sha256:3ea45fb766338cbb94354dfed22ed5d3275a208d5da57ff2ee29f482f7107409 - 3.89% (6.24 MB)
[#016] sha256:ceb592a10b3eb506fa4144d920535720e8d93eabe2549c77ec335c9251b1c06d - 13.24% (21.2 MB)
[#017] sha256:9a75ca5ddb40006e456a1fce6b2e3a3d4cba7057e552dcb99dfb7933ef45585e - 10.59% (17 MB)
[#018] sha256:5fce1aa1ad2734a867bc791f0386b18dac15a87bc070395a519ffadec6229f02 - 2.73% (4.38 MB)
/bin/sh -c #(nop) ADD file:816da1ff7b962e1f52c650dfd66caeb2b88f3ab9fadc249c30f86ebe5372538c in /
2024-06-03 20:57:56 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-06-03 20:57:56 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-06-03 20:57:56 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-06-03 20:57:56 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-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.3
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-06-03 20:57:56 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-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-06-03 20:57:56 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-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-07-31 18:18:33 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-07-31 18:18:33 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-07-31 18:18:33 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2024-07-31 18:18:33 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3 # buildkit
2024-07-31 18:18:33 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-07-31 18:26:12 UTC (buildkit.dockerfile.v0)RUN |3 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 /bin/sh -c set -ex; 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 # buildkit
2024-07-31 18:26:12 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-07-31 18:26:12 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2024-07-31 18:26:12 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm
2024-07-31 18:26:12 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=16 TARGETARCH=arm /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -gt 15 ] && [ "$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-07-31 18:26:12 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-07-31 18:33:30 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-07-31 18:33:30 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-07-31 18:33:30 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-07-31 18:33:30 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.16.0
2024-07-31 18:44:36 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=16 TARGETARCH=arm TS_VERSION=2.16.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-07-31 18:44:56 UTC
247 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_MAJOR16
PG_SHA256331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
PG_VERSION16.3
[#000] sha256:690e87867337b8441990047e169b892933e9006bdbcbed52ab7a356945477a4d - 1.58% (3.9 MB)
[#001] sha256:b27fb9865e4405c08712daac8b15112b58371c98aca70a1d04c881d9f6e87c23 - 0.0% (981 Bytes)
[#002] sha256:17c039ed13e5edff36f72afe54a34f3989ac3fc60459e2652266165351ec1637 - 0.4% (1020 KB)
[#003] sha256:3cffd2df61482f46795d2e01617b50eca723eeef6292f9b065d4e9d35e8d14f7 - 0.0% (175 Bytes)
[#004] sha256:a80738f4d19d54af2826e200709a79b256920178a94e80bd70af2e516ed691ee - 0.0% (116 Bytes)
[#005] sha256:4e750b6363364b0ea767224b594deaa7dc6fd6e9c142619e523b557f86068f95 - 35.06% (86.7 MB)
[#006] sha256:538d306a146472e71a6fc739add07e343f4419ea4b7a44a6e7f1969ff0e42025 - 0.0% (9.34 KB)
[#007] sha256:b1beddae2772cd431193dc4e7bfe2bc1a93fca7399171deea6df95cae18fa4c6 - 0.0% (129 Bytes)
[#008] sha256:a579755e21ba461d25576b672f2d8d19403dedb55d56a02827029c105b89aaed - 0.0% (170 Bytes)
[#009] sha256:4ec2ac09a5ade2bb28a061083b260e4a199b79eeb8a1e7a053504a5bac44ec57 - 0.0% (5.29 KB)
[#010] sha256:49d54fb5d4611bb56429a4b54e718f59a240171aaf8ca0989af8e975a11f81c0 - 0.0% (184 Bytes)
[#011] sha256:3080e30ec424bd81db0e0928cb1eda0eeba908ddcc1ac22cdb7ac1b10aa79fb9 - 9.17% (22.7 MB)
[#012] sha256:bafbeb08de07797096e29ca28e046b8702ae957a55152885c77d9cabc58adc42 - 1.96% (4.84 MB)
[#013] sha256:6c05e28704f0d47479a23f276cea46133c2e73c3ac85e61e2b0f06c6c5a80ab4 - 31.91% (78.9 MB)
[#014] sha256:bcfaf2a93c65222eae9d52ea81ad57245b4dcbdfe793a0d8d390182de5f96fd3 - 0.0% (2.19 KB)
[#015] sha256:fdeeb00e78163544ff0598f313e1d9467d60ecd5150830b29754676bf3b8b493 - 2.55% (6.3 MB)
[#016] sha256:3c900aedc46b15a7f1a13f084dcd6dfd3b4669227566d43c398c8afe4d55d2de - 8.71% (21.6 MB)
[#017] sha256:d4fe7238a5c97e9183b84fc28f9dcd5a16e1ee1d51814f05e8cd28c06ede14ea - 6.87% (17 MB)
[#018] sha256:00c6b74113804b90eb4cd78ad1db1d8d1ff64d4a592a160a71205ce036dc215e - 1.79% (4.42 MB)
/bin/sh -c #(nop) ADD file:a71f7e9bc66668361f88637c724c44deeb2774ec268ff0a68bd99014c8a02a84 in /
2024-06-03 20:57:56 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-06-03 20:57:56 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; mkdir -p /var/lib/postgresql; chown -R postgres:postgres /var/lib/postgresql # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-06-03 20:57:56 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-06-03 20:57:56 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-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=16
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=16.3
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-06-03 20:57:56 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-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-06-03 20:57:56 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-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 3777 /var/run/postgresql # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 1777 "$PGDATA" # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-07-31 18:18:35 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-07-31 18:18:35 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-07-31 18:18:35 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=16
2024-07-31 18:18:35 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3 # buildkit
2024-07-31 18:18:35 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-07-31 18:26:39 UTC (buildkit.dockerfile.v0)RUN |3 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 /bin/sh -c set -ex; 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 # buildkit
2024-07-31 18:26:39 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-07-31 18:26:39 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=16
2024-07-31 18:26:39 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm64
2024-07-31 18:33:08 UTC (buildkit.dockerfile.v0)RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=16 TARGETARCH=arm64 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -gt 15 ] && [ "$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-07-31 18:33:08 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-07-31 18:33:08 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-07-31 18:33:08 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-07-31 18:33:09 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-07-31 18:33:09 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.16.0
2024-07-31 18:44:56 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=16 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=16 TARGETARCH=arm64 TS_VERSION=2.16.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.