Skip to content

Instantly share code, notes, and snippets.

@pyk
Created March 9, 2023 01:10
Show Gist options
  • Save pyk/fd41dc05940ec943fa507e2a5e94582b to your computer and use it in GitHub Desktop.
Save pyk/fd41dc05940ec943fa507e2a5e94582b to your computer and use it in GitHub Desktop.
Install timescaledb on debian docker image
# Install TimescaleDB
RUN apt update \
    && apt install -y gnupg postgresql-common apt-transport-https lsb-release wget \
    && /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y \
    && echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" | tee /etc/apt/sources.list.d/timescaledb.list \
    && wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | apt-key add - \
    && apt update \
    && apt install timescaledb-2-postgresql-15 -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment