From d016115bb1e77ecfc55b4e52686e1cd1cebc61a3 Mon Sep 17 00:00:00 2001 From: Pierre Laporte Date: Thu, 24 Apr 2025 10:34:21 +0200 Subject: [PATCH] Add missing postgres driver in getting-started When Polaris is built using the provided command, the docker-compose deployment cannot start given that the postgresql driver is not bundled in the Docker image. The following error can be seen during the bootstrap operation. ``` polaris-bootstrap-1 | Caused by: java.sql.SQLException: No suitable driver found for jdbc:postgresql://postgres:5432/POLARIS polaris-bootstrap-1 | at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:708) polaris-bootstrap-1 | at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:191) polaris-bootstrap-1 | at org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:102) polaris-bootstrap-1 | ... 40 more polaris-bootstrap-1 | Bootstrap encountered errors during operation. polaris-bootstrap-1 | 2025-04-24 08:29:53,602 INFO [io.quarkus] (main) Apache Polaris Admin Tool (incubating) stopped in 0.003s ``` The `-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4` must be used at build time so that the postgres driver is included in the docker image. This commit addresses that. --- getting-started/eclipselink/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/getting-started/eclipselink/README.md b/getting-started/eclipselink/README.md index 29c75adc9e..3b6d6ecda4 100644 --- a/getting-started/eclipselink/README.md +++ b/getting-started/eclipselink/README.md @@ -30,6 +30,7 @@ This example requires `jq` to be installed on your machine. :polaris-quarkus-server:quarkusAppPartsBuild --rerun \ :polaris-quarkus-admin:assemble \ :polaris-quarkus-admin:quarkusAppPartsBuild --rerun \ + -PeclipseLinkDeps=org.postgresql:postgresql:42.7.5 \ -Dquarkus.container-image.tag=postgres-latest \ -Dquarkus.container-image.build=true ```