Namespace
timescale
Image / Tag
timescaledb:2.16.1-pg15-oss
Content Digest
sha256:1e8ab4dbf0cc5d83e33388b65ce2b4cd0799cdb8622ee8e36d4e06e4f9f7229a
Pull command
Details
Created

2024-08-06 15:31:18 UTC

Size

229 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

15

PG_SHA256

a46fe49485ab6385e39dabbbb654f5d3049206f76cd695e224268729520998f7

PG_VERSION

15.7


Layers

[#000] sha256:2585500d54afa42a6b579f9ed6f62b49c5fb21c2653f79194342804bde8770fe - 1.45% (3.31 MB)

[#001] sha256:43e8bbf58af7865d9b4ad7ed74f660063dc4314cfb44ad066ab896e0f1aacf08 - 0.0% (978 Bytes)

[#002] sha256:44a10e6628253649d72572b9bdeac49622f97c411ebd1758bf3ae981c8ee17e5 - 0.46% (1.04 MB)

[#003] sha256:21500040455b5d4bc7a2b0de5de34a90eafe9f3942de16a621827a67f2d2ca3b - 0.0% (172 Bytes)

[#004] sha256:1cd37197d08ee12ba1bd16b281ddca2753fc3f1368cd46ebad02ef0529f90440 - 0.0% (116 Bytes)

[#005] sha256:ff342a5160018d02a1d4ceea3b86372cefdd07e6fb314a215ca3ec8389d4597c - 40.37% (92.3 MB)

[#006] sha256:67a5156bc6309080446013f89c6a09394a8dc428cbc4e1030e27b3a1088a8304 - 0.0% (9.23 KB)

[#007] sha256:940b904532593ede697b893cd7a05778dd2c8a252361afa1f800417e50fc2e59 - 0.0% (129 Bytes)

[#008] sha256:cc0502d186c220a300128a438f608b5181b9e2464a318595c04eb2f60a4e5f0d - 0.0% (167 Bytes)

[#009] sha256:0a38e0314973987611d9897c2d3096b581d1be160b34d996f1c310bb595aebc7 - 0.0% (5.29 KB)

[#010] sha256:14944e76dc061ac0d0e30318e1532a66b99cce0528d4232b9fb2406c5beebfd9 - 0.0% (185 Bytes)

[#011] sha256:c113696aaf9a6f5728431a8292f8b28bed1f5816dd870ec1427c52c3163a6cda - 10.13% (23.1 MB)

[#012] sha256:e91d1c3a8eed7df3329f5161385424cea85d5eef602ae92e1aa04a07e01c04d5 - 2.09% (4.78 MB)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:6c11845df1a2a8ec4ba1ba6a742bb9862feac5b55a88268734fc1b16b94db5be - 0.0% (2.19 KB)

[#015] sha256:4c7d162d3622fec851d34103b102ffcc4105ea66572071ec1a1a03b040df9f46 - 2.84% (6.49 MB)

[#016] sha256:16eeebcf478a534090d30491f854e55ee73eeda9d0602fcf86b9192edd0d7996 - 23.53% (53.8 MB)

[#017] sha256:31766fa544511b54c31b6cab6ac6f7bddba204c53b76733fb676bf6d4a804411 - 17.26% (39.5 MB)

[#018] sha256:482aa219358af209ad8b7183a63259f856aa26b6f2bbc2fe75b127006f5c69e9 - 1.88% (4.3 MB)


History
2024-06-03 20:57:56 UTC

/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=15

2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.7

2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=a46fe49485ab6385e39dabbbb654f5d3049206f76cd695e224268729520998f7

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-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-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-08-06 15:26:36 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2024-08-06 15:26:36 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2024-08-06 15:26:36 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=15

2024-08-06 15:26:36 UTC (buildkit.dockerfile.v0)

RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3 # buildkit

2024-08-06 15:26:36 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.7.2

2024-08-06 15:27:56 UTC (buildkit.dockerfile.v0)

RUN |3 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 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-08-06 15:27:56 UTC (buildkit.dockerfile.v0)

ARG PGAI_VERSION=v0.3.0

2024-08-06 15:27:56 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=15

2024-08-06 15:27:56 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=386

2024-08-06 15:27:56 UTC (buildkit.dockerfile.v0)

RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 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-08-06 15:27:57 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2024-08-06 15:28:32 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2024-08-06 15:28:33 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2024-08-06 15:28:34 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2024-08-06 15:28:34 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.16.1

2024-08-06 15:31:18 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=386 TS_VERSION=2.16.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

Details
Created

2024-08-06 15:30:46 UTC

Size

226 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

15

PG_SHA256

a46fe49485ab6385e39dabbbb654f5d3049206f76cd695e224268729520998f7

PG_VERSION

15.7


Layers

[#000] sha256:c6a83fedfae6ed8a4f5f7cbb6a7b6f1c1ec3d86fea8cb9e5ba2e5e6673fde9f6 - 1.53% (3.46 MB)

[#001] sha256:8d8b5eb5a9b12621b4ad279a08a45f957ab15c11b5bec65d10145b33cc01f3fc - 0.0% (981 Bytes)

[#002] sha256:8f6debb209f6cb5a17d56bda0aa1ef1b693d4e1db920a4f41997e6c4dfa6b247 - 0.47% (1.07 MB)

[#003] sha256:16c952e2e6debde4f87e0b9a86155dc851882fdda2d203a424866deb4678896a - 0.0% (171 Bytes)

[#004] sha256:3db166f8056c8cd7af3866f193c01bc8f9f0721a6811766f5def05268e3b136d - 0.0% (116 Bytes)

[#005] sha256:3c0735445f078105c75e8c925776c3db6849c5dd0d97dce729b7dd192808ee1a - 38.51% (87 MB)

[#006] sha256:59a0304d892ab4cb5a0963e5134ed99353ab279edd7d6ec4bbd2b79d1c449c3b - 0.0% (9.22 KB)

[#007] sha256:f2646488f1427e51c0a9f9b459030d6c15825f7b21560a66a6737c99b1d4e8e5 - 0.0% (129 Bytes)

[#008] sha256:8114b967721f3303e349b14ffed8f215013af143b30faaae33af171b1f9a297c - 0.0% (169 Bytes)

[#009] sha256:55a098ea734958d6a38cd5e91962d80fd169c15d9c6634c1441008699081f372 - 0.0% (5.29 KB)

[#010] sha256:6083ec5d0bbcabd90d8bc8d4a9114ae10ccfe22547ac1cdeba885952e1c113b5 - 0.0% (185 Bytes)

[#011] sha256:79eb973a5f3bf6f180fc3e7c13a96d8420dedf8130cfddc47eac6c55db14427d - 9.89% (22.3 MB)

[#012] sha256:99fe830904d179632c408c8497134bef10777d0c1230fbf4e014a816b89a756e - 2.18% (4.93 MB)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:8e17c5f631aefe1df56dc2d9c06c1b52ebc38dcf00c9b20571057f27b90297de - 0.0% (2.19 KB)

[#015] sha256:37acef6f25b1b7e9d6ea3a82a79662f70c956ba2c52505bb6e453b1e6bcb6a5e - 2.97% (6.71 MB)

[#016] sha256:03e0152638c5e640a78ac20f3531bbb28468eea3b71cdd2ff7ffc93cfab72bf8 - 25.03% (56.6 MB)

[#017] sha256:c84e0ba887adeb16a83b9b5ced577751ec47515e4d049e3c9329dbf3c85b7257 - 17.46% (39.5 MB)

[#018] sha256:cf9f6ced97fb7dcb51f7554150741b6e4119e2eea085de0b7fb123f7483d8ef2 - 1.95% (4.4 MB)


History
2024-06-03 20:57:56 UTC

/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=15

2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.7

2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=a46fe49485ab6385e39dabbbb654f5d3049206f76cd695e224268729520998f7

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-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-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-08-06 15:26:36 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2024-08-06 15:26:36 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2024-08-06 15:26:36 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=15

2024-08-06 15:26:36 UTC (buildkit.dockerfile.v0)

RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3 # buildkit

2024-08-06 15:26:36 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.7.2

2024-08-06 15:27:53 UTC (buildkit.dockerfile.v0)

RUN |3 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 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-08-06 15:27:53 UTC (buildkit.dockerfile.v0)

ARG PGAI_VERSION=v0.3.0

2024-08-06 15:27:53 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=15

2024-08-06 15:27:53 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=amd64

2024-08-06 15:27:53 UTC (buildkit.dockerfile.v0)

RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 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-08-06 15:27:54 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2024-08-06 15:28:17 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2024-08-06 15:28:17 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2024-08-06 15:28:18 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2024-08-06 15:28:18 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.16.1

2024-08-06 15:30:46 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=amd64 TS_VERSION=2.16.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

Details
Created

2024-08-06 15:47:59 UTC

Size

222 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

15

PG_SHA256

a46fe49485ab6385e39dabbbb654f5d3049206f76cd695e224268729520998f7

PG_VERSION

15.7


Layers

[#000] sha256:ae2458422e4465e718700cd0c5970c709804ded4caa7b7f317eada5d16878e29 - 1.45% (3.21 MB)

[#001] sha256:e9b773cfc448de5399b645e9021d9feb73e5260f6a55c6f74a72e816b47345f3 - 0.0% (981 Bytes)

[#002] sha256:285b19070c31caa9d2c26bf36838d9bfed23a66bc19e14687cc69cefc8b9ec0e - 0.47% (1.04 MB)

[#003] sha256:8cb2963a2892e4a8937d2c3d799cabf53b5a4cb1c5ce1e26499c2cc226746c20 - 0.0% (175 Bytes)

[#004] sha256:bdeaa90218771d2c7a549b14ad1d87aae71cc65461651067ca6d60180581f944 - 0.0% (116 Bytes)

[#005] sha256:47c0751b72404bb94a1deedebc94d57fe5eb00023e4a100141a1cd48f3651cd0 - 38.83% (86.1 MB)

[#006] sha256:b12b20f0c6110fcaacffb8a58b32a95bd832b543514c4b9a1f77ab80fb42d155 - 0.0% (9.23 KB)

[#007] sha256:b2f31fd0deacd05f42624f0c232027a6e66b11a9f5afe5ebb0996d4a39fab036 - 0.0% (128 Bytes)

[#008] sha256:6472817d49952dffec07ac40da3c039e2cb85e444a9c39ca7b92d667e5601a47 - 0.0% (168 Bytes)

[#009] sha256:37d6f93c7e0e1a6dcf45854f8681d19eca525090c3983d67f665251bbaf17fa1 - 0.0% (5.29 KB)

[#010] sha256:e659ed6f4c3508e087d32838603c24e12472619b2db0345e807801d336d2b6ad - 0.0% (187 Bytes)

[#011] sha256:fd8565fd2a0bc14db6554b5b4e348d2d12e8272325a5a9b7515a2bf944d74538 - 9.71% (21.5 MB)

[#012] sha256:88f1365f3b5a7e8ed98ceaa4caf6777d10022f37bc906db0faba00d45825eeea - 2.03% (4.5 MB)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:6d4549db2bf6db47ef874d5c33de6569de7a29f6db3d45791dac4c294804c884 - 0.0% (2.19 KB)

[#015] sha256:99d5fe395706e2bbb3f13b99cbaae7da04716a6fbb8d43dc196163bbdae6d9d8 - 2.82% (6.24 MB)

[#016] sha256:434824a2d39c2c562485a13322f6f5740b0fdd1192e355d784fd0e27675f0733 - 24.95% (55.3 MB)

[#017] sha256:0a1d982def2014b8d95b88b824582a52eaffd4392861d2a5599e56b2030b9459 - 17.79% (39.5 MB)

[#018] sha256:bcd99bc296d171bd1a59fee66ab5e0d4ce0e87d5fa7bdc2a35cc8ef556831a29 - 1.96% (4.34 MB)


History
2024-06-03 20:57:56 UTC

/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=15

2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.7

2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=a46fe49485ab6385e39dabbbb654f5d3049206f76cd695e224268729520998f7

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-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-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-08-06 15:27:23 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2024-08-06 15:27:23 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2024-08-06 15:27:23 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=15

2024-08-06 15:27:23 UTC (buildkit.dockerfile.v0)

RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3 # buildkit

2024-08-06 15:27:23 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.7.2

2024-08-06 15:34:17 UTC (buildkit.dockerfile.v0)

RUN |3 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 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-08-06 15:34:17 UTC (buildkit.dockerfile.v0)

ARG PGAI_VERSION=v0.3.0

2024-08-06 15:34:17 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=15

2024-08-06 15:34:17 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=arm

2024-08-06 15:34:17 UTC (buildkit.dockerfile.v0)

RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 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-08-06 15:34:17 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2024-08-06 15:39:10 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2024-08-06 15:39:11 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2024-08-06 15:39:12 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2024-08-06 15:39:12 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.16.1

2024-08-06 15:47:59 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=arm TS_VERSION=2.16.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

Details
Created

2024-08-06 15:48:12 UTC

Size

216 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

15

PG_SHA256

a46fe49485ab6385e39dabbbb654f5d3049206f76cd695e224268729520998f7

PG_VERSION

15.7


Layers

[#000] sha256:9c6652a37da7fb600faac56897745bdde89a4f9bd260a082b6bf4a0d173b5906 - 1.37% (2.95 MB)

[#001] sha256:2490af644d68c34906e0c9e80c2e13f2de007edb89b5cb5a48d745b862813731 - 0.0% (981 Bytes)

[#002] sha256:5e95c854f037189d46203de85a8267a4b5195f503635dd6f6bb17821f554e94b - 0.48% (1.04 MB)

[#003] sha256:45cc9497a5a3a57e7e22e03d57e578257b2154fcef7e619e8fc4f53dd99c4091 - 0.0% (175 Bytes)

[#004] sha256:7f74dbf7a2139887bc137c0aa3958db7419a82683fa84c0c3b96c34b167dead6 - 0.0% (116 Bytes)

[#005] sha256:18a4b3e3abf735a010d5aaf78e32548efa5aea27b3267f58804dd4814db7332b - 37.58% (81.1 MB)

[#006] sha256:667968682ca210dde1346a1a903a8567a176e95a03717243a1ba9e33666c5d28 - 0.0% (9.23 KB)

[#007] sha256:10ab5df9ced5f0fc9e82a47bb0b30259873b8dbb70b689901df932d7c69b1e1e - 0.0% (128 Bytes)

[#008] sha256:0a5011f9c5f2fa12feee4fb0d2d1fd329fd6394b3e288a3807a79ebf14f6d7ad - 0.0% (170 Bytes)

[#009] sha256:ddccc6e3cdaa60857b0c86e97df936a252c1e0fc2a76850a5c59936b56b16020 - 0.0% (5.29 KB)

[#010] sha256:5362a9c8e7fabd77b0a8b8caadff3f2cc14abd259a7b6b7b4c6e14bfa973ebde - 0.0% (184 Bytes)

[#011] sha256:31b473dd22a1c1b9d0af26cf76fc86ad9793ff7ffd44faff5260aa228f9aa384 - 9.7% (20.9 MB)

[#012] sha256:90b41c6ded1ab35f808ffd3df69ba77a9a79ab5e7fe555eb5b019469b3202001 - 2.17% (4.68 MB)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:0396de944af49704b439042ab3d3505c560c4f2ec9819491db1352ff39fb9048 - 0.0% (2.19 KB)

[#015] sha256:f06da1783088a7705e71811e03de5b55ce3cffd2ca95165247f7c9d2a8265745 - 2.89% (6.24 MB)

[#016] sha256:d846f33e9753d0669571180fad786b9133d589e0857d76c16bdfbaf179e57e7d - 25.51% (55 MB)

[#017] sha256:4456e6043713b15ab772b22ee4db35d9307d4b4ca7606454b890ed314606978c - 18.29% (39.5 MB)

[#018] sha256:205c1d951f6d8200797c057f22af71253c1e3826790925acfe1964a4ca5f8d1d - 2.01% (4.33 MB)


History
2024-06-03 20:57:56 UTC

/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=15

2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.7

2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=a46fe49485ab6385e39dabbbb654f5d3049206f76cd695e224268729520998f7

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-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-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-08-06 15:27:19 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2024-08-06 15:27:19 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2024-08-06 15:27:19 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=15

2024-08-06 15:27:19 UTC (buildkit.dockerfile.v0)

RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3 # buildkit

2024-08-06 15:27:19 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.7.2

2024-08-06 15:34:20 UTC (buildkit.dockerfile.v0)

RUN |3 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 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-08-06 15:34:20 UTC (buildkit.dockerfile.v0)

ARG PGAI_VERSION=v0.3.0

2024-08-06 15:34:20 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=15

2024-08-06 15:34:20 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=arm

2024-08-06 15:34:21 UTC (buildkit.dockerfile.v0)

RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 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-08-06 15:34:21 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2024-08-06 15:39:10 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2024-08-06 15:39:11 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2024-08-06 15:39:12 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2024-08-06 15:39:12 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.16.1

2024-08-06 15:48:12 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=arm TS_VERSION=2.16.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

Details
Created

2024-08-06 15:48:35 UTC

Size

224 MB

Content Digest
Labels
  • maintainer
    Timescale https://www.timescale.com

Environment
DOCKER_PG_LLVM_DEPS

llvm15-dev clang15

GOSU_VERSION

1.17

LANG

en_US.utf8

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PGDATA

/var/lib/postgresql/data

PG_MAJOR

15

PG_SHA256

a46fe49485ab6385e39dabbbb654f5d3049206f76cd695e224268729520998f7

PG_VERSION

15.7


Layers

[#000] sha256:690e87867337b8441990047e169b892933e9006bdbcbed52ab7a356945477a4d - 1.74% (3.9 MB)

[#001] sha256:b27fb9865e4405c08712daac8b15112b58371c98aca70a1d04c881d9f6e87c23 - 0.0% (981 Bytes)

[#002] sha256:17c039ed13e5edff36f72afe54a34f3989ac3fc60459e2652266165351ec1637 - 0.45% (1020 KB)

[#003] sha256:3cffd2df61482f46795d2e01617b50eca723eeef6292f9b065d4e9d35e8d14f7 - 0.0% (175 Bytes)

[#004] sha256:a80738f4d19d54af2826e200709a79b256920178a94e80bd70af2e516ed691ee - 0.0% (116 Bytes)

[#005] sha256:61c6b0e59f38a381f904fa3ba3e9ec7dd047f92fe8d644e3e99ca65101510095 - 38.36% (85.9 MB)

[#006] sha256:c647d13a3d0639835ab057df189acd3f75f072f180a23aa3765f75c2a1255494 - 0.0% (9.23 KB)

[#007] sha256:4ab2c1a64e358f9fce7a8b487deedc7e7848131192e067d4905998f2c12606f0 - 0.0% (127 Bytes)

[#008] sha256:78f318e1d4f122b3273436c77e84084d1b4d25df947bf7267b2e61ef4fbdb9da - 0.0% (169 Bytes)

[#009] sha256:ab62c681a1814cb463545f5af32f51749d87a026d68c10969cc0868dbe29695d - 0.0% (5.29 KB)

[#010] sha256:0fbcf217dfd6b4e70347c4ff25ff96665823527e961f9552407c8092a3c51b45 - 0.0% (184 Bytes)

[#011] sha256:57a671ee7a112d2e6f2ce479ca832978fcb70b2e464c8355db68d9e63678e716 - 10.04% (22.5 MB)

[#012] sha256:f89f9f55701f1ed21da46839f0bc3ed45753f5f32952dde9fde75240c14d16d9 - 2.17% (4.86 MB)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:18f3b9ce034c70c73b8502e74cce1668027878d1b6ea6b3bf6e98b2f7954cbfa - 0.0% (2.19 KB)

[#015] sha256:a69d3ebc3022ccd9a29fe7fa1f49bd2b0b23752cc087944187547e1f4f9275bd - 2.81% (6.3 MB)

[#016] sha256:9d41330e1e7de6e3d11298981529ed76192a0370cf197e11cdf2a1b4fab82473 - 24.86% (55.7 MB)

[#017] sha256:aca3bf4c3169991f1083d063bce7eaf274e8aa3961511530afc0498beff06be9 - 17.62% (39.5 MB)

[#018] sha256:b61c8be4c044b43604376b42655e7347b7ec3facf9785875156b8d3a72bff126 - 1.95% (4.36 MB)


History
2024-06-03 20:57:56 UTC

/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=15

2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)

ENV PG_VERSION=15.7

2024-06-03 20:57:56 UTC (buildkit.dockerfile.v0)

ENV PG_SHA256=a46fe49485ab6385e39dabbbb654f5d3049206f76cd695e224268729520998f7

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-gnu-ld --with-pgport=5432 --with-system-tzdata=/usr/share/zoneinfo --prefix=/usr/local --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-gssapi --with-ldap --with-tcl --with-perl --with-python --with-openssl --with-libxml --with-libxslt --with-icu --with-llvm --with-lz4 --with-zstd ; make -j "$(nproc)" world-bin; make install-world-bin; make -C contrib install; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | grep -v -e perl -e python -e tcl )"; apk add --no-cache --virtual .postgresql-rundeps $runDeps bash tzdata zstd icu-data-full $([ "$(apk --print-arch)" != 'ppc64le' ] && echo 'nss_wrapper') ; apk del --no-network .build-deps; cd /; rm -rf /usr/src/postgresql /usr/local/share/doc /usr/local/share/man ; postgres --version # buildkit

2024-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-08-06 15:27:26 UTC (buildkit.dockerfile.v0)

ARG OSS_ONLY= -DAPACHE_ONLY=1

2024-08-06 15:27:26 UTC (buildkit.dockerfile.v0)

LABEL maintainer=Timescale https://www.timescale.com

2024-08-06 15:27:26 UTC (buildkit.dockerfile.v0)

ARG PG_VERSION=15

2024-08-06 15:27:26 UTC (buildkit.dockerfile.v0)

RUN |2 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 /bin/sh -c set -ex; apk update; apk add --no-cache postgresql${PG_VERSION}-plpython3 # buildkit

2024-08-06 15:27:26 UTC (buildkit.dockerfile.v0)

ARG PGVECTOR_VERSION=v0.7.2

2024-08-06 15:34:47 UTC (buildkit.dockerfile.v0)

RUN |3 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 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-08-06 15:34:47 UTC (buildkit.dockerfile.v0)

ARG PGAI_VERSION=v0.3.0

2024-08-06 15:34:47 UTC (buildkit.dockerfile.v0)

ARG PG_MAJOR_VERSION=15

2024-08-06 15:34:47 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=arm64

2024-08-06 15:34:47 UTC (buildkit.dockerfile.v0)

RUN |6 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 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-08-06 15:34:47 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint-initdb.d/* /docker-entrypoint-initdb.d/ # buildkit

2024-08-06 15:38:39 UTC (buildkit.dockerfile.v0)

COPY /go/bin/* /usr/local/bin/ # buildkit

2024-08-06 15:38:39 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/postgresql/timescaledb-*.so /usr/local/lib/postgresql/ # buildkit

2024-08-06 15:38:40 UTC (buildkit.dockerfile.v0)

COPY /usr/local/share/postgresql/extension/timescaledb--*.sql /usr/local/share/postgresql/extension/ # buildkit

2024-08-06 15:38:40 UTC (buildkit.dockerfile.v0)

ARG TS_VERSION=2.16.1

2024-08-06 15:48:35 UTC (buildkit.dockerfile.v0)

RUN |7 OSS_ONLY= -DAPACHE_ONLY=1 PG_VERSION=15 PGVECTOR_VERSION=v0.7.2 PGAI_VERSION=v0.3.0 PG_MAJOR_VERSION=15 TARGETARCH=arm64 TS_VERSION=2.16.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

Danger Zone
Delete Tag

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.

Delete