Use postgreSQL 14 as postgres Docker image

PostgreSQL 13 will reach its end-of-life on November 13, 2025. So we're
upgrading before that happens.

We're also upgrading to PostgreSQL 14 in our CI. In this case, we're
using the default distribution (Trixie, as of October 2025); it doesn't
affect the development or production environments, so it's OK if use the
default one.
This commit is contained in:
Javi Martín
2025-10-16 18:04:27 +02:00
parent 9533029eb9
commit 210a91bd8f
6 changed files with 6 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-24.04
services:
postgres:
image: postgres:13.16
image: postgres:14.19
ports: ["5432:5432"]
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:

View File

@@ -19,7 +19,7 @@ jobs:
timeout-minutes: 60
services:
postgres:
image: postgres:13.16
image: postgres:14.19
ports: ["5432:5432"]
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:

View File

@@ -6,7 +6,7 @@ tests:
image: "ruby:3.3.8"
stage: test
services:
- postgres:13.16
- postgres:14.19
cache:
key: consul
paths:

View File

@@ -4,7 +4,7 @@ services:
# use the preferred version of the official Postgres image
# see https://hub.docker.com/_/postgres/
image: postgres:13.16-bookworm
image: postgres:14.19-bookworm
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD

View File

@@ -93,7 +93,7 @@ You should see an output similar to this:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
603ec83b78a6 consuldemocracy-app "./docker-entrypoint…" 23 seconds ago Up 22 seconds consuldemocracy-app-run-afb6d68e2d99
d57fdd9637d6 postgres:13.16 "docker-entrypoint.s…" 50 minutes ago Up 22 seconds 5432/tcp consuldemocracy-database-1
d57fdd9637d6 postgres:14.19 "docker-entrypoint.s…" 50 minutes ago Up 22 seconds 5432/tcp consuldemocracy-database-1
```
## Running tests with RSpec

View File

@@ -93,7 +93,7 @@ Deberías obtener algo similar a:
```bash
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
603ec83b78a6 consuldemocracy-app "./docker-entrypoint…" 23 seconds ago Up 22 seconds consuldemocracy-app-run-afb6d68e2d99
d57fdd9637d6 postgres:13.16 "docker-entrypoint.s…" 50 minutes ago Up 22 seconds 5432/tcp consuldemocracy-database-1
d57fdd9637d6 postgres:14.19 "docker-entrypoint.s…" 50 minutes ago Up 22 seconds 5432/tcp consuldemocracy-database-1
```
## Ejecutar tests con RSpec