bryantsai / db2-docker

14 stars 8 forks source link

Download installer #3

Open angoca opened 9 years ago

angoca commented 9 years ago

There could be an easier way to download the DB2 binaries.

I know the DB2 installer has to be downloaded from IBM (fixpack central) and the URL is not the same. However, the URL for the download works for several days:

https://delivery04.dhe.ibm.com/sdfdl/v2/sar/CM/IM/04yrx/0/Xa.2/Xb.jusyLTSp44S03sPo7dOkuuPNYPGduOKijQCAuicsFTCmcyTaVJLKXWtvJPQ/Xc.CM/IM/04yrx/0/v10.5fp5_linuxx64_server_t.tar.gz/Xd./Xf.LPR.D1vk/Xg.7883730/Xi.habanero/XY.habanero/XZ.grlA6AsFBIuMIQhgkuzeJ9ZAh-s/v10.5fp5_linuxx64_server_t.tar.gz

Also, you can provide the direct URL to generate a new Download URL:

http://www.ibm.com/support/fixcentral/swg/quickorder?parent=ibm%7EInformation%2BManagement&product=ibm/Information+Management/DB2&release=10.5.*&platform=Linux+64-bit,x86_64&function=fixId&fixids=DB2-linuxx64-server_t-10.5.0.5-FP005&includeRequisites=1&includeSupersedes=0&downloadMethod=http&source=fc

I use that in my projects with TravisCI. For example: https://travis-ci.org/angoca/db2unit/jobs/44276823

bryantsai commented 9 years ago

This is more for legal concern. For non-express-C version, I believer whoever is using DB2 servers know (or are entitled) to get the updates. I didn't think this is a Dockerfile's concern. (Plus, there are multiple fix-packs available.)

However, I did think for Express-C version it would be great to download automatically while building the Dockerfile. Unfortunately, there seems to be no easy way.