diff --git a/Makefile b/Makefile index b8d6985..9aa0efa 100644 --- a/Makefile +++ b/Makefile @@ -32,3 +32,29 @@ latest-changes.md: Changes # previous upgrade scripts sql/$(EXTENSION)--0.1.6.sql: sql/$(EXTENSION).sql cat $^ > $@ + +install-tembo-ivm: + git clone https://github.com/tembo-io/pg_ivm.git && \ + cd pg_ivm && \ + make && make install && \ + cd .. && rm -rf pg_ivm + +install-pg-partman: + git clone https://github.com/pgpartman/pg_partman.git && \ + cd pg_partman && \ + make && make install && \ + cd .. && rm -rf pg_partman + +install-pg-cron: + git clone https://github.com/citusdata/pg_cron.git && \ + cd pg_cron && \ + make && make install && \ + cd .. && rm -rf pg_cron + +install-hydra: + git clone https://github.com/hydradatabase/hydra && \ + cd hydra/columnar && \ + ./configure && \ + make && make install + +install-dependencies: install-tembo-ivm install-pg-partman install-pg-cron install-hydra diff --git a/test/expected/basic_usage.out b/test/expected/basic_usage.out index cfdb6d5..8cc6381 100644 --- a/test/expected/basic_usage.out +++ b/test/expected/basic_usage.out @@ -2,6 +2,7 @@ CREATE EXTENSION timeseries CASCADE; NOTICE: installing required extension "columnar" NOTICE: installing required extension "pg_cron" +NOTICE: installing required extension "pg_ivm" NOTICE: installing required extension "pg_partman" CREATE TABLE simple (); SELECT enable_ts_table('simple'); diff --git a/timeseries-pg/Dockerfile b/timeseries-pg/Dockerfile index 64fcf4a..afdecc9 100644 --- a/timeseries-pg/Dockerfile +++ b/timeseries-pg/Dockerfile @@ -35,7 +35,8 @@ RUN apt install -y libcurl4-openssl-dev liblz4-dev libzstd-dev autoconf RUN git clone https://github.com/hydradatabase/hydra && \ cd hydra/columnar && \ ./configure && \ - make && make install + make && make install && \ + cd ../.. && rm -rf hydra # build and install timeseries COPY . .