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

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d7d4c405e Jib build - update extraClasspath jdbc driver for jpa-app, 
jpa-smtp-app (#2589)
4d7d4c405e is described below

commit 4d7d4c405e46be89a6d86fb054791dd770121a01
Author: vttran <vtt...@linagora.com>
AuthorDate: Mon Jan 13 10:38:09 2025 +0700

    Jib build - update extraClasspath jdbc driver for jpa-app, jpa-smtp-app 
(#2589)
---
 server/apps/jpa-app/README.adoc             | 2 +-
 server/apps/jpa-app/docker-compose.yml      | 2 +-
 server/apps/jpa-app/pom.xml                 | 1 +
 server/apps/jpa-smtp-app/README.adoc        | 2 +-
 server/apps/jpa-smtp-app/docker-compose.yml | 2 +-
 server/apps/jpa-smtp-app/pom.xml            | 1 +
 6 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/server/apps/jpa-app/README.adoc b/server/apps/jpa-app/README.adoc
index 5fd2733ef5..2a4e3cf739 100644
--- a/server/apps/jpa-app/README.adoc
+++ b/server/apps/jpa-app/README.adoc
@@ -124,7 +124,7 @@ With `jdbc-driver.jar` being the JAR file of your driver, 
placed in the current
 In `james-database.properties`, one can specify any JDBC driver on the class 
path.
 
 With docker, such drivers can be added to the classpath by placing the driver 
JAR in a volume
-and mounting it within `/root/libs` directory.
+and mounting it at `/root/libs/james-jdbc-driver.jar`.
 
 We do ship a 
[docker-compose](https://github.com/apache/james-project/blob/master/server/apps/jpa-smtp-app/docker-compose.yml)
 file demonstrating James JPA app usage with MariaDB. In order to run it:
diff --git a/server/apps/jpa-app/docker-compose.yml 
b/server/apps/jpa-app/docker-compose.yml
index 7f55cdbf44..885565d718 100644
--- a/server/apps/jpa-app/docker-compose.yml
+++ b/server/apps/jpa-app/docker-compose.yml
@@ -15,7 +15,7 @@ services:
     container_name: james
     hostname: james.local
     volumes:
-      - 
$PWD/mariadb-java-client-2.7.2.jar:/root/libs/mariadb-java-client-2.7.2.jar
+      - $PWD/mariadb-java-client-2.7.2.jar:/root/libs/james-jdbc-driver.jar
       - 
$PWD/sample-configuration/james-database-mariadb.properties:/root/conf/james-database.properties
       - $PWD/keystore:/root/conf/keystore
 
diff --git a/server/apps/jpa-app/pom.xml b/server/apps/jpa-app/pom.xml
index 77ff003e3e..e3f1b8c6ab 100644
--- a/server/apps/jpa-app/pom.xml
+++ b/server/apps/jpa-app/pom.xml
@@ -312,6 +312,7 @@
                             <!-- Data for derby database -->
                             <volume>/var/store</volume>
                         </volumes>
+                        
<extraClasspath>/root/libs/james-jdbc-driver.jar</extraClasspath>
                     </container>
                     <extraDirectories>
                         <paths>
diff --git a/server/apps/jpa-smtp-app/README.adoc 
b/server/apps/jpa-smtp-app/README.adoc
index 8f99c3f29f..ca1526a042 100644
--- a/server/apps/jpa-smtp-app/README.adoc
+++ b/server/apps/jpa-smtp-app/README.adoc
@@ -126,7 +126,7 @@ With `jdbc-driver.jar` being the JAR file of your driver, 
placed in the current
 In `james-database.properties`, one can specify any JDBC driver on the class 
path.
 
 With docker, such drivers can be added to the classpath by placing the driver 
JAR in a volume
-and mounting it within `/root/libs` directory.
+and mounting it at `/root/libs/james-jdbc-driver.jar`.
 
 We do ship a 
[docker-compose](https://github.com/apache/james-project/blob/master/server/apps/jpa-smtp-app/docker-compose.yml)
 file demonstrating James JPA app usage with MariaDB. In order to run it:
diff --git a/server/apps/jpa-smtp-app/docker-compose.yml 
b/server/apps/jpa-smtp-app/docker-compose.yml
index 2d22da5255..630fade910 100644
--- a/server/apps/jpa-smtp-app/docker-compose.yml
+++ b/server/apps/jpa-smtp-app/docker-compose.yml
@@ -15,7 +15,7 @@ services:
     container_name: james
     hostname: james.local
     volumes:
-      - 
$PWD/mariadb-java-client-2.7.2.jar:/root/libs/mariadb-java-client-2.7.2.jar
+      - $PWD/mariadb-java-client-2.7.2.jar:/root/libs/james-jdbc-driver.jar
       - 
$PWD/sample-configuration/james-database-mariadb.properties:/root/conf/james-database.properties
       - $PWD/keystore:/root/conf/keystore
 
diff --git a/server/apps/jpa-smtp-app/pom.xml b/server/apps/jpa-smtp-app/pom.xml
index 6b726ea5ad..41ba02af41 100644
--- a/server/apps/jpa-smtp-app/pom.xml
+++ b/server/apps/jpa-smtp-app/pom.xml
@@ -291,6 +291,7 @@
                             <volume>/root/glowroot/data</volume>
                             <volume>/root/extensions-jars</volume>
                         </volumes>
+                        
<extraClasspath>/root/libs/james-jdbc-driver.jar</extraClasspath>
                     </container>
                     <extraDirectories>
                         <paths>


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to