Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I bundle the Oracle JDBC driver JAR in a Docker image?

I'm building Docker images based on the official Docker Tomcat images, where in addition to Tomcat, I add one of our web applications as a WAR file so it gets deployed when the container starts.

Since the application requires access to a database, and the supported databases use different JDBC drivers and some additional configuration files, I'm building one image per supported database (all based on a common base image), where the image contains the respective database configuration and JDBC driver JAR.

So far, I have done this for MySQL and PostgreSQL, and I'm now looking at support for Oracle.

Since Oracle is a commercial product, and I read somewhere (sorry, no official source) that you're not allowed to bundle the JDBC drivers - what's the best solution for this?

Am I permitted/allowed to bundle the Oracle JDBC driver JAR in a Docker image that I make available to our internal users (not outside of the company)? Or do I have to ask users to download the driver themselves and map it into the image?

like image 557
nwinkler Avatar asked Nov 30 '25 16:11

nwinkler


1 Answers

When you need an Oracle jdbc driver inside a war, you provide the service for your users without asking Oracle and without asking your users to accept the license, so it should not be different for a Docker image.

Now if you are distributing the driver packaged into your own software (not only the service), I guess Oracle requires you to contact them :

"Can third party vendors distribute Oracle's JDBC drivers along with their own software?

If you are a third party software company (and Oracle partner) then please check out Oracle's licensing terms spelled out at Oracle Licensing Agreement Please contact your local Oracle sales rep for more details."

source : http://www.oracle.com/technetwork/topics/jdbc-faq-090281.html

like image 109
Tristan Avatar answered Dec 02 '25 06:12

Tristan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!