Skip to content

Commit 325c3cf

Browse files
sbattagiSambasiva Battagiri
and
Sambasiva Battagiri
authored
fix for issues 2077,2051 and build script fixes (#2181)
Co-authored-by: Sambasiva Battagiri <sambasiva.battagiri@com>
1 parent d39df54 commit 325c3cf

12 files changed

+41
-32
lines changed

OracleSOASuite/dockerfiles/12.2.1.4/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ LABEL maintainer="Sambasiva Battagiri <[email protected]>"
104104
# Install the required packages
105105
# -----------------------------
106106
USER root
107-
RUN yum install -y hostname ant && \
107+
ENV PATH=$PATH:/u01/oracle/container-scripts:/u01/oracle/oracle_common/modules/thirdparty/org.apache.ant/1.10.5.0.0/apache-ant-1.10.5/bin
108+
RUN yum install -y hostname && \
108109
rm -rf /var/cache/yum
109110

110111
COPY --from=builder --chown=oracle:root /u01 /u01

OracleSOASuite/dockerfiles/12.2.1.4/README.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ ADMIN_PASSWORD=<admin_password>
179179
DOMAIN_NAME=soainfra
180180
DOMAIN_TYPE=<soa/osb/soaosb>
181181
ADMIN_HOST=<Administration Server hostname>
182-
ADMIN_PORT=<port number where Administration Server is running>
182+
ADMIN_PORT=<Node port number mapping Administration Server container port `7001`>
183183
PERSISTENCE_STORE=<jdbc | file>
184184
```
185185
>IMPORTANT: `DOMAIN_TYPE` must be carefully chosen and specified depending on the use case. It can't be changed once you proceed.
@@ -203,8 +203,6 @@ PERSISTENCE_STORE=jdbc
203203
```
204204
If `PERSISTENCE_STORE` is not specified, the default value is `jdbc`. When `PERSISTENCE_STORE=jdbc`, a JDBC persistence store will be configured for all servers for TLOG + SOAJMS/UMSJMS servers. If `PERSISTENCE_STORE=file`, file-based persistence stores will be used instead.
205205
206-
> IMPORTANT: In the Administration Server's environment variables file, the `ADMIN_PORT` value must be `7001`.
207-
208206
To start a Docker container with a SOA domain and the WebLogic Server Administration Server, use the `docker run` command and pass the `adminserver.env.list` file.
209207
210208
For example:
@@ -236,13 +234,16 @@ Create an environment variables file specific to each Managed Server in the clus
236234
MANAGED_SERVER=<Managed Server name, either soa_server1 or soa_server2>
237235
DOMAIN_NAME=soainfra
238236
ADMIN_HOST=<Administration Server hostname>
239-
ADMIN_PORT=<port number where Administration Server is running>
237+
ADMIN_PORT=<Node port number mapping Administration Server container port `7001`>
240238
ADMIN_PASSWORD=<admin_password>
241239
MANAGED_SERVER_CONTAINER=true
242-
MANAGEDSERVER_PORT=<port number where Managed Server is running>
240+
MANAGEDSERVER_PORT=<Container port number where Managed Server is running>
243241
```
244242
245-
>IMPORTANT: In the Managed Servers environment variables file, the `MANAGED_SERVER` value must be `soa_server1` or `soa_server2` for the `soa` and `soaosb` domain type. Also, `MANAGEDSERVER_PORT` must be `8001` for `soa_server1` or `8002` for `soa_server2`.
243+
>IMPORTANT: In the Managed Servers environment variables file
244+
> - `MANAGED_SERVER` value must be `soa_server1` or `soa_server2` for the `soa` and `soaosb` domain type.
245+
> - `MANAGEDSERVER_PORT` must be `8001` for `soa_server1` or `8002` for `soa_server2`.
246+
> - `ADMIN_PORT` must match the **node** port mapping the Administration Server container port `7001`.
246247
247248
Example for `soaserver1.env.list`:
248249
``` bash
@@ -302,13 +303,16 @@ Create an environment variables file specific to each Managed Server in the clus
302303
MANAGED_SERVER=<Managed Server name, either osb_server1 or osb_server2>
303304
DOMAIN_NAME=soainfra
304305
ADMIN_HOST=<Administration Server hostname>
305-
ADMIN_PORT=<port number where Administration Server is running>
306+
ADMIN_PORT=<Node port number mapping Administration Server container port `7001`>
306307
ADMIN_PASSWORD=<admin_password>
307308
MANAGED_SERVER_CONTAINER=true
308-
MANAGEDSERVER_PORT=<port number where Managed Server is running>
309+
MANAGEDSERVER_PORT=<Container port number where Managed Server is running>
309310
```
310311
311-
>IMPORTANT: In the Managed Servers environment variables file the `MANAGED_SERVER` value must be `osb_server1` or `osb_server2` for the `osb` and `soaosb` domain type. Also, `MANAGEDSERVER_PORT` must be `9001` for `osb_server1` or `9002` for `osb_server2`.
312+
>IMPORTANT: In the Managed Servers environment variables file
313+
> - `MANAGED_SERVER` value must be `osb_server1` or `osb_server2` for the `osb` and `soaosb` domain type.
314+
> - `MANAGEDSERVER_PORT` must be `9001` for `osb_server1` or `9002` for `osb_server2`.
315+
> - `ADMIN_PORT` must match the **node** port mapping the Administration Server container port `7001`.
312316
313317
Example for `osbserver1.env.list`:
314318
``` bash

OracleSOASuite/dockerfiles/12.2.1.4/container-scripts/createDomainAndStart.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
#
33
#
4-
# Copyright (c) 2014, 2020 Oracle and/or its affiliates.
4+
# Copyright (c) 2014, 2021, Oracle and/or its affiliates.
55
#
66
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
77
#
@@ -71,8 +71,8 @@ updateListenAddress() {
7171
mkdir -p ${DOMAIN_HOME}/logs
7272

7373
export thehost=`hostname -I`
74-
echo "INFO: Updating the listen address - ${thehost} ${ADMIN_HOST}"
75-
cmd="/u01/oracle/oracle_common/common/bin/wlst.sh -skipWLSModuleScanning /u01/oracle/container-scripts/updListenAddress.py $vol_name ${thehost} AdminServer ${ADMIN_HOST}"
74+
echo "INFO: Updating the listen address - ${thehost}"
75+
cmd="/u01/oracle/oracle_common/common/bin/wlst.sh -skipWLSModuleScanning /u01/oracle/container-scripts/updListenAddress.py $vol_name ${thehost} AdminServer"
7676
echo ${cmd}
7777
${cmd} > ${DOMAIN_HOME}/logs/aslisten.log 2>&1
7878
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22
#
3-
#Copyright (c) 2020, Oracle and/or its affiliates.
3+
#Copyright (c) 2020, 2021, Oracle and/or its affiliates.
44
#
55
#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
66

77
if [ "$MANAGED_SERVER_CONTAINER" = "true" ] ; then
8-
echo "http://{$ADMIN_HOST:$MANAGEDSERVER_PORT}/weblogic/ready" ;
8+
echo "http://$(hostname -i):${MANAGEDSERVER_PORT}/weblogic/ready" ;
99
else
10-
echo "http://{$ADMIN_HOST:$ADMIN_PORT}/weblogic/ready" ;
10+
echo "http://$(hostname -i):7001/weblogic/ready" ;
1111
fi
1212

1313

OracleSOASuite/dockerfiles/12.2.1.4/container-scripts/soaExtFun.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2020 Oracle and/or its affiliates.
3+
# Copyright (c) 2020, Oracle and/or its affiliates.
44
#
55
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
66
#

OracleSOASuite/dockerfiles/12.2.1.4/container-scripts/startAS.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Copyright (c) 2016, 2020 Oracle and/or its affiliates.
3+
# Copyright (c) 2016, 2020, Oracle and/or its affiliates.
44
#
55
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
66
#

OracleSOASuite/dockerfiles/12.2.1.4/container-scripts/startMS.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ LOGFILE=${LOGDIR}/ms.log
6363
mkdir -p ${LOGDIR}
6464

6565
export thehost=`hostname -I`
66-
echo "INFO: Updating the listen address - ${thehost} ${ADMIN_HOST}"
67-
/u01/oracle/oracle_common/common/bin/wlst.sh -skipWLSModuleScanning /u01/oracle/container-scripts/updListenAddress.py $vol_name $thehost ${MANAGED_SERVER} ${ADMIN_HOST} > ${LOGDIR}/mslisten.log 2>&1
66+
echo "INFO: Updating the listen address - ${thehost}"
67+
/u01/oracle/oracle_common/common/bin/wlst.sh -skipWLSModuleScanning /u01/oracle/container-scripts/updListenAddress.py $vol_name $thehost ${MANAGED_SERVER} > ${LOGDIR}/mslisten.log 2>&1
6868

6969
# Set boot.properties
7070
#

OracleSOASuite/dockerfiles/12.2.1.4/container-scripts/updListenAddress.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/python
22
#
3-
# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2019, 2021, Oracle and/or its affiliates.
44
#
5-
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
5+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
66
#
77
# Updates the listen address for managed server with the IP address of the host.
88
# ==============================================
@@ -21,7 +21,6 @@
2121
vol_name=sys.argv[1]
2222
manserver_host=sys.argv[2]
2323
server=sys.argv[3]
24-
exthost=sys.argv[4]
2524

2625
#
2726
# Setting domain path
@@ -39,7 +38,6 @@
3938
cd('/')
4039
cd('/Server/'+server)
4140
cmo.setListenAddress(manserver_host)
42-
cmo.setExternalDNSName(exthost)
4341

4442
# Creating domain
4543
# ===============

OracleSOASuite/dockerfiles/12.2.1.4/install/b2b.response

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# LICENSE UPL 1.0
22
#
33
# Copyright (c) 2021, Oracle and/or its affiliates.
4+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
46
[ENGINE]
57

68
#DO NOT CHANGE THIS.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# LICENSE UPL 1.0
21
#
3-
# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2017, Oracle and/or its affiliates.
3+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44

55
[ENGINE]
66
Response File Version=1.0.0.0.0
@@ -9,4 +9,4 @@ Response File Version=1.0.0.0.0
99
INSTALL_TYPE=Service Bus
1010

1111
DECLINE_SECURITY_UPDATES=true
12-
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
12+
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

OracleSOASuite/dockerfiles/12.2.1.4/install/soasuite.response

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# LICENSE UPL 1.0
22
#
3-
# Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2017, 2021, Oracle and/or its affiliates.
4+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
45
[ENGINE]
56

67
#DO NOT CHANGE THIS.

OracleSOASuite/dockerfiles/buildDockerImage.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LICENSE Universal Permissive License (UPL), Version 1.0
2424
Copyright (c) 2016-2017: Oracle and/or its affiliates.
2525
2626
EOF
27-
exit 0
27+
exit $1
2828
}
2929

3030
#=============================================================
@@ -79,7 +79,7 @@ SKIPMD5=0
7979
while getopts "hsv:" optname; do
8080
case "$optname" in
8181
"h")
82-
usage
82+
usage 0
8383
;;
8484
"s")
8585
SKIPMD5=1
@@ -89,7 +89,8 @@ while getopts "hsv:" optname; do
8989
;;
9090
*)
9191
# Should not occur
92-
echo "ERROR: Invalid argument. buildDockerImage.sh"
92+
echo "ERROR: Invalid argument for buildDockerImage.sh"
93+
usage 1
9394
;;
9495
esac
9596
done
@@ -153,12 +154,14 @@ ${buildCmd} || {
153154
echo "ERROR: There was an error building the image."
154155
exit 1
155156
}
157+
status=$?
158+
156159
BUILD_END=$(date '+%s')
157160
BUILD_ELAPSED=`expr $BUILD_END - $BUILD_START`
158161

159162
echo ""
160163

161-
if [ $? -eq 0 ]; then
164+
if [ ${status} -eq 0 ]; then
162165
cat << EOF
163166
INFO: Oracle SOA suite Docker Image for version: $VERSION
164167
is ready to be extended.

0 commit comments

Comments
 (0)