clintropolis commented on a change in pull request #11402:
URL: https://github.com/apache/druid/pull/11402#discussion_r664913652



##########
File path: integration-tests/docker/Dockerfile
##########
@@ -47,16 +49,21 @@ ADD lib/* /usr/local/druid/lib/
 
 # Download the MySQL Java connector
 # target path must match the exact path referenced in 
environment-configs/common
-RUN wget -q 
"https://repo1.maven.org/maven2/mysql/mysql-connector-java/$MYSQL_VERSION/mysql-connector-java-$MYSQL_VERSION.jar";
 \
-    -O /usr/local/druid/lib/mysql-connector-java.jar
-
+# alternatively: Download the MariaDB Java connector, and pretend it is the 
mysql connector
+RUN if [ "$MYSQL_DRIVER_CLASSNAME" = "com.mysql.jdbc.Driver" ] ; \
+    then wget -q 
"https://repo1.maven.org/maven2/mysql/mysql-connector-java/$MYSQL_VERSION/mysql-connector-java-$MYSQL_VERSION.jar";
 \
+    -O /usr/local/druid/lib/mysql-connector-java.jar; \
+    else wget -q 
"https://repo1.maven.org/maven2/org/mariadb/jdbc/mariadb-java-client/$MARIA_VERSION/mariadb-java-client-$MARIA_VERSION.jar";
 \

Review comment:
       changed to if/else




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to