Skip to content

Commit

Permalink
changes in docker file to download oracle clientl
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhila-aot committed Oct 18, 2024
1 parent a414103 commit 1907e5c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
26 changes: 16 additions & 10 deletions ora2pg/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,25 @@ RUN apt-get update && apt-get install -y -q --no-install-recommends \
gnupg2 \
libdbd-pg-perl

ADD /assets /assets
ARG ORAVERSION=21
ARG ORACLIENT_BASIC=https://download.oracle.com/otn_software/linux/instantclient/211000/oracle-instantclient-basic-21.1.0.0.0-1.x86_64.rpm
ARG ORACLIENT_DEVEL=https://download.oracle.com/otn_software/linux/instantclient/211000/oracle-instantclient-devel-21.1.0.0.0-1.x86_64.rpm
ARG ORACLIENT_SQLPLUS=https://download.oracle.com/otn_software/linux/instantclient/211000/oracle-instantclient-sqlplus-21.1.0.0.0-1.x86_64.rpm

# Instal Oracle Client
RUN mkdir /usr/lib/oracle/12.2/client64/network/admin -p

RUN alien -i /assets/oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm &&\
alien -i /assets/oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm &&\
alien -i /assets/oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm
# Instal Oracle Client
RUN mkdir /usr/lib/oracle/$ORAVERSION/client64/network/admin -p \
&& curl -L -o /tmp/oracle-instantclient.rpm $ORACLIENT_BASIC \
&& (cd /tmp && alien -i ./oracle-instantclient.rpm && rm -f oracle-instantclient.rpm) \
&& curl -L -o /tmp/oracle-instantclient.rpm $ORACLIENT_DEVEL \
&& (cd /tmp && alien -i ./oracle-instantclient.rpm && rm -f oracle-instantclient.rpm) \
&& curl -L -o /tmp/oracle-instantclient.rpm $ORACLIENT_SQLPLUS \
&& (cd /tmp && alien -i ./oracle-instantclient.rpm && rm -f oracle-instantclient.rpm)

ENV ORACLE_HOME=/usr/lib/oracle/12.2/client64
ENV TNS_ADMIN=/usr/lib/oracle/12.2/client64/network/admin
ENV LD_LIBRARY_PATH=/usr/lib/oracle/12.2/client64/lib
ENV PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/oracle/12.2/client64/bin
ENV ORACLE_HOME=/usr/lib/oracle/$ORAVERSION/client64
ENV TNS_ADMIN=/usr/lib/oracle/$ORAVERSION/client64/network/admin
ENV LD_LIBRARY_PATH=/usr/lib/oracle/$ORAVERSION/client64/lib
ENV PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/oracle/$ORAVERSION/client64/bin

# Install DBI module with Postgres, Oracle and Compress::Zlib module
RUN cpan install Test::NoWarnings &&\
Expand Down
3 changes: 1 addition & 2 deletions ora2pg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ This container can be used to migrate from Oracle to PostgreSQL utilizing the to
Documentation: https://ora2pg.darold.net/documentation.html

## How to build
```

Update the oracle connection string in the "ora2pg.conf" file

```
```
docker build . -t ora2pg
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion ora2pg/ora2pg.conf
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ DISABLE_COMMENT 0
# that regex will not works with 8i database, use % placeholder instead
# Ora2Pg will use the LIKE operator. There is also some extended use of
# this directive, see chapter "Limiting object to export" in documentation.
ALLOW classification_cd
#ALLOW classification_cd

# Set which object to exclude from export process. By default none. Value
# must be a list of object name or regexp separated by space. Note that regex
Expand Down

0 comments on commit 1907e5c

Please sign in to comment.