Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 787b468

Browse files
committed
Add the PostgreSQL jsquery extension
1 parent 808f3fd commit 787b468

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docker/Dockerfile

+10-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ RUN addgroup -S rabbitmq && \
2424
# Install Git, Go, Memcached, Minio, and PostgreSQL
2525
RUN apk update && \
2626
apk upgrade && \
27-
apk add --no-cache ca-certificates 'curl>7.61.0' file git go libc-dev make memcached minio openssl openssl-dev postgresql shadow yarn
27+
apk add --no-cache bison ca-certificates 'curl>7.61.0' file flex git go libc-dev make memcached minio openssl openssl-dev postgresql postgresql-dev shadow yarn
28+
29+
# Add PostgreSQL jsquery extension
30+
RUN mkdir /install && \
31+
cd /install && \
32+
git clone https://github.com/postgrespro/jsquery.git && \
33+
cd jsquery && \
34+
make USE_PGXS=1 && \
35+
make USE_PGXS=1 install
2836

2937
# Create the DBHub.io OS user
3038
RUN addgroup dbhub && \
@@ -49,7 +57,7 @@ RUN echo "echo export PGDATA=/var/lib/postgresql/data > ~postgres/.profile" >> /
4957
echo "usermod -s /bin/sh memcached" >> /usr/local/bin/init.sh && \
5058
echo "usermod -s /bin/sh minio" >> /usr/local/bin/init.sh && \
5159
echo "su - postgres -c '/usr/libexec/postgresql/pg_ctl start'" >> /usr/local/bin/init.sh && \
52-
echo "createuser -U postgres -d dbhub" >> /usr/local/bin/init.sh && \
60+
echo "createuser -U postgres -ds dbhub" >> /usr/local/bin/init.sh && \
5361
echo "createdb -U postgres -O dbhub dbhub" >> /usr/local/bin/init.sh && \
5462
echo "su - dbhub -c 'psql dbhub < ${DBHUB_SOURCE}/database/dbhub.sql'" >> /usr/local/bin/init.sh && \
5563
echo "su - memcached -c '/usr/bin/memcached -d'" >> /usr/local/bin/init.sh && \

0 commit comments

Comments
 (0)