Skip to content

Instantly share code, notes, and snippets.

@kubaracek
Last active March 7, 2022 16:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kubaracek/597e8d8b1d74c9882796a263aafbe8b1 to your computer and use it in GitHub Desktop.
Save kubaracek/597e8d8b1d74c9882796a263aafbe8b1 to your computer and use it in GitHub Desktop.
TimescaleDB HA with WLTREE extension Dockerfile
FROM timescale/timescaledb-ha:pg12-latest
USER root
RUN apt-get update \
&& apt-get install -y \
git \
build-essential \
musl-dev \
libpq-dev \
postgresql-server-dev-12 \
libicu-dev
RUN cd /home/ \
&& git clone https://github.com/adjust/wltree.git \
&& cd wltree \
&& make
RUN mv /home/wltree/*.sql /usr/share/postgresql/12/extension/
RUN mv /home/wltree/wltree.control /usr/share/postgresql/12/extension/
RUN mv /home/wltree/*.so /usr/lib/postgresql/12/lib/
USER postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment