Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Db2 libraries to Docker build #404

Open
sm-shaw opened this issue Aug 5, 2022 · 2 comments
Open

Add Db2 libraries to Docker build #404

sm-shaw opened this issue Aug 5, 2022 · 2 comments
Assignees
Labels
docker docker file and image related enhancement New feature or request

Comments

@sm-shaw
Copy link
Contributor

sm-shaw commented Aug 5, 2022

Libraries for all databases apart from Db2 can be automatically included in the Docker build.

db2lib

Currently, Db2 libraries need to be manually added to the odbc_cli directory. This issue is a placeholder to find a solution to including the Db2 libraries automatically in the Dockerbuild by either finding a suitable location from where they can be officially downloaded as per the other libraries or to include them with the correct permissions from IBM as redistributable in the odbc_cli directory.

@sm-shaw sm-shaw added the enhancement New feature or request label Aug 9, 2022
@sm-shaw sm-shaw added the docker docker file and image related label Jan 26, 2023
@sm-shaw
Copy link
Contributor Author

sm-shaw commented Feb 6, 2023

From consulting this page: https://www.ibm.com/support/pages/db2-odbc-cli-driver-download-and-installation-information a proposed solution is to put a copy of the IBM® Data Server Driver for ODBC and CLI on www.hammerdb.com to be fetched using curl/wget during the build. The SQL Server and Oracle libraries can already be fetched directly from Microsoft and Oracle locations directly.

The guidance at the link above says:
You can include the driver in your database application installation package, and redistribute the driver with your applications. Under certain conditions, you can redistribute the driver with your database applications royalty-free.

This suggests that the file can be redistributed as described, however, these "certain conditions" do not appear to be detailed anywhere.

If we cannot get a resolution to this issue, another alternative is to remove Db2 from the Docker build and/or create a Db2 only image, where the user will need to do a manual driver download only for this image.

Input is requested on whether to move ahead with redistributing a copy as the licence suggests is permissible, or whether anyone knows what the "certain conditions" are and whether this would prevent moving ahead with the proposed solution.

@memmertoIBM
Copy link
Contributor

I have asked the question again to the Db2 Licensing folks. It's truly bizarre why IBM providse a driver package that is not 100% redistributable. In the case of HammerDB, it's like they'd expect us to unpack the driver into HammerDB and only redistribute the subset that qualifies as "royalty-free".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker docker file and image related enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants