From 639f28a687beb53c533f16697c41fd57fd0da68d Mon Sep 17 00:00:00 2001
From: Vincent Massol <vincent@massol.net>
Date: Fri, 30 Oct 2020 12:06:09 +0100
Subject: [PATCH] [Misc] Upgrade to MySQL 8.0.22 JDBC driver version

---
 template/Dockerfile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/template/Dockerfile b/template/Dockerfile
index 199c6d5..6c3573d 100644
--- a/template/Dockerfile
+++ b/template/Dockerfile
@@ -62,8 +62,10 @@ RUN rm -rf /usr/local/tomcat/webapps/* && \\
 <% if (db == 'mysql') {
   println "# For MYSQL, download the MySQL driver version from the Maven Central repository since there's no up to "
   println "# date Debian repository for it anymore."
-  println "ENV MYSQL_JDBC_VERSION=\"8.0.21\""
-  println "ENV MYSQL_JDBC_SHA256=\"2f62d886270a75ebc8e8fd89127d4a30ccc711f02256ade2cfb7090817132003\""
+  println "ENV MYSQL_JDBC_VERSION=\"8.0.22\""
+  # Get the SHA256 from the JAR at https://search.maven.org/artifact/mysql/mysql-connector-java and using the
+  # command line defined in build.gradle.
+  println "ENV MYSQL_JDBC_SHA256=\"5019defbd12316295e97a6e88f2a9b07f118345a4e982710bba232e499b22f4f\""
   println "ENV MYSQL_JDBC_PREFIX=\"https://repo1.maven.org/maven2/mysql/mysql-connector-java/\${MYSQL_JDBC_VERSION}\""
   println "ENV MYSQL_JDBC_ARTIFACT=\"mysql-connector-java-\${MYSQL_JDBC_VERSION}.jar\""
   println "ENV MYSQL_JDBC_TARGET=\"/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/\${MYSQL_JDBC_ARTIFACT}\""
-- 
GitLab