Skip to content

Commit 6d6f3c0

Browse files
committed
Upgrade version of postgresql-client in the docker builds
1 parent 3deb338 commit 6d6f3c0

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ RUN go build -o dist/bin/trek .
1414

1515

1616
FROM 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
1819
COPY --from=build /trek/dist/bin/trek /usr/local/bin/trek
1920

2021
RUN adduser -D -u 1001 unprivileged

Dockerfile.pgmodeler

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,18 @@ RUN go build -o dist/bin/trek .
1616
FROM ghcr.io/printeers/pgmodeler:latest AS release
1717
COPY --from=build /trek/dist/bin/trek /usr/local/bin/trek
1818

19+
# Install PostgreSQL 18 client (must match embedded postgres version)
1920
RUN 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

2633
RUN groupadd --gid 1001 nonroot && \

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Trek is an opinionated tool. We built it to do one thing and do it well: convert
1717

1818
Trek 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+
2024
We develop and test Trek on Linux. Trek may work on other platforms via Docker.
2125

2226
## Installation

0 commit comments

Comments
 (0)