You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by st...@apache.org on 2019/01/02 23:17:29 UTC

[openjpa] 03/03: OPENJPA-2753 improve postgresql docker setup

This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openjpa.git

commit d25ed12902c1ee4f156e6aba2b715de148be131c
Author: Mark Struberg <st...@apache.org>
AuthorDate: Thu Jan 3 00:17:03 2019 +0100

    OPENJPA-2753 improve postgresql docker setup
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index a0b5f9f..c80e4a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -776,7 +776,7 @@
                 <openjpa.postgresql.dbname>openjpatst</openjpa.postgresql.dbname>
                 <openjpa.postgresql.username>postgres</openjpa.postgresql.username>
                 <openjpa.postgresql.password>postgres</openjpa.postgresql.password>
-                <openjpa.postgresql.url>jdbc:postgresql://localhost/${openjpa.postgresql.dbname}</openjpa.postgresql.url>
+                <openjpa.postgresql.url>jdbc:postgresql://localhost:${docker.external.postgresql.port}/${openjpa.postgresql.dbname}</openjpa.postgresql.url>
 
                 <!--<connection.url>jdbc:postgresql://localhost/openjpa</connection.url>-->
                 <connection.url>${openjpa.postgresql.url}</connection.url>
@@ -785,7 +785,7 @@
                 <jdbc.DBDictionary />
 
                 <!-- DBCP overrides -->
-                <dbcp.maxIdle>5</dbcp.maxIdle>
+                <dbcp.maxIdle>20</dbcp.maxIdle>
                 <dbcp.minIdle>0</dbcp.minIdle>
                 <dbcp.maxTotal>20</dbcp.maxTotal>