3939#
4040# Pull serverjre:8 base image
4141# -----------------------------------
42- FROM oracle/jdk:17-ol8
42+ FROM oracle/jdk:17.0.14
4343
4444# Environment variables required for this build (do NOT change)
4545# ----------------------------------------------
@@ -63,23 +63,20 @@ COPY ${OHS_PKG} install.file oraInst.loc /u01/
6363# Install OL 8 or OL 9 required packages. Refer FMW 14.1.2.0.0 System requirements guide for complete list of packages
6464# Setup filesystem and oracle user
6565# ---------------------------------------------------------------------------------------------------------
66- RUN microdnf update \
67- && microdnf install gzip tar unzip libaio libnsl jq findutils diffutils binutils make glibc-devel binutils make glibc-devel procps \
68- && microdnf clean all \
69- # RUN yum install -y unzip libaio sysstat make psmisc gcc libxcrypt-compat && \
70- # yum clean all && \
71- && chmod a+xr /u01 \
72- && useradd -b /u01 -m -s /bin/bash oracle \
73- && mkdir /u01/oracle/.inventory /u01/oracle/bootdir \
74- && chown oracle:oracle -R /u01
66+ RUN yum install -y unzip libaio sysstat make psmisc gcc && \
67+ yum clean all && \
68+ chmod a+xr /u01 && \
69+ useradd -b /u01 -m -s /bin/bash oracle && \
70+ mkdir /u01/oracle/.inventory /u01/oracle/bootdir && \
71+ chown oracle:oracle -R /u01
7572
7673# Go to /u01 as user 'oracle' to proceed with OHS installation
7774# --------------------------------------------------------
7875USER oracle
7976WORKDIR /u01
8077# RUN unzip -q /u01/${OHS_PKG} && cd - && \
8178RUN unzip -q /u01/${OHS_PKG} && \
82- /u01/${OHS_BIN} -silent -responseFile /u01/install.file -invPtrLoc /u01/oraInst.loc ORACLE_HOME=${ORACLE_HOME} && \
79+ /u01/${OHS_BIN} -silent -novalidation - responseFile /u01/install.file -invPtrLoc /u01/oraInst.loc ORACLE_HOME=${ORACLE_HOME} && \
8380 rm /u01/${OHS_BIN} /u01/oraInst.loc /u01/install.file && \
8481 mkdir -p /u01/oracle/logs && \
8582 chown oracle:oracle -R /u01/oracle/logs
0 commit comments