Created
August 24, 2018 10:01
-
-
Save kkpoon/048a90c71e0cc5224678df941e148e6e to your computer and use it in GitHub Desktop.
Dockerfile shows how to Install cx_Oracle in Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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