diff --git a/README.md b/README.md index cee11b9..6bbf380 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Home Assistant Add-on: [TimescaleDB](https://www.timescale.com/) -## [PostgreSql 12.3](https://www.postgresql.org/) & [Postgis 3.0.1](https://postgis.net/) & [TimescaleDB 1.7.1](https://www.timescale.com/) +## [PostgreSql 12.3](https://www.postgresql.org/) & [Postgis 3.0.1](https://postgis.net/) & [TimescaleDB 1.7.2](https://www.timescale.com/) ## TimescaleDB Overview @@ -16,8 +16,6 @@ Full SQL interface for all SQL natively supported by PostgreSQL (including secon - Time-oriented features, API functions, and optimizations. - Robust support for Data retention policies. - - ## Introduction Say, you want put all those nice Home Assistant measurements from your smarthome to good use, and for example, use something like [Grafana](https://grafana.com) for your dashboards, and maybe [Prometheus](https://prometheus.io/) for monitoring.. diff --git a/timescaledb/Dockerfile b/timescaledb/Dockerfile index cd0924c..f3bdb79 100644 --- a/timescaledb/Dockerfile +++ b/timescaledb/Dockerfile @@ -116,6 +116,38 @@ RUN set -ex \ && apk del .fetch-deps .build-deps \ && rm -rf /build +# -------------------------------------- +# Build TimescaleDB 1.7.2 +# -------------------------------------- +# Fix versions +ENV TIMESCALEDB_VERSION 1.7.2 +# Enable this if you only want the OSS parts +#ENV OSS_ONLY -DAPACHE_ONLY=1 +RUN 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 \ + libc-dev \ + make \ + cmake \ + util-linux-dev\ + && cd /build/timescaledb && rm -fr build \ + && git checkout ${TIMESCALEDB_VERSION} \ + && ./bootstrap -DREGRESS_CHECKS=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 # -------------------------------------- # Build pgAgent