Skip to content

Commit 37d5efc

Browse files
authored
feat: postgresql 14.0 recommanded (#5990)
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
1 parent 96f5e87 commit 37d5efc

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ version: '3'
66

77
services:
88
cds-db:
9-
image: postgres:9.6
9+
image: postgres:14.0
1010
environment:
1111
POSTGRES_PASSWORD: cds
1212
POSTGRES_USER: cds
1313
POSTGRES_DB: cds
1414

1515
cds-db-init:
16-
image: postgres:9.6
16+
image: postgres:14.0
1717
command: >
1818
sh -exc "
1919
PGPASSWORD=cds psql -h cds-db -p 5432 -U cds -d cds -c \"CREATE SCHEMA IF NOT EXISTS cdn AUTHORIZATION cds;\";"

docs/content/development/contribute/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If you are familiar with these different tools, you probably will not need to re
1818

1919
## PostgreSQL
2020

21-
Download PostgreSQL from https://www.postgresql.org/download/, version >= 9.6.
21+
Download PostgreSQL from https://www.postgresql.org/download/, version >= 9.6. Version 14.0 recommanded
2222

2323
You can easily use only PostgreSQL binaries, downloaded from https://www.enterprisedb.com/download-postgresql-binaries.
2424

docs/content/hosting/ready-to-run/docker-compose/full-example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ fe2fcbee96aa ovhcom/cds-engine:latest "sh -c
276276
f2eb7b8c4329 ovhcom/cds-engine:latest "sh -c '/app/cds-eng…" 35 seconds ago Up 33 seconds (healthy) debian_cds-elasticsearch_1
277277
22dc66a1b2a2 ovhcom/cds-engine:latest "sh -c '/app/cds-eng…" 35 seconds ago Up 33 seconds (healthy) debian_cds-hatchery-swarm_1
278278
958ab1703f16 ovhcom/cds-engine:latest "sh -c '/app/cds-eng…" 39 seconds ago Up 39 seconds (healthy) 0.0.0.0:8081->8081/tcp debian_cds-api_1
279-
9223395500ab postgres:9.6 "docker-entrypoint.s…" 2 minutes ago Up About a minute 5432/tcp debian_cds-db_1
279+
9223395500ab postgres:14.0 "docker-entrypoint.s…" 2 minutes ago Up About a minute 5432/tcp debian_cds-db_1
280280
c9b58ce83003 docker.elastic.co/elasticsearch/elasticsearch:6.7.2 "/usr/local/bin/dock…" 2 minutes ago Up About a minute 9200/tcp, 9300/tcp debian_elasticsearch_1
281281
08cfe15c3e2c bobrik/socat "socat TCP4-LISTEN:2…" 2 minutes ago Up About a minute 127.0.0.1:2375->2375/tcp debian_dockerhost_1
282282
fc2ac075c000 redis:alpine "docker-entrypoint.s…" 2 minutes ago Up About a minute 6379/tcp debian_cds-cache_1

docs/content/hosting/ready-to-run/from-binaries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This article contains the steps to start CDS locally, with API, UI and a local H
1414
## Prerequisite
1515

1616
- a Redis
17-
- a PostgreSQL 9.6 min
17+
- a PostgreSQL 9.6 min (Version 14.0 recommanded)
1818

1919
## Get the latest release from GitHub
2020

@@ -80,7 +80,7 @@ You can edit the section `api.database` in `conf.toml` file if needed.
8080
If it's just for test purpose, you can start a postgreSQL database with docker, as:
8181

8282
```bash
83-
docker run --name cds-db -e POSTGRES_PASSWORD=cds -e POSTGRES_USER=cds -e POSTGRES_DB=cds -p 127.0.0.1:5432:5432 -d postgres:9.6
83+
docker run --name cds-db -e POSTGRES_PASSWORD=cds -e POSTGRES_USER=cds -e POSTGRES_DB=cds -p 127.0.0.1:5432:5432 -d postgres:14.0
8484
```
8585

8686
```bash

docs/content/hosting/requirements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ There is are two ways to set up CDS:
1616

1717
## CDS API Third-parties
1818

19-
At the minimum, CDS needs a PostgreSQL database >= 9.6 and Redis >= 3.2. But for serious usage your may need:
19+
At the minimum, CDS needs a PostgreSQL database >= 9.6 (version 14.0 recommanded) and Redis >= 3.2. But for serious usage your may need:
2020

2121
- A [Redis](https://redis.io) server or sentinels based cluster used as a cache and session store
2222
- A LDAP Server for authentication

engine/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ TEST_CDN_DB_CREATE_SCHEMA = PGPASSWORD=${TEST_DB_PASS} psql -h ${TEST_DB_HOST} -
3838
TEST_CDN_DB_INIT = ./engine database upgrade --db-host $(TEST_DB_HOST) --db-port $(TEST_DB_PORT) --db-user $(TEST_DB_USER) --db-password $(TEST_DB_PASS) --db-name $(TEST_DB_NAME) --db-schema $(TEST_CDN_DB_SCHEMA) --db-sslmode disable --migrate-dir ./sql/cdn
3939

4040
TEST_DB_STOP_DOCKER = docker rm -f postgres-cds
41-
TEST_DB_START_DOCKER = docker run -d -p $(TEST_DB_PORT):5432 -e POSTGRES_PASSWORD=$(TEST_DB_PASS) -e POSTGRES_USER=$(TEST_DB_USER) -e POSTGRES_DB=$(TEST_DB_NAME) --name postgres-cds postgres:9.6
41+
TEST_DB_START_DOCKER = docker run -d -p $(TEST_DB_PORT):5432 -e POSTGRES_PASSWORD=$(TEST_DB_PASS) -e POSTGRES_USER=$(TEST_DB_USER) -e POSTGRES_DB=$(TEST_DB_NAME) --name postgres-cds postgres:14.0
4242

4343
TEST_REDIS_PORT = 6379
4444
TEST_REDIS_HOST = $(if ${CDS_CACHE_REDIS_HOST},${CDS_CACHE_REDIS_HOST},localhost:$(TEST_REDIS_PORT))

tests/fixtures/04SCWorkflowRunSimpleService/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
requirements:
2020
- service:
2121
name: mypg
22-
value: postgres:9.6 POSTGRES_USER=foo POSTGRES_PASSWORD=bar
22+
value: postgres:14.0 POSTGRES_USER=foo POSTGRES_PASSWORD=bar
2323
- os-architecture: linux/amd64

0 commit comments

Comments
 (0)