Skip to content

Commit 174c14d

Browse files
committed
feat: add pg_repack
1 parent dea39db commit 174c14d

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

Dockerfile

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,22 @@ USER root
9494

9595
# Install runtime dependencies
9696
RUN apt-get update \
97-
&& apt-get install -y --no-install-recommends \
98-
curl \
99-
libcurl4 \
100-
libicu72 \
101-
liblz4-1 \
102-
libzstd1 \
103-
postgresql-18-cron \
104-
&& rm -rf /var/lib/apt/lists/*
97+
&& apt-get install -y --no-install-recommends \
98+
ca-certificates \
99+
curl \
100+
gnupg \
101+
lsb-release \
102+
&& curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
103+
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
104+
&& apt-get update \
105+
&& apt-get install -y --no-install-recommends \
106+
libcurl4 \
107+
libicu72 \
108+
liblz4-1 \
109+
libzstd1 \
110+
postgresql-18-cron \
111+
postgresql-${PG_MAJOR}-repack \
112+
&& rm -rf /var/lib/apt/lists/*
105113

106114
# --- pg_parquet extension ---
107115
COPY --from=builder /usr/lib/postgresql/$PG_MAJOR/lib/pg_parquet* /usr/lib/postgresql/$PG_MAJOR/lib/
@@ -137,4 +145,4 @@ EXPOSE 5432
137145
RUN usermod -u 26 postgres
138146
USER 26
139147

140-
CMD ["postgres", "-c", "shared_preload_libraries=pg_search,pg_cron,pg_parquet"]
148+
CMD ["postgres", "-c", "shared_preload_libraries=pg_search,pg_cron,pg_parquet,pg_repack"]

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ Postgres Container With Some Fun Extensions Installed, namely:
66
- [wal2json](https://github.com/eulerto/wal2json) (disabled till pg18 support)
77
- [pg_cron](https://github.com/citusdata/pg_cron)
88
- [pg_parquet](https://github.com/CrunchyData/pg_parquet)
9+
- [pg_repack](https://github.com/reorg/pg_repack)

0 commit comments

Comments
 (0)