Created
December 15, 2020 15:44
-
-
Save mgwalker/74baf8a7fa77062c31170029884d098d to your computer and use it in GitHub Desktop.
ora2pg dockerfile
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 ubuntu | |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
alien \ | |
git \ | |
libdbi-perl \ | |
wget \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN wget https://download.oracle.com/otn_software/linux/instantclient/211000/oracle-instantclient-basic-21.1.0.0.0-1.x86_64.rpm | |
RUN alien oracle-instantclient-basic-21.1.0.0.0-1.x86_64.rpm | |
RUN git clone https://github.com/darold/ora2pg.git /ora2pg | |
WORKDIR /ora2pg | |
# Pin to a known commit | |
RUN git checkout 13b9693 | |
RUN perl Makefile.PL | |
RUN make && make install | |
RUN mv /etc/ora2pg/ora2pg.conf.dist /etc/ora2pg/ora2pg.conf | |
RUN mkdir /project | |
WORKDIR /project | |
ENV ORACLE_HOME /usr/lib/oracle/21.1/client64 | |
CMD ora2pg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're in a directory with an Oracle DDL file and want to convert that file to PostgreSQL, pull down this Dockerfile and then run these commands to build and run it: