fuzziebrain / docker-apex-stack

Utility scripts for creating an Oracle Application Express stack as a Docker container.
MIT License
97 stars 34 forks source link

Error to install Oracle DB RPM file from local #50

Closed DineshGuptaa closed 2 years ago

DineshGuptaa commented 2 years ago

I am getting issue to install database from local file. Due to limited bandwidth I am unable to download such a big file. Please guide me how to install from local https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm file. I downloaded file inside local directory and getting error.

# Environment variables required for this build (do NOT change)
# -------------------------------------------------------------
ENV ORACLE_BASE=/opt/oracle \
    ORACLE_HOME=/opt/oracle/product/21c/dbhomeXE \
    ORACLE_SID=XE \
    INSTALL_FILE_1="https://download.oracle.com/otn-pub/otn_software/db-express/oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm" \
    RUN_FILE="runOracle.sh" \
    PWD_FILE="setPassword.sh" \
    CONF_FILE="oracle-xe-21c.conf" \
    CHECK_SPACE_FILE="checkSpace.sh" \
    CHECK_DB_FILE="checkDBStatus.sh" \
    INSTALL_DIR="$HOME/install" \
    ORACLE_DOCKER_INSTALL="true" 

and trying to add file inside dockerfile

Step 4/23 : ADD /data/oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm .
ADD failed: file not found in build context or excluded by .dockerignore: stat data/oracle-database-xe-21c-1.0-1.ol7.x86_64.rpm: file does not exist
##### Done #####
##### Deploying the container #####

Thanks in advance

fuzziebrain commented 2 years ago

@DineshGuptaa I'm trying to implement an override in #39 . Let's track that there.

fuzziebrain commented 2 years ago

@DineshGuptaa Can you please checkout the branch feature/issue-39 and see if it helps you? The quickstart.sh script would still attempt to download the RPM from Oracle, so you will need to use the two scripts 01-build.sh and 02-run.sh, and then make sure the environment file has the variable set as follows: XE_NO_DOWNLOAD=Y.

I should add that the build process will always need to pull packages from Yum repostories during the build. At some point, you will need Internet access when building and running the container.