2024-10-21 18:08:11 UTC
260 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_MAJOR14
PG_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:2689ac6c14fd48d5dbd1df1dd2d317f177e131f689c1a010922edcd778518efd - 1.27% (3.31 MB)
[#001] sha256:b52130e062c845dde720505b13149d2583162862a3cfdda6f69a6a163721121f - 0.0% (983 Bytes)
[#002] sha256:ab4107f9b331efd70975b21abe1567fa003c8f973ee08d8507e28eed675bccb6 - 0.4% (1.04 MB)
[#003] sha256:9f0826bafe2db91be60b68fa410e02f5fb2f0ab34132663b7a2afdaa9c68bc12 - 0.0% (171 Bytes)
[#004] sha256:0b8490877b446edb733b63cd2e894977c3e8d6665f764aaf7167fff10cbdb310 - 0.0% (116 Bytes)
[#005] sha256:af25899348fb0cc5e25907aa1bfb175221c8603597cfe7a9f9cff94f59f3e23f - 35.18% (91.6 MB)
[#006] sha256:b97d393f37acb46b85846c918a03fb8f0592b18cdf85d1f0e0fe94282bcae5fc - 0.0% (8.99 KB)
[#007] sha256:7de27191a60a8c63e6ffae92089f39331d5564ad7883f375b8dae28ee21d8335 - 0.0% (128 Bytes)
[#008] sha256:6b8559f6a0cee43813d50d6a5dee95fc605913c5f171c961dd3e2436304f4ff4 - 0.0% (170 Bytes)
[#009] sha256:685b1489baf4c1be835a086c9b9f00ede0e4e3fdcf0bb5841142426bf0cf80ad - 0.0% (5.29 KB)
[#010] sha256:4ee028f8c18d6d263fa0310ce2973d94c81bbf48724c35a0ccb894f6402f97a7 - 0.0% (184 Bytes)
[#011] sha256:64b6d3508a370a748e306bc828e35cd201317b832b4c9f6d4963ce4b269665ef - 8.79% (22.9 MB)
[#012] sha256:1e8baf8e76c4ab688bd0d76995fcd6bf0ede45d4c9a7e82334cf395428d23986 - 2.74% (7.13 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:6845479df195cd3205c29f8e3e8418ce17f5ffe00189de2de723fbea90c86faf - 0.0% (2.24 KB)
[#015] sha256:a6ed19269d3baee011e1046e95f4b98e6db1b5a80ec22f360476464e8366f67a - 2.49% (6.49 MB)
[#016] sha256:adb207679d33518337f0a4d910150f34d6d87032cc8a1694250ec6bbac7f1fc8 - 27.82% (72.5 MB)
[#017] sha256:72884785a47a1a7a55133580bb386e762ce123dbe3c1e1ed9fd265ce5f2aa7c4 - 19.65% (51.2 MB)
[#018] sha256:221427235f3e79f576e9b7586ceec4b2cb7cf9e0a68c69a453eced63864c10cd - 1.66% (4.32 MB)
/bin/sh -c #(nop) ADD file:00e6c22c1917031dd97c411814ae384c25a7f2bb91890494a73ea34f3c168453 in /
2024-08-08 16:52:20 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-21 18:03:26 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-21 18:03:26 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-21 18:03:26 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=14
2024-10-21 18:03:26 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2024-10-21 18:03:26 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-21 18:03:26 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=14
2024-10-21 18:04:49 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang15 llvm15-dev llvm15; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2024-10-21 18:04:49 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-21 18:04:49 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=14
2024-10-21 18:04:49 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=386
2024-10-21 18:04:49 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=14 TARGETARCH=386 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add --no-cache --virtual .pgai-deps git build-base cargo python3-dev py3-pip; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; apk del .pgai-deps; fi # buildkit
2024-10-21 18:04:49 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-21 18:05:26 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-21 18:05:26 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-21 18:05:28 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-21 18:05:28 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.1
2024-10-21 18:08:11 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=14 TARGETARCH=386 TS_VERSION=2.17.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-10-21 18:07:37 UTC
259 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_MAJOR14
PG_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 - 1.34% (3.46 MB)
[#001] sha256:e873fb2735b3f56160de1422d1cae2b1122cd97f57e5869f156b00136f918696 - 0.0% (985 Bytes)
[#002] sha256:772b4b42df4108b6e7db8451e80bcdfb5077ade59295a264dac8c4d4ae6f4f9f - 0.41% (1.07 MB)
[#003] sha256:aad266b43b70987f111e60dcc9b33ef6724639bfe748af55ba0a6e9196d086be - 0.0% (174 Bytes)
[#004] sha256:a454f3169b6949706b4b8564e076029c99076f2628a9e6f2880530afc4a3a674 - 0.0% (116 Bytes)
[#005] sha256:0b0c1d6ff9cc1a687051337f75f1920b115dbadc4df155922688e7e687cb1916 - 33.4% (86.4 MB)
[#006] sha256:54240ff491cd8c222a575f902358664f5a7876d419fc0d9cb0264c63eaa17af7 - 0.0% (8.99 KB)
[#007] sha256:7a0f38d8ce1360cd0b78998cab1fa83308b5626d5b4b1fa90af4630313d22e94 - 0.0% (128 Bytes)
[#008] sha256:878fb7d99d63c5424b6c7e742a178e68ae6336c81ea3f66f97d633caff844182 - 0.0% (169 Bytes)
[#009] sha256:603bc42f8ec18b54fd10052c8b5fce6f4f19339dc8059ae6d3f9ba00a0541922 - 0.0% (5.29 KB)
[#010] sha256:33d630de8c0769144088acf7aab81a619ce18d5e56031c6a1cb3adaaa95401a8 - 0.0% (184 Bytes)
[#011] sha256:452eb6fadda5f04eb52d89a5e289aa81e1c1fa712d7ce834420109a5e2324828 - 8.54% (22.1 MB)
[#012] sha256:8a2767afe546205934e7c9e98748beeb9d50ef7698ffef339b09ff40c33c97d3 - 2.88% (7.44 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:c0ba5aca2d1a5b5c46c055788e55bd72db089c975244281c84df389ca0510302 - 0.0% (2.24 KB)
[#015] sha256:1f57aa893051b72ecdf97bbe8b18dab843ab4e1fc59992d3cb443c764e9a3fcf - 2.6% (6.72 MB)
[#016] sha256:8c17619044acb0713d7e4a0d7d3c10a2cd9226a3b2b6fc6caaa9d156a2d45f45 - 29.33% (75.9 MB)
[#017] sha256:8e9328b5bdc10feb55d198defeaf0a7e056277083e760ac3d0f76c3bd548a3c4 - 19.79% (51.2 MB)
[#018] sha256:a1cdaa548dce4bb11e4499d634995d774eb2af419f307c812193e6c29c23732f - 1.7% (4.41 MB)
/bin/sh -c #(nop) ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in /
2024-08-08 16:52:20 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-21 18:03:31 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-21 18:03:31 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-21 18:03:31 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=14
2024-10-21 18:03:31 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2024-10-21 18:03:31 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-21 18:03:31 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=14
2024-10-21 18:04:48 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang15 llvm15-dev llvm15; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2024-10-21 18:04:48 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-21 18:04:48 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=14
2024-10-21 18:04:48 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=amd64
2024-10-21 18:04:48 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=14 TARGETARCH=amd64 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add --no-cache --virtual .pgai-deps git build-base cargo python3-dev py3-pip; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; apk del .pgai-deps; fi # buildkit
2024-10-21 18:04:48 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-21 18:05:06 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-21 18:05:06 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-21 18:05:08 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-21 18:05:08 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.1
2024-10-21 18:07:37 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=14 TARGETARCH=amd64 TS_VERSION=2.17.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-10-21 18:24:51 UTC
254 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_MAJOR14
PG_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:97964a4b92f04f720ed681b3ec62b071ced94b08b57765c612866e77a71ec087 - 1.26% (3.21 MB)
[#001] sha256:e1926ba8f8f62878b68875756f8686ff4fbac12ecedb3040e7fcdb795834f064 - 0.0% (982 Bytes)
[#002] sha256:a8999ec1aa34d37759a1bc9a1ab2364f588fa7168269d15b795fd1f59eb268fb - 0.41% (1.04 MB)
[#003] sha256:751d0a1b6a5f8acc091860ce9cefa33d4a4763f0a4d758cb02b7cdfb0ca5d2a0 - 0.0% (177 Bytes)
[#004] sha256:970105bc24623b15b6694f85b81c01da170360a8ade161ecb48f80e2aed986ac - 0.0% (116 Bytes)
[#005] sha256:c1dc9baaa6373342bd51efffbf0eabfb6f37e06a969c86887233680f8cb36051 - 33.69% (85.5 MB)
[#006] sha256:1e09e3f4b75b15c50533ba91cd97bc3d5fb0daaac6ad423063e61095f24804b2 - 0.0% (8.99 KB)
[#007] sha256:bc9083cf6991180f7dc663b961da90bb8309b808cfbb7b30a227682ce9bcd6b8 - 0.0% (129 Bytes)
[#008] sha256:02947eacbe16e196a5412bf8185a0c2b66bef1dd3f2ba487268ca59eb78f5abc - 0.0% (168 Bytes)
[#009] sha256:f2754dce248ad771cdec1dfc4b16bd52d2d9d51190d04f776a6c2da5923cc6a9 - 0.0% (5.29 KB)
[#010] sha256:3b2c0c18a24392d2db4e1fddcfa014bb276a996f0f59d8504cd461158f7dc5aa - 0.0% (185 Bytes)
[#011] sha256:e7cbc356462ae05010cf048b6d6f5c472b1aea1c0ecd46617079584dded213f6 - 8.39% (21.3 MB)
[#012] sha256:df94acd9745d00b7f04552f8af34ef269229a805fc9b98d32eb45b10e434b114 - 2.64% (6.69 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:c23ad0872cb1d9693102e8d0ab9bc47bcbfec066678a4ae3d7544afe1ab15d2f - 0.0% (2.24 KB)
[#015] sha256:dfc10396c7b9e9ce00d9472d39a81bdc85c22385aa5182fd47bc2a35c2a045f2 - 2.46% (6.25 MB)
[#016] sha256:7f724cd10a2fc3ecfa11eb2119ec0e01a2d5be808574da2a809d031849180133 - 29.26% (74.3 MB)
[#017] sha256:51ef572861714af70efb5e673ba87fb8eac4f0b115d55f62fffc6fdaa8d1dd7f - 20.17% (51.2 MB)
[#018] sha256:b9341ee8fb9d22f43e7b091cad4340fb27551315f724b4dda0bb7bc690f98aec - 1.72% (4.36 MB)
/bin/sh -c #(nop) ADD file:faa3509308d5524875c6afec4d4d1a357118aa1587e5485eca63c2907b37d968 in /
2024-08-08 16:52:20 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-21 18:04:13 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-21 18:04:13 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-21 18:04:13 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=14
2024-10-21 18:04:13 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2024-10-21 18:04:13 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-21 18:04:13 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=14
2024-10-21 18:11:06 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang15 llvm15-dev llvm15; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2024-10-21 18:11:06 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-21 18:11:06 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=14
2024-10-21 18:11:06 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm
2024-10-21 18:11:06 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=14 TARGETARCH=arm /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add --no-cache --virtual .pgai-deps git build-base cargo python3-dev py3-pip; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; apk del .pgai-deps; fi # buildkit
2024-10-21 18:11:06 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-21 18:15:56 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-21 18:15:57 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-21 18:15:59 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-21 18:15:59 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.1
2024-10-21 18:24:51 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=14 TARGETARCH=arm TS_VERSION=2.17.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-10-21 18:25:04 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_MAJOR14
PG_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:da2748c71804914f58a58693c998a4885dd24623380daf301f4a1a88185cb4c8 - 1.19% (2.95 MB)
[#001] sha256:e2ac8e9d0c68b096b09818bfb20f42e953c3d9cd9df375198a3b549dd5ce5f63 - 0.0% (986 Bytes)
[#002] sha256:0ea95758d71d5413b7fd57d98797bffda5c623934cbefc0067a635c1ff9f62e9 - 0.42% (1.04 MB)
[#003] sha256:5f93540d99e99914202c8ed07dbb4762ba225d2c6061670c2fafc29c7af5b206 - 0.0% (176 Bytes)
[#004] sha256:8913630691ba9994e15bc5ad692e83b0d35705f5db68d326926e420ae066c0e7 - 0.0% (116 Bytes)
[#005] sha256:f7b064750e513ac4928c5582235a2305ee32ac78d07daf06ef8012195e357ee9 - 32.51% (80.5 MB)
[#006] sha256:8bb4b6acce5e8d23b2564ec0cb83653ae7e257cc59718f6dce89e5a9dac53ba3 - 0.0% (8.99 KB)
[#007] sha256:cdae7b4a47ed46e9bf5c1e5ca49bf478e04765b489659e00d725fc7b34949fd8 - 0.0% (128 Bytes)
[#008] sha256:821463e1aa9678c35a36010b3c3de9565186569fe710abb9436110e9dd768ab8 - 0.0% (168 Bytes)
[#009] sha256:b955af1b35c9bc48592849c5fae7cef87705c4f55c6f30080efb9265ac944082 - 0.0% (5.29 KB)
[#010] sha256:22cee6757edaf75845d7b0baa5c1dd5b369c92d5b0bb14088d356f66db7b92b9 - 0.0% (185 Bytes)
[#011] sha256:8be9e7cd08d7b1acc31f5b84f5fba1a69f24f1253bfacd4b8f671ccfd7dae160 - 8.36% (20.7 MB)
[#012] sha256:8152952154526c57e2a2c6e768c1bbc4b60c9de8ec04de2ed3ff81d2ccacfb56 - 2.72% (6.73 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:f396db8e19b8ee0a16373df7ea9aeee62c4f7991a8b5c1e17e77dc3fbacc495c - 0.0% (2.24 KB)
[#015] sha256:19c471b4e29ce9cb724b9597932b34d3affb8495182db162af29e8b34176d600 - 2.52% (6.24 MB)
[#016] sha256:b9c5b59b49ffae2df8489d82666033fb9a2cf2691503dbdf36372472c048d5d6 - 29.82% (73.8 MB)
[#017] sha256:deead018a696934f3daae8941199aa01d1518580617dca611257e86e0b6ff259 - 20.69% (51.2 MB)
[#018] sha256:603db595b29cd6cd20498d49396c33512159596ad1dad96bc9a10bc98f605058 - 1.76% (4.34 MB)
/bin/sh -c #(nop) ADD file:8096a7e97160f837a432988b8138ffab07ff212be781f530c8baa2067265d071 in /
2024-08-08 16:52:20 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=14
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-21 18:04:17 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=14
2024-10-21 18:11:11 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang15 llvm15-dev llvm15; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2024-10-21 18:11:11 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-21 18:11:11 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=14
2024-10-21 18:11:11 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm
2024-10-21 18:11:11 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=14 TARGETARCH=arm /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add --no-cache --virtual .pgai-deps git build-base cargo python3-dev py3-pip; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; apk del .pgai-deps; fi # buildkit
2024-10-21 18:11:11 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-21 18:15:56 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-21 18:15:57 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-21 18:15:59 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-21 18:15:59 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.1
2024-10-21 18:25:04 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=14 TARGETARCH=arm TS_VERSION=2.17.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-10-21 18:24:51 UTC
257 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_MAJOR14
PG_SHA25659aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
PG_VERSION14.13
[#000] sha256:cf04c63912e16506c4413937c7f4579018e4bb25c272d989789cfba77b12f951 - 1.52% (3.9 MB)
[#001] sha256:4ce02d10b61bf34aa182aa7cd3783def4d5bbd8176c97011032c1508b214ff88 - 0.0% (987 Bytes)
[#002] sha256:afc2a136d16381dd1cb44173056502b63f1221519780ccd6a68b144efc25d984 - 0.39% (1020 KB)
[#003] sha256:3d8ca8946873e79c55e98d72c8e8199b4e5fa08d6d8c68ef8a6901d7c0300fd2 - 0.0% (174 Bytes)
[#004] sha256:02e732be064c163369f8060a02cdb4896b04c1cdb30b10c1a5bb161a03df18d9 - 0.0% (116 Bytes)
[#005] sha256:d4867a0418fc0d9e5c89fe50d6688ec067aca5ed0b87afb12cd0d0480cb2cefa - 33.22% (85.3 MB)
[#006] sha256:b61f80c00259767aeb38825f230eeb3929ef9ce4e490e317d686b4cfc474c16b - 0.0% (8.99 KB)
[#007] sha256:70ea4790cd188ce01260b0e3222afb3c5df74575e02608e3556b1815a2abf229 - 0.0% (128 Bytes)
[#008] sha256:eb352d4e8faeab50860954da45b0ea70292f24629a231db7422433bd0f83cb18 - 0.0% (169 Bytes)
[#009] sha256:30f11a9a130ae71ce981ea19a992ba1f964224664bd8f351929a0781d27b5687 - 0.0% (5.29 KB)
[#010] sha256:0308927099c5c7abdd3f1ddadee937b2a8ba2f07974999b283359c017bcd7a7f - 0.0% (185 Bytes)
[#011] sha256:bda8d76dda639cdd79156fe51066ebdc434144c7304eb5e0737d92a1d0604c26 - 8.67% (22.3 MB)
[#012] sha256:fd05882371dc170880f84e0bf8e122f51f75d5b12f1d6100df5b26979cf7bfe5 - 3.02% (7.76 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:169e1555b9de35a5accaaf7d991f7d0df453c74bed73037e987f7cb23bf12a69 - 0.0% (2.24 KB)
[#015] sha256:a97afc8aad59426a89b1307bc1f639b233fb89bcd2ee345ffd6d40ea2d5926cb - 2.46% (6.32 MB)
[#016] sha256:cdeea5672373d2bed41fb557555be15c1cb854d08f0d134afbf71492753ea98e - 29.08% (74.7 MB)
[#017] sha256:9e674c8b9b1deac0bb4ecbc67f9f6f6321a10b18fdf9bceb218a59a217ea1c66 - 19.94% (51.2 MB)
[#018] sha256:e0b8da568ce6b937f66a5480d82ed934857f30e57e9471719160ff0158a55d18 - 1.7% (4.37 MB)
/bin/sh -c #(nop) ADD file:ee5bb8409915b11413f44cce4c22fed658aba4fb078a448e08dd4ac9a23581f2 in /
2024-08-08 16:52:20 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; addgroup -g 70 -S postgres; adduser -u 70 -S -D -G postgres -H -h /var/lib/postgresql -s /bin/sh postgres; install --verbose --directory --owner postgres --group postgres --mode 1777 /var/lib/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.17
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .gosu-deps ca-certificates dpkg gnupg ; dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch"; wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; apk del --no-network .gosu-deps; chmod +x /usr/local/bin/gosu; gosu --version; gosu nobody true # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ln -svf gosu /usr/local/bin/su-exec; su-exec nobody true # backwards compatibility (removed in PostgreSQL 17+) # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.utf8
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir /docker-entrypoint-initdb.d # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_MAJOR=14
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_VERSION=14.13
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PG_SHA256=59aa3c4b495ab26a9ec69f3ad0a0228c51f0fe6facf3634dfad4d1197d613a56
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV DOCKER_PG_LLVM_DEPS=llvm15-dev clang15
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; wget -O postgresql.tar.bz2 "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2"; echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -; mkdir -p /usr/src/postgresql; tar --extract --file postgresql.tar.bz2 --directory /usr/src/postgresql --strip-components 1 ; rm postgresql.tar.bz2; apk add --no-cache --virtual .build-deps $DOCKER_PG_LLVM_DEPS bison coreutils dpkg-dev dpkg flex g++ gcc krb5-dev libc-dev libedit-dev libxml2-dev libxslt-dev linux-headers make openldap-dev openssl-dev perl-dev perl-ipc-run perl-utils python3-dev tcl-dev util-linux-dev zlib-dev icu-dev lz4-dev ; cd /usr/src/postgresql; awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new; grep '/var/run/postgresql' src/include/pg_config_manual.h.new; mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb'; wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb'; export LLVM_CONFIG="/usr/lib/llvm15/bin/llvm-config"; export CLANG=clang-15; ./configure --enable-option-checking=fatal --build="$gnuArch" --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cp -v /usr/local/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample.orig; sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample; grep -F "listen_addresses = '*'" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENV PGDATA=/var/lib/postgresql/data
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install --verbose --directory --owner postgres --group postgres --mode 1777 "$PGDATA" # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)VOLUME [/var/lib/postgresql/data]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/ # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh # buildkit
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGINT
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)EXPOSE map[5432/tcp:{}]
2024-08-08 16:52:20 UTC (buildkit.dockerfile.v0)CMD ["postgres"]
2024-10-21 18:04:18 UTC (buildkit.dockerfile.v0)ARG OSS_ONLY= -DAPACHE_ONLY=1
2024-10-21 18:04:18 UTC (buildkit.dockerfile.v0)LABEL maintainer=Timescale https://www.timescale.com
2024-10-21 18:04:18 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=14
2024-10-21 18:04:18 UTC (buildkit.dockerfile.v0)RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3; fi # buildkit
2024-10-21 18:04:18 UTC (buildkit.dockerfile.v0)ARG PGVECTOR_VERSION=v0.7.2
2024-10-21 18:04:18 UTC (buildkit.dockerfile.v0)ARG PG_VERSION=14
2024-10-21 18:11:36 UTC (buildkit.dockerfile.v0)RUN |4 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 /bin/sh -c set -ex; if [ "$PG_VERSION" -lt 17 ]; then apk update; apk add --no-cache --virtual .vector-deps postgresql${PG_VERSION}-dev git build-base clang15 llvm15-dev llvm15; git clone --branch ${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git /build/pgvector; cd /build/pgvector; make; make install; apk del .vector-deps; fi # buildkit
2024-10-21 18:11:36 UTC (buildkit.dockerfile.v0)ARG PGAI_VERSION=v0.3.0
2024-10-21 18:11:36 UTC (buildkit.dockerfile.v0)ARG PG_MAJOR_VERSION=14
2024-10-21 18:11:36 UTC (buildkit.dockerfile.v0)ARG TARGETARCH=arm64
2024-10-21 18:11:36 UTC (buildkit.dockerfile.v0)RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=14 TARGETARCH=arm64 /bin/sh -c set -ex; if [ "$PG_MAJOR_VERSION" -eq 16 ] && [ "$TARGETARCH" != "arm" ]; then apk update; apk add --no-cache --virtual .pgai-deps git build-base cargo python3-dev py3-pip; git clone --branch ${PGAI_VERSION} https://github.com/timescale/pgai.git /build/pgai; cp /build/pgai/ai--*.sql /usr/local/share/postgresql/extension/; cp /build/pgai/ai.control /usr/local/share/postgresql/extension/; pip install --verbose --break-system-packages -r /build/pgai/requirements.txt; apk del .pgai-deps; fi # buildkit
2024-10-21 18:11:37 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit
2024-10-21 18:15:20 UTC (buildkit.dockerfile.v0)COPY /go/bin/* /usr/local/bin/ # buildkit
2024-10-21 18:15:20 UTC (buildkit.dockerfile.v0)COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit
2024-10-21 18:15:22 UTC (buildkit.dockerfile.v0)COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit
2024-10-21 18:15:22 UTC (buildkit.dockerfile.v0)ARG TS_VERSION=2.17.1
2024-10-21 18:24:51 UTC (buildkit.dockerfile.v0)RUN |8 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=14 PGVECTOR_VERSION=v0.7.2 PG_VERSION=14 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=14 TARGETARCH=arm64 TS_VERSION=2.17.1 /bin/sh -c set -ex && apk add --no-cache --virtual .fetch-deps ca-certificates git openssl openssl-dev tar && mkdir -p /build/ && git clone https://github.com/timescale/timescaledb /build/timescaledb && apk add --no-cache --virtual .build-deps coreutils dpkg-dev dpkg gcc krb5-dev libc-dev make cmake util-linux-dev && cd /build/timescaledb && rm -fr build && git checkout ${TS_VERSION} && ./bootstrap -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREGRESS_CHECKS=OFF -DTAP_CHECKS=OFF -DGENERATE_DOWNGRADE_SCRIPT=ON -DWARNINGS_AS_ERRORS=OFF -DPROJECT_INSTALL_METHOD="docker"${OSS_ONLY} && cd build && make install && cd ~ && if [ "${OSS_ONLY}" != "" ]; then rm -f $(pg_config --pkglibdir)/timescaledb-tsl-*.so; fi && apk del .fetch-deps .build-deps && rm -rf /build && sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" /usr/local/share/postgresql/postgresql.conf.sample # buildkit
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.