Skip to content

Commit e9154dc

Browse files
committed
Raise minimum supported PostgreSQL version to 13
Also ensure that tests are executed against this minimum supported version. Closes #1724 Signed-off-by: nscuro <nscuro@protonmail.com>
1 parent 85b3c0d commit e9154dc

File tree

7 files changed

+14
-3
lines changed

7 files changed

+14
-3
lines changed

commons-persistence/src/test/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ quarkus.hibernate-orm.quote-identifiers.strategy=all
99
# Hibernate should only validate that the existing schema matches our entity classes,
1010
# but it should never generate a schema by itself.
1111
quarkus.hibernate-orm.database.generation=validate
12+
quarkus.datasource.devservices.image-name=postgres:13-alpine
1213
quarkus.datasource.devservices.init-script-path=schema.sql

docs/operations/database.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Dependency-Track requires a [PostgreSQL], or PostgreSQL-compatible database to operate.
22

3-
The lowest supported version is 11. You are encouraged to use the [newest available version].
3+
The lowest supported version is 13. You are encouraged to use the [newest available version].
44

55
Depending on available resources, individual preferences, or organizational policies,
66
you will have to choose between a [managed](#managed-solutions), or [self-hosted](#self-hosting) solution.
@@ -91,7 +91,7 @@ For example:
9191
```yaml
9292
services:
9393
postgres:
94-
image: postgres:16
94+
image: postgres:17
9595
command: >-
9696
-c 'shared_buffers=2GB'
9797
-c 'effective_cache_size=6GB'

e2e/src/test/java/org/dependencytrack/e2e/AbstractE2ET.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
public class AbstractE2ET {
5656

57-
protected static DockerImageName POSTGRES_IMAGE = DockerImageName.parse("postgres:15-alpine");
57+
protected static DockerImageName POSTGRES_IMAGE = DockerImageName.parse("postgres:13-alpine");
5858
protected static DockerImageName REDPANDA_IMAGE = DockerImageName.parse("docker.redpanda.com/redpandadata/redpanda:v24.2.17");
5959
protected static DockerImageName API_SERVER_IMAGE = DockerImageName.parse("ghcr.io/dependencytrack/hyades-apiserver")
6060
.withTag(Optional.ofNullable(System.getenv("APISERVER_VERSION")).orElse("snapshot"));

mirror-service/src/main/resources/application.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ quarkus.kafka.devservices.topic-partitions."dtrack.epss"=1
248248
# @hidden
249249
%dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack
250250

251+
# @category: Database
252+
# @hidden
253+
quarkus.datasource.devservices.image-name=postgres:13-alpine
254+
251255
# @category: Database
252256
# @hidden
253257
quarkus.datasource.devservices.init-script-path=schema.sql

notification-publisher/src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ quarkus.hibernate-orm.database.generation=validate
5656
%dev.quarkus.datasource.username=dtrack
5757
%dev.quarkus.datasource.password=dtrack
5858
%dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack
59+
quarkus.datasource.devservices.image-name=postgres:13-alpine
5960
quarkus.datasource.devservices.init-script-path=schema.sql
6061

6162
quarkus.hibernate-orm.active=true

repository-meta-analyzer/src/main/resources/application.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ quarkus.hibernate-orm.database.generation=validate
259259
# @hidden
260260
%dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack
261261

262+
# @category: Database
263+
# @hidden
264+
quarkus.datasource.devservices.image-name=postgres:13-alpine
265+
262266
# @category: Database
263267
# @hidden
264268
quarkus.datasource.devservices.init-script-path=schema.sql

vulnerability-analyzer/src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ quarkus.hibernate-orm.database.generation=validate
160160
%dev.quarkus.datasource.username=dtrack
161161
%dev.quarkus.datasource.password=dtrack
162162
%dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack
163+
quarkus.datasource.devservices.image-name=postgres:13-alpine
163164
quarkus.datasource.devservices.init-script-path=schema.sql
164165
#%dev.quarkus.hibernate-orm.log.sql=true
165166
quarkus.hibernate-orm.active=true

0 commit comments

Comments
 (0)