so im trying to push a python api with cx_oracle dependency which also need oracle instant client,but i couldnt found an tutorial to deploy instant client on pcf,is anybody ever do this before or have any example what should be done? appreciate it
Update:
This is the inside of my .profile
LD_LIBRARY_PATH=/home/vcap/app/oracle/instantclient:${LD_LIBRARY_PATH:-}
export OCI_LIB_DIR=/home/vcap/app/oracle/instantclient
export OCI_INC_DIR=/home/vcap/app/oracle/instantclient/sdk/include
export PYTHONPATH=/home/vcap/app/vendor:$PYTHONPATH
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
oracle/.cx-Oraclelike normal withpip.requirements.txt..profileto the root of your application, in it putexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/vcap/app/oracle/lib(where/home/vcap/appis the path to your application files andoracle/libis the path to thelibdirectory beneath the folder where you extracted files in step #2).The
.profilefile will run before your actual application starts and it will adjust the library search path so that the Oracle client libraries can be found.If you get the error:
Double check your
.profilescript and make sure that you have the correctLD_LIBRARY_PATHsetting.