Skip to content

Commit 3bc7dfc

Browse files
authored
DOCKERFILE cleanup and minor sctipt change (#1892)
Signed-off-by: DEBOJYOTI GHOSH <debojyoti.ghosh@oracle.com>
1 parent 2737adb commit 3bc7dfc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

OracleWebCenterContent/dockerfiles/12.2.1.4/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ENV CONTENT_JAR=fmw_12.2.1.4.0_wccontent.jar \
4545
# Install packages and adjust file permissions
4646
# -------------------------------------------------------------
4747
RUN mkdir -p /u01 && \
48-
yum install -y libaio tar procps hostname zip unzip && \
48+
yum install -y hostname && \
4949
rm -rf /var/cache/yum && \
5050
mkdir -p $VOLUME_DIR && \
5151
mkdir -p /u01/oracle/container-scripts && \

OracleWebCenterContent/dockerfiles/12.2.1.4/container-scripts/configureOrStartWebCenterContent.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ hostalias=`echo $hostname | sed 's/[.]//g'`
6868
truncatedhostname=${hostalias}
6969

7070

71-
if [ ${#truncatedhostname} -gt "20" ]
71+
if [ ${#truncatedhostname} -ge "15" ]
7272
then
73-
truncatedhostname=${truncatedhostname:0:10}
73+
truncatedhostname=${truncatedhostname:0:14}
7474
fi
7575

7676
if [ -f /$vol_name/oracle//oracle_common/lib/ons.jar ]

0 commit comments

Comments
 (0)