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.

Revisions

  1. pyk created this gist Mar 9, 2023.
    10 changes: 10 additions & 0 deletions timescaledb.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    ```Dockerfile
    # 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
    ```