Creating nodeJs buildpack with Oracle client

Procedure

  1. Create a folder on the same level as the create-buildpack-nodejs-oracle.sh file with the name the folder instantclient.
  2. Download Oracle client libraries from https://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html .
  3. Add the zip file to instantclient folder. For example, instantclient-basic-linux.x64-12.2.0.1.0.zip.
  4. Open the create-buildpack-nodejs-oracle.sh file and on line 11, point the CLIENT_FILENAME to the zip file name that is downloaded.

  5. On line 19, change the libclntsh.so file name according to client download "ln -s \$build_dir/oracle/lib/libclntsh.so.12.1 \$build_dir/oracle/lib/libclntsh.so" for 18.x and delete line 19.
  6. Run the create-buildpack-nodejs-oracle.sh file.
    This creates the nodejs build pack with oracle clientnodejs-buildpack-master-oracle.zipfile.
  7. Upload the build pack to cloud foundry. For example, nodejs-oracle (cf create-buildpack nodejs-oracle nodejs-buildpack-master-oracle.zip 1)