k8s: lacks libraries when deploy python-cx-Oracle

created at 08-24-2021 views: 1

When build image from miniconda/centos7

error1

Cannot locate a 64-bit Oracle Client libray "libclnsh.so" cannot open shared object file :No such file or direcory

solution

RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
    unzip instantclient-basiclite-linuxx64.zip && \
    rm -f instantclient-basiclite-linuxx64.zip && \
    cd instantclient* && \
    rm -f *jdbc* *occi* *mysql* *jar uidrvci genezi adrci && \
    echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf && \
    ldconfig

Suggested practice: After downloading locally, delete some files, copy the instantclient* to the mirror in the dockerfile, and execute
echo /opt/oracle/instantclient*> /etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig.

error2

error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

solution

64-bit system installation:
cp libaio-0.3.107-10.el6.x86_64.rpm into the image, and then execute rpm rpm -ivh libaio-0.3.107-10.el6.x86_64.rpm in the dockerfile

wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libaio-0.3.107-10.el6.x86_64.rpm
rpm -ivh libaio-0.3.107-10.el6.x86_64.rpm
created at:08-24-2021
edited at: 08-24-2021: