Skip to content

Commit 6fdf029

Browse files
committed
added support for hypopg
1 parent dcf1338 commit 6fdf029

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

9.6/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,18 @@ ENV PGDATA /var/lib/postgresql/data
133133
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
134134
VOLUME /var/lib/postgresql/data
135135

136+
137+
RUN apt-get update && apt-get install -y git wget zip postgresql-server-dev-9.6 build-essential
138+
139+
# HypoPG is a PostgreSQL extension, adding support for Hypothetical Indexes. It’s compatible with PostgreSQL 9.2 and above.
140+
# it is used by the latest version of SIDES
141+
RUN cd /usr/local/src && \
142+
wget https://github.com/HypoPG/hypopg/archive/master.zip && \
143+
unzip master.zip && \
144+
cd /usr/local/src/hypopg-master && \
145+
make && \
146+
make install
147+
136148
COPY docker-entrypoint.sh /usr/local/bin/
137149
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
138150
ENTRYPOINT ["docker-entrypoint.sh"]

0 commit comments

Comments
 (0)