diff --git a/commons-persistence/src/test/resources/application.properties b/commons-persistence/src/test/resources/application.properties index 828881e90d..10c23d8fa6 100644 --- a/commons-persistence/src/test/resources/application.properties +++ b/commons-persistence/src/test/resources/application.properties @@ -9,4 +9,5 @@ quarkus.hibernate-orm.quote-identifiers.strategy=all # Hibernate should only validate that the existing schema matches our entity classes, # but it should never generate a schema by itself. quarkus.hibernate-orm.database.generation=validate +quarkus.datasource.devservices.image-name=postgres:13-alpine quarkus.datasource.devservices.init-script-path=schema.sql \ No newline at end of file diff --git a/docs/getting-started/upgrading.md b/docs/getting-started/upgrading.md index c35634ed78..11e10acce3 100644 --- a/docs/getting-started/upgrading.md +++ b/docs/getting-started/upgrading.md @@ -32,11 +32,15 @@ Refer to the [kafka configuration reference] for details. Example of name change | `GET /api/v1/tag/{policyUuid}` | `GET /api/v1/tag/policy/{uuid}` | | `GET /api/v1/bom/token/{uuid}` | `GET /api/v1/event/token/{uuid}` | +* The minimum supported PostgreSQL version has been raised from 11 to 13 ([hyades/#1724]). + Lower versions may still work, but are no longer tested against. + [apiserver/#840]: https://github.com/DependencyTrack/hyades-apiserver/pull/840 [apiserver/#888]: https://github.com/DependencyTrack/hyades-apiserver/pull/888 [apiserver/#904]: https://github.com/DependencyTrack/hyades-apiserver/pull/904 [apiserver/#910]: https://github.com/DependencyTrack/hyades-apiserver/pull/910 [hyades/#1392]: https://github.com/DependencyTrack/hyades/issues/1392 +[hyades/#1724]: https://github.com/DependencyTrack/hyades/issues/1724 [kafka configuration reference]: ../reference/configuration/api-server.md#kafka [task scheduling configuration reference]: ../reference/configuration/api-server.md#task-scheduling diff --git a/docs/operations/database.md b/docs/operations/database.md index dadebc09b9..707e01e4cc 100644 --- a/docs/operations/database.md +++ b/docs/operations/database.md @@ -1,6 +1,6 @@ Dependency-Track requires a [PostgreSQL], or PostgreSQL-compatible database to operate. -The lowest supported version is 11. You are encouraged to use the [newest available version]. +The lowest supported version is 13. You are encouraged to use the [newest available version]. Depending on available resources, individual preferences, or organizational policies, you will have to choose between a [managed](#managed-solutions), or [self-hosted](#self-hosting) solution. @@ -91,7 +91,7 @@ For example: ```yaml services: postgres: - image: postgres:16 + image: postgres:17 command: >- -c 'shared_buffers=2GB' -c 'effective_cache_size=6GB' diff --git a/e2e/src/test/java/org/dependencytrack/e2e/AbstractE2ET.java b/e2e/src/test/java/org/dependencytrack/e2e/AbstractE2ET.java index 473b9700cb..aa94a702f1 100644 --- a/e2e/src/test/java/org/dependencytrack/e2e/AbstractE2ET.java +++ b/e2e/src/test/java/org/dependencytrack/e2e/AbstractE2ET.java @@ -54,7 +54,7 @@ public class AbstractE2ET { - protected static DockerImageName POSTGRES_IMAGE = DockerImageName.parse("postgres:15-alpine"); + protected static DockerImageName POSTGRES_IMAGE = DockerImageName.parse("postgres:13-alpine"); protected static DockerImageName REDPANDA_IMAGE = DockerImageName.parse("docker.redpanda.com/redpandadata/redpanda:v24.2.17"); protected static DockerImageName API_SERVER_IMAGE = DockerImageName.parse("ghcr.io/dependencytrack/hyades-apiserver") .withTag(Optional.ofNullable(System.getenv("APISERVER_VERSION")).orElse("snapshot")); diff --git a/mirror-service/src/main/resources/application.properties b/mirror-service/src/main/resources/application.properties index 8b4c731dec..9e3bddd8af 100644 --- a/mirror-service/src/main/resources/application.properties +++ b/mirror-service/src/main/resources/application.properties @@ -248,6 +248,10 @@ quarkus.kafka.devservices.topic-partitions."dtrack.epss"=1 # @hidden %dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack +# @category: Database +# @hidden +quarkus.datasource.devservices.image-name=postgres:13-alpine + # @category: Database # @hidden quarkus.datasource.devservices.init-script-path=schema.sql diff --git a/notification-publisher/src/main/resources/application.properties b/notification-publisher/src/main/resources/application.properties index c129222ca9..f45ebe387e 100644 --- a/notification-publisher/src/main/resources/application.properties +++ b/notification-publisher/src/main/resources/application.properties @@ -56,6 +56,7 @@ quarkus.hibernate-orm.database.generation=validate %dev.quarkus.datasource.username=dtrack %dev.quarkus.datasource.password=dtrack %dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack +quarkus.datasource.devservices.image-name=postgres:13-alpine quarkus.datasource.devservices.init-script-path=schema.sql quarkus.hibernate-orm.active=true diff --git a/repository-meta-analyzer/src/main/resources/application.properties b/repository-meta-analyzer/src/main/resources/application.properties index 32bac30524..641ac870a1 100644 --- a/repository-meta-analyzer/src/main/resources/application.properties +++ b/repository-meta-analyzer/src/main/resources/application.properties @@ -259,6 +259,10 @@ quarkus.hibernate-orm.database.generation=validate # @hidden %dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack +# @category: Database +# @hidden +quarkus.datasource.devservices.image-name=postgres:13-alpine + # @category: Database # @hidden quarkus.datasource.devservices.init-script-path=schema.sql diff --git a/vulnerability-analyzer/src/main/resources/application.properties b/vulnerability-analyzer/src/main/resources/application.properties index abc165c67c..8b54893296 100644 --- a/vulnerability-analyzer/src/main/resources/application.properties +++ b/vulnerability-analyzer/src/main/resources/application.properties @@ -160,6 +160,7 @@ quarkus.hibernate-orm.database.generation=validate %dev.quarkus.datasource.username=dtrack %dev.quarkus.datasource.password=dtrack %dev.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/dtrack +quarkus.datasource.devservices.image-name=postgres:13-alpine quarkus.datasource.devservices.init-script-path=schema.sql #%dev.quarkus.hibernate-orm.log.sql=true quarkus.hibernate-orm.active=true