File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ RUN go build -o dist/bin/trek .
1414
1515
1616FROM alpine:latest AS release
17- RUN apk add postgresql-client bash
17+ # Install PostgreSQL 18 client (must match embedded postgres version)
18+ RUN apk add postgresql18-client bash
1819COPY --from=build /trek/dist/bin/trek /usr/local/bin/trek
1920
2021RUN adduser -D -u 1001 unprivileged
Original file line number Diff line number Diff line change @@ -16,11 +16,18 @@ RUN go build -o dist/bin/trek .
1616FROM ghcr.io/printeers/pgmodeler:latest AS release
1717COPY --from=build /trek/dist/bin/trek /usr/local/bin/trek
1818
19+ # Install PostgreSQL 18 client (must match embedded postgres version)
1920RUN apt update && \
2021 apt upgrade -y && \
2122 apt install -y \
22- bash \
23- postgresql-client \
23+ bash \
24+ curl \
25+ ca-certificates \
26+ && install -d /usr/share/postgresql-common/pgdg && \
27+ curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \
28+ echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(. /etc/os-release && echo $VERSION_CODENAME)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
29+ apt update && \
30+ apt install -y postgresql-client-18 \
2431 && rm -rf /var/lib/apt/lists/*
2532
2633RUN groupadd --gid 1001 nonroot && \
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ Trek is an opinionated tool. We built it to do one thing and do it well: convert
1717
1818Trek tries to stay up-to-date with the latest stable version of PostgreSQL. We build trek with the latest stable version of pgModeler.
1919
20+ | Trek version | PostgreSQL | pgModeler |
21+ | --------------| ------------| -----------|
22+ | 0.12.x | 18 | 1.2 |
23+
2024We develop and test Trek on Linux. Trek may work on other platforms via Docker.
2125
2226## Installation
You can’t perform that action at this time.
0 commit comments