Skip to content

Commit d101a3a

Browse files
committed
feat: install extensions
1 parent 93c4635 commit d101a3a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ ENV PG14BIN=/usr/lib/postgresql/14/bin
9999
ENV PG15BIN=/usr/lib/postgresql/15/bin
100100
ENV PG16BIN=/usr/lib/postgresql/16/bin
101101
ENV PG17BIN=/usr/lib/postgresql/17/bin
102+
ENV PG_VERSION=17
103+
104+
RUN curl -fsSL https://repo.pigsty.io/pig | bash && \
105+
dpkg -i /tmp/pig_0.6.1-1_arm64.deb && \
106+
/usr/bin/pig repo add pigsty --update && \
107+
for ver in 14 15 16 17; do \
108+
/usr/bin/pig install -y --version $ver pgsodium pg_stat_statements pg_partman pg_jsonschema pg_hashids pg_tle pgjwt; \
109+
done && \
110+
apt-get clean && \
111+
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
102112

103113
# Data directory
104114
ENV PGDATA=/var/lib/postgresql/data

0 commit comments

Comments
 (0)