Skip to content

Commit

Permalink
Update TimescaleDb to 1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans committed Aug 26, 2020
1 parent 9893c34 commit 73eafd8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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..
Expand Down
32 changes: 32 additions & 0 deletions timescaledb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73eafd8

Please sign in to comment.