-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM rust:1.70-bookworm as builder | ||
|
||
ARG TRUNK_VER=0.8.7 | ||
|
||
RUN cargo install --version $TRUNK_VER pg-trunk | ||
|
||
FROM postgres:bookworm | ||
|
||
COPY --from=builder /usr/local/cargo/bin/trunk /usr/bin/trunk | ||
|
||
ARG PGMQ_VER=0.11.2 | ||
RUN apt-get update \ | ||
&& apt-get install -y ca-certificates | ||
|
||
RUN trunk install pg_partman --version 4.7.3 | ||
RUN trunk install pgmq --version $PGMQ_VER | ||
|
||
COPY ./postgresql.conf /usr/share/postgresql/15/postgresql.conf.sample | ||
|
||
USER postgres | ||
CMD ["postgres"] |