Creating nodeJs buildpack with Oracle client
- Procedure
- Create a folder on the same level as the
create-buildpack-nodejs-oracle.sh
file with the name the folderinstantclient
. - Download Oracle client libraries from https://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html .
- Add the zip file to
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 the
CLIENT_FILENAME
to the zip file name that is downloaded. - 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 later, delete line 19. - Run the
create-buildpack-nodejs-oracle.sh
file. - Upload the build pack to cloud foundry. For example, nodejs-oracle (cf create-buildpack nodejs-oracle nodejs-buildpack-master-oracle.zip 1)