[Lada-commits] [PATCH] Package versions of Postgres and Postgres-JDBC do not match in jessie

Wald Commits scm-commit at wald.intevation.org
Tue Nov 3 12:06:40 CET 2015


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1446548774 -3600
# Node ID 4f9b5500541c6a42623491524d78e84c73f043a5
# Parent  87cd499122abcca2c35a681f045e4f351d446337
Package versions of Postgres and Postgres-JDBC do not match in jessie.

diff -r 87cd499122ab -r 4f9b5500541c Dockerfile
--- a/Dockerfile	Tue Nov 03 09:33:49 2015 +0100
+++ b/Dockerfile	Tue Nov 03 12:06:14 2015 +0100
@@ -19,7 +19,7 @@
 # install packages
 #
 RUN apt-get update -y && \
-    apt-get install -y libpostgresql-jdbc-java libpostgis-java libjts-java \
+    apt-get install -y libpostgis-java libjts-java \
             maven
 
 #
@@ -47,8 +47,10 @@
 # Wildfly setup specific for LADA
 #
 RUN mkdir -p $JBOSS_HOME/modules/org/postgres/main
-RUN ln -s /usr/share/java/postgresql-jdbc4-9.2.jar \
-       $JBOSS_HOME/modules/org/postgres/main/
+
+RUN curl https://jdbc.postgresql.org/download/postgresql-9.4-1204.jdbc41.jar >\
+         $JBOSS_HOME/modules/org/postgres/main/postgresql-9.4-1204.jdbc41.jar
+
 RUN ln -s /usr/share/java/postgis-jdbc-2.1.4.jar \
        $JBOSS_HOME/modules/org/postgres/main/
 RUN ln -s /usr/share/java/jts-1.11.jar \
diff -r 87cd499122ab -r 4f9b5500541c wildfly/postgres-module.xml
--- a/wildfly/postgres-module.xml	Tue Nov 03 09:33:49 2015 +0100
+++ b/wildfly/postgres-module.xml	Tue Nov 03 12:06:14 2015 +0100
@@ -4,7 +4,7 @@
 
     <resources>
         <resource-root path="postgis-jdbc-2.1.4.jar"/>
-        <resource-root path="postgresql-jdbc4-9.2.jar"/>
+        <resource-root path="postgresql-9.4-1204.jdbc41.jar"/>
     </resources>
 
     <dependencies>


More information about the Lada-commits mailing list