Creating nodeJs Buildpack with Oracle Client
- Procedure
- Create a folder on the same level as the
create-buildpack-nodejs-oracle.sh
file and name itinstantclient
. - Download Oracle client libraries from https://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
- Add the zip file to the
instantclient
folder. For example,instantclient-basic-linux.x64-12.2.0.1.0.zip
. - Open the
create-buildpack-nodejs-oracle.sh file and on line 11, point
CLIENT_FILENAME
to the zip file name that is downloaded. - On line 19, change the
libclntsh.so
file name according to the client download"ln -s \$build_dir/oracle/lib/libclntsh.so.12.1 \$build_dir/oracle/lib/libclntsh.so"
. For 18.x and later, delete line 19. - Run the
create-buildpack-nodejs-oracle.sh
file.This creates the Nodejs build pack with an oracle clientnodejs-buildpack-master-oracle.zip
file. - Upload the build pack to cloud foundry. For example, nodejs-oracle (cf create-buildpack nodejs-oracle nodejs-buildpack-master-oracle.zip 1).