Bump PostgreSQL JDBC driver to 42.2.5

This commit is contained in:
Disassembler 2018-08-30 18:38:11 +02:00
parent 36c5ebbd78
commit 2eb4a9fa3f
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
2 changed files with 3 additions and 3 deletions

View File

@ -8,8 +8,8 @@ RUN \
&& unzip /tmp/motech.war -d /srv/tomcat/webapps/ROOT \ && unzip /tmp/motech.war -d /srv/tomcat/webapps/ROOT \
# Update Postgres JDBC driver # Update Postgres JDBC driver
&& rm -f /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-9.1-901.jdbc4.jar /srv/tomcat/webapps/ROOT/WEB-INF/bundles/postgresql-9.1-901.jdbc4.jar \ && rm -f /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-9.1-901.jdbc4.jar /srv/tomcat/webapps/ROOT/WEB-INF/bundles/postgresql-9.1-901.jdbc4.jar \
&& wget https://jdbc.postgresql.org/download/postgresql-42.2.2.jar -O /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-42.2.2.jar \ && wget https://jdbc.postgresql.org/download/postgresql-42.2.5.jar -O /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-42.2.5.jar \
&& cp /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-42.2.2.jar /srv/tomcat/webapps/ROOT/WEB-INF/bundles/postgresql-42.2.2.jar \ && cp /srv/tomcat/webapps/ROOT/WEB-INF/lib/postgresql-42.2.5.jar /srv/tomcat/webapps/ROOT/WEB-INF/bundles/postgresql-42.2.5.jar \
# Create OS user # Create OS user
&& addgroup -S -g 8013 motech \ && addgroup -S -g 8013 motech \
&& adduser -S -u 8013 -h /srv/tomcat -s /bin/false -g motech -G motech motech \ && adduser -S -u 8013 -h /srv/tomcat -s /bin/false -g motech -G motech motech \

View File

@ -8,7 +8,7 @@ RUN \
&& unzip /tmp/sigmah.war -d /srv/tomcat/webapps/sigmah \ && unzip /tmp/sigmah.war -d /srv/tomcat/webapps/sigmah \
# Update Postgres JDBC driver # Update Postgres JDBC driver
&& rm /srv/tomcat/webapps/sigmah/WEB-INF/lib/postgresql-9.1-901-1.jdbc4.jar \ && rm /srv/tomcat/webapps/sigmah/WEB-INF/lib/postgresql-9.1-901-1.jdbc4.jar \
&& wget https://jdbc.postgresql.org/download/postgresql-42.2.2.jar -O /srv/tomcat/webapps/sigmah/WEB-INF/lib/postgresql-42.2.2.jar \ && wget https://jdbc.postgresql.org/download/postgresql-42.2.5.jar -O /srv/tomcat/webapps/sigmah/WEB-INF/lib/postgresql-42.2.5.jar \
# Remove logging config # Remove logging config
&& rm /srv/tomcat/webapps/sigmah/WEB-INF/classes/logback.xml \ && rm /srv/tomcat/webapps/sigmah/WEB-INF/classes/logback.xml \
# Create OS user # Create OS user