Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y wget gnupg && \
echo "deb http://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -

# Install PostgreSQL client tools for versions 11–17 and other dependencies
# Install PostgreSQL client tools for versions 11–18 and other dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
Expand All @@ -20,9 +20,10 @@ RUN apt-get update && \
postgresql-client-15 \
postgresql-client-16 \
postgresql-client-17 \
postgresql-client-18 \
python3-pip && \
mkdir -p /opt/postgresql && \
for version in 11 12 13 14 15 16 17; do \
for version in 11 12 13 14 15 16 17 18; do \
ln -s /usr/lib/postgresql/$version/bin/pg_dump /usr/bin/pg_dump-$version && \
ln -s /usr/lib/postgresql/$version/bin/pg_restore /usr/bin/pg_restore-$version; \
done && \
Expand Down
4 changes: 2 additions & 2 deletions postgres/bin/dump-to-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ if [ -z "${SERVER_VERSION:-}" ]; then
fi

if [ -z "$SERVER_VERSION" ]; then
echo "Warning: SERVER_VERSION not detected. Defaulting to version 17 (latest)."
SERVER_VERSION="17"
echo "Warning: SERVER_VERSION not detected. Defaulting to version 18 (latest)."
SERVER_VERSION="18"
fi

PG_DUMP="pg_dump-$SERVER_VERSION"
Expand Down
4 changes: 2 additions & 2 deletions postgres/bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ else
fi

if [ -z "$SERVER_VERSION" ]; then
echo "WARNING: Unable to detect PostgreSQL version. Defaulting to latest (17)."
SERVER_VERSION="17"
echo "WARNING: Unable to detect PostgreSQL version. Defaulting to latest (18)."
SERVER_VERSION="18"
else
echo "Detected PostgreSQL version: $SERVER_VERSION"
fi
Expand Down
4 changes: 2 additions & 2 deletions postgres/bin/load-from-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ if [ -z "${SERVER_VERSION:-}" ]; then
fi

if [ -z "$SERVER_VERSION" ]; then
echo "Warning: SERVER_VERSION not detected. Defaulting to version 17 (latest)."
SERVER_VERSION="17"
echo "Warning: SERVER_VERSION not detected. Defaulting to version 18 (latest)."
SERVER_VERSION="18"
fi

PG_RESTORE="pg_restore-$SERVER_VERSION"
Expand Down