oracle / docker-images

Official source of container configurations, images, and examples for Oracle products and projects

Home Page:https://developer.oracle.com/use-cases/#containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install manually oracle-database-preinstall-19c

mbeguet-bib opened this issue · comments

Hello everyone,

There is a proxy in my company and I've an error when I running the Dockerfile.

The error is in setupLinuxEnv.sh file.
The command yum -y install oracle-database-preinstall-19c openssl hostname cannot be execute (thanks my proxy).
So I would like to download manually the fille to add it in my Dockerfile and bypass this download step.

Unfortunately, I don't know where I can download this file.
I've found this file on internet : oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm but I don't know if it's the right file.
It's for Oracle 19 database.
Thank you :)

First, You need to download the oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm and take it to 19.3.0 folder.

Next, add the following modifications to Dockerfile for copying files:

COPY oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm $INSTALL_DIR/

Finally, modify the setupLinuxEnv.sh, YUM will automatically download missing dependencies rpm package through the network:

yum -y install openssl hostname
yum -y localinstall <your_absolute_path_in_images>/oracle-database-preinstall-19c-1.0-3.el8.aarch64.rpm