Skip to content

Commit be2a13c

Browse files
committed
14.1.1.2 Dockerfile edits
1 parent 78f66fb commit be2a13c

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

OracleHTTPServer/dockerfiles/14.1.2.0.0/Dockerfile

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
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
#--------------------------------------------------------
7875
USER oracle
7976
WORKDIR /u01
8077
#RUN unzip -q /u01/${OHS_PKG} && cd - && \
8178
RUN 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

OracleHTTPServer/dockerfiles/buildDockerImage.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Parameters:
2424
2525
LICENSE Universal Permissive License v1.0
2626
27-
Copyright (c) 2016, 2024 Oracle and/or its affiliates. All rights reserved.
27+
Copyright (c) 2016, 2025 Oracle and/or its affiliates. All rights reserved.
2828
2929
3030
EOF
@@ -35,8 +35,8 @@ exit 0
3535
# Validate packages
3636
checksumPackages() {
3737
echo "Checking if required packages are present and valid..."
38-
# md5sum -c *.download
39-
# if [ "$?" -ne 0 ]; then
38+
md5sum -c *.download
39+
if [ "$?" -ne 0 ]; then
4040
MDSUM="md5sum -c *.download"
4141
if [ "$MDSUM" -ne 0 ]; then
4242
echo "MD5 for required packages to build this image did not match!"

0 commit comments

Comments
 (0)