Upgrade to Postgres 16. During upgrade migrate also configuration files
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2026-03-29 21:08:08 +00:00
parent 7fa9bb87d5
commit 7bb9f0d5f9
2 changed files with 17 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ RUN go mod download
RUN mkdir bin/ && go build -o bin/ ./...
FROM postgis/postgis:15-master
FROM postgis/postgis:16-master
COPY --from=builder /usr/local/src/pg_autoconfig/bin/pg_autoconfig /
@@ -15,9 +15,9 @@ COPY upgrade-entrypoint.sh /
RUN localedef -i cs_CZ -c -f UTF-8 -A /usr/share/locale/locale.alias cz_CZ.UTF-8 && \
apt-get update && apt-get install -y \
postgresql-15 postgresql-client-15 postgresql-15-auto-failover pg-auto-failover-cli postgresql-15-pgvector \
postgresql-16 postgresql-client-16 postgresql-16-auto-failover pg-auto-failover-cli postgresql-16-pgvector \
# Include previous postgres version to allow automatic upgrade
postgresql-14 postgresql-14-postgis-3 postgresql-14-pgvector && \
postgresql-15 postgresql-15-postgis-3 postgresql-15-pgvector && \
rm -rf /var/lib/apt/lists/* && \
chmod +x /upgrade-entrypoint.sh