Skip to content

Commit baeadce

Browse files
adhramesvivek-sam
authored andcommitted
Containerfile lint fix
1 parent 99d854e commit baeadce

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

OracleSOASuite/dockerfiles/14.1.2.0/Containerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ RUN "$JAVA_HOME/bin/java" -jar "$FMW_JAR1" -silent -responseFile /u01/soasuite.r
6161
WORKDIR ${OPATCH_PATCH_DIR}
6262
RUN opatchzip=`ls ${OPATCH_PATCH_DIR}/p*.zip 2>/dev/null`; \
6363
if [ ! -z "$opatchzip" ]; then \
64-
# cd ${OPATCH_PATCH_DIR}; \
6564
echo -e "\nApplying the below OPatch patch present in ${OPATCH_PATCH_DIR} directory."; \
6665
ls p*.zip; \
6766
echo -e ""; \
@@ -83,7 +82,6 @@ RUN opatchzip=`ls ${OPATCH_PATCH_DIR}/p*.zip 2>/dev/null`; \
8382
WORKDIR /u01/patches
8483
RUN export OPATCH_NO_FUSER=TRUE && patchzips=`ls /u01/patches/p*.zip 2>/dev/null`; \
8584
if [ ! -z "$patchzips" ]; then \
86-
# cd /u01/patches; \
8785
echo -e "\nBelow patches present in patches directory. Applying these patches:"; \
8886
ls p*.zip; \
8987
echo -e ""; \
@@ -93,16 +91,14 @@ RUN export OPATCH_NO_FUSER=TRUE && patchzips=`ls /u01/patches/p*.zip 2>/dev/null
9391
$ORACLE_HOME/OPatch/opatch util cleanup -silent; \
9492
rm -rf /u01/patches /u01/oracle/cfgtoollogs/opatch/*; \
9593
echo -e "\nPatches applied in SOA oracle home are:"; \
96-
# cd $ORACLE_HOME/OPatch; \
9794
$ORACLE_HOME/OPatch/opatch lspatches; \
9895
else \
9996
echo -e "\nNo patches present in patches directory. Skipping patch application."; \
10097
fi && \
10198
# Extract XEngine tar gz if present
102-
if [ -f "${ORACLE_HOME}/soa/soa/thirdparty/edifecs" ] && [ -f "XEngine_8_4_1_23.tar.gz" ]; then \
103-
echo "INSIDE"; \
104-
cd $ORACLE_HOME/soa/soa/thirdparty/edifecs && \
105-
tar -zxvf XEngine_8_4_1_23.tar.gz \
99+
if [ -d "${ORACLE_HOME}/soa/soa/thirdparty/edifecs" ] && [ -f "$ORACLE_HOME/soa/soa/thirdparty/edifecs/XEngine_8_4_1_23.tar.gz" ]; then \
100+
tar -zxvf "$ORACLE_HOME/soa/soa/thirdparty/edifecs/XEngine_8_4_1_23.tar.gz" \
101+
-C "$ORACLE_HOME/soa/soa/thirdparty/edifecs";
106102
else \
107103
echo -e "\nNo XEngine_8_4_1_23.tar.gz present in ${ORACLE_HOME}/soa/soa/thirdparty/edifecs directory. Skipping untar."; \
108104
fi && \

0 commit comments

Comments
 (0)