Some checks failed
CI / Lint & Typecheck (push) Has been cancelled
CI / Test (routes) (push) Has been cancelled
CI / Test (security) (push) Has been cancelled
CI / Test (services) (push) Has been cancelled
CI / Test (unit) (push) Has been cancelled
CI / Test (integration) (push) Has been cancelled
CI / Test Coverage (push) Has been cancelled
CI / Build (push) Has been cancelled
23 lines
1.1 KiB
Docker
23 lines
1.1 KiB
Docker
# TimescaleDB with Toolkit extension
|
|
# Builds from official PostgreSQL image with TimescaleDB and Toolkit added
|
|
# This provides feature parity with the supervised image
|
|
FROM postgres:15-bookworm
|
|
|
|
# Install TimescaleDB and Toolkit from official TimescaleDB repo
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
curl \
|
|
ca-certificates \
|
|
gnupg \
|
|
&& curl -fsSL https://packagecloud.io/timescale/timescaledb/gpgkey | gpg --dearmor -o /usr/share/keyrings/timescaledb-keyring.gpg \
|
|
&& echo "deb [signed-by=/usr/share/keyrings/timescaledb-keyring.gpg] https://packagecloud.io/timescale/timescaledb/debian/ bookworm main" > /etc/apt/sources.list.d/timescaledb.list \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
timescaledb-2-postgresql-15 \
|
|
timescaledb-toolkit-postgresql-15 \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& apt-get purge -y --auto-remove curl gnupg
|
|
|
|
# Enable TimescaleDB in PostgreSQL config
|
|
RUN echo "shared_preload_libraries = 'timescaledb'" >> /usr/share/postgresql/postgresql.conf.sample
|