Hi There,
First of all, there is no issues connecting to the Oracle DB in the Click2Computer machine with the OS(Ubuntu 18.04).
However, when I used Ubuntu 18.04 as the Docker base image, installed the same Oracle clients and launched a docker container, the connection hanged forever without error. I know the Docker image(Ubuntu 18.04) is the minimal version, I wonder whether there are some network issue in it or any dependencies are missing? Please advice.
Here is the reference link I post the question to the oracleDB forum, it has all the details, sorry I can’t attach the images here.
The Dockerfile is
FROM /ubuntu:18.04
Create app directory.
RUN mkdir -p /usr/src/ultraaschedulingapp
WORKDIR /usr/src/ultraaschedulingapp
Bundle app source.
COPY . /usr/src/ultraaschedulingapp
Get oracledb build dependencies.
RUN echo ‘Acquire::http::Proxy "’ >> /etc/apt/apt.conf
RUN echo ‘Acquire::https::Proxy "’ >> /etc/apt/apt.conf
RUN apt-get update
RUN echo "deb " \n “deb-src main” > /etc/apt/sources.list.d/nodesource.list
RUN apt-get install -y curl
RUN apt-get install -y gnupg
RUN apt-get install -y build-essential
RUN apt-get install -y apt-transport-https
RUN curl -s --proxy | apt-key add -
RUN apt-get update
RUN apt-cache policy nodejs
RUN apt-get install -y nodejs
RUN node -v && npm -v
RUN apt-get install libaio1 # Async IO library used by Oracle client.
RUN apt-get install unzip # Unzip for Oracle client.
Install Oracle instant client SDK.
RUN mkdir /opt/oracle
RUN unzip instantclient-basic-linux.x64-19.5.0.0.0dbru.zip -d /opt/oracle
RUN unzip instantclient-sdk-linux.x64-19.5.0.0.0dbru.zip -d /opt/oracle
RUN pwd && ls
RUN mv /opt/oracle/instantclient_19_5 /opt/oracle/instantclient
#RUN ln -s /opt/oracle/instantclient/libclntsh.so.19_5 /opt/oracle/instantclient/libclntsh.so
ENV LD_LIBRARY_PATH=/opt/oracle/instantclient