Skip to content

Instantly share code, notes, and snippets.

@kkpoon
Created August 24, 2018 10:01
Show Gist options
  • Save kkpoon/048a90c71e0cc5224678df941e148e6e to your computer and use it in GitHub Desktop.
Save kkpoon/048a90c71e0cc5224678df941e148e6e to your computer and use it in GitHub Desktop.
Dockerfile shows how to Install cx_Oracle in Docker
FROM centos:7
RUN mkdir -p /opt/oracle
WORKDIR /opt/oracle
RUN yum install -y https://centos7.iuscommunity.org/ius-release.rpm
RUN yum update -y && \
yum install -y unzip libaio python36u python36u-pip && \
unzip /tmp/instantclient-basic-linux.x64-12.2.0.1.0.zip && \
yum remove -y unzip && \
sh -c "echo /opt/oracle/instantclient_12_2 > /etc/ld.so.conf.d/oracle-instantclient.conf" && \
ldconfig && \
mkdir -p /opt/oracle/instantclient_12_2/network/admin && \
pip3.6 install --upgrade pip && \
pip3.6 install cx-Oracle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment