0

Is DB2 Connect installation and license installation during build/deploy a good way to ensure mainframe connectivity to IBM Blue zone? My PHP Cloud Foundry app is on w3ibm.bluemix.

If yes shall I update the forked PHP Buildpack on GIT, by adding DB2 Connect to it? Or shall I use some sort of docker image for this? Any other idea?

Andr
  • 88
  • 1
  • 10
  • I use also Secure Gateway, but have some problem there too with licensing if connecting from workstation or in general if connecting from Bluemix. – Andr Jun 20 '18 at 08:41
  • 1
    In general, you should avoid forking a buildpack if at all possible. It creates a maintenance burden for you and if you don't merge in upstream changed & build new versions frequently can delay your apps from receiving timely updates to dependencies provided by the buildpack. – Daniel Mikusa Jun 20 '18 at 16:46
  • I will keep in mind @DanielMikusa! I have a DB2 Connect license file, that should be placed and also installed on the cloud environment of my Bluemix app. I can't place it to my project source folder.. license file should be next to the DB2 driver files... so I think I have to add this file somehow to the environment that the buildpack builds... any idea how to do it? – Andr Jun 22 '18 at 09:04
  • 1
    Probably a separate question, but if you put it in with the app you could use a `.profile` script to move it to the location where it needs to exist. That script will run before your app starts. Another option might be using multi-buildpack support. You could create a buildpack that just provides your DB2 resources. https://docs.cloudfoundry.org/buildpacks/custom.html#contract – Daniel Mikusa Jun 22 '18 at 13:44

1 Answers1

0

I found that there is no need to install a DB2 Connect. I could not install it anyway on Bluemix. There might be services for this, but at the end I had to use DB2 PHP extension of the PHP build-pack and after deploy I copied the license file to the license folder from PHP code. Details here.

Andr
  • 88
  • 1
  • 10