Skip to content

Commit 310eeb2

Browse files
prshshukprashant.s.shukla@oracle.com
andauthored
Oracle WebCenter Sites 21.1.1 release (#39)
* Oracle WebCenter Sites 21.1.1 Co-authored-by: prashant.s.shukla@oracle.com <prshshuk@prshshuk-1.subnet1phx1.devcecphx.oraclevcn.com>
1 parent d2b210e commit 310eeb2

File tree

618 files changed

+95295
-1286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

618 files changed

+95295
-1286
lines changed

OracleWebCenterSites/kubernetes/2.4.0/create-wcsites-domain/ingress-per-domain/templates/nginx-ingress.yaml

Lines changed: 0 additions & 57 deletions
This file was deleted.
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# Copyright (c) 2020 Oracle Corporation and/or its affiliates.
2-
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
1+
# Copyright (c) 2021, Oracle and/or its affiliates.
2+
#
3+
# Licensed under the Universal Permissive License v 1.0 as shown at
4+
# https://oss.oracle.com/licenses/upl
5+
36
apiVersion: v1
47
kind: PersistentVolume
58
metadata:
@@ -49,7 +52,7 @@ spec:
4952
sessionAffinity: None
5053
type: LoadBalancer
5154
---
52-
apiVersion: extensions/v1beta1
55+
apiVersion: apps/v1
5356
kind: Deployment
5457
metadata:
5558
name: oracle-db
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# Copyright (c) 2020 Oracle Corporation and/or its affiliates.
2-
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
1+
# Copyright (c) 2021, Oracle and/or its affiliates.
2+
#
3+
# Licensed under the Universal Permissive License v 1.0 as shown at
4+
# https://oss.oracle.com/licenses/upl
5+
36
apiVersion: v1
47
kind: Service
58
metadata:
@@ -23,7 +26,7 @@ spec:
2326
selector:
2427
app: wcsitesdb
2528
---
26-
apiVersion: apps/v1beta1
29+
apiVersion: apps/v1
2730
kind: StatefulSet
2831
metadata:
2932
name: wcsitesdb
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/bin/bash
2-
# Copyright 2020, Oracle Corporation and/or its affiliates.
3-
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
2+
# Copyright (c) 2021, Oracle and/or its affiliates.
3+
#
4+
# Licensed under the Universal Permissive License v 1.0 as shown at
5+
# https://oss.oracle.com/licenses/upl
46
#
57

68
function exitIfError {
@@ -13,6 +15,9 @@ function exitIfError {
1315
# Include common utility functions
1416
source ${CREATE_DOMAIN_SCRIPT_DIR}/utility.sh
1517

18+
export CUSTOM_MANAGED_BASE_NAME=${CUSTOM_MANAGED_BASE_NAME,,}
19+
export CUSTOM_ADMIN_NAME=${CUSTOM_ADMIN_NAME,,}
20+
1621
# Verify the script to create the domain exists
1722
script=${CREATE_DOMAIN_SCRIPT_DIR}/createSitesDomain.sh
1823

@@ -58,7 +63,10 @@ sed -i -e "s:%SITES_APP_USERNAME%:${SITES_APP_USERNAME}:g" ${DOMAIN_HOME_DIR}/se
5863
sed -i -e "s:%SITES_APP_PASSWORD%:${SITES_APP_PASSWORD}:g" ${DOMAIN_HOME_DIR}/server-config-update.sh
5964
sed -i -e "s:%SITES_SS_USERNAME%:${SITES_SS_USERNAME}:g" ${DOMAIN_HOME_DIR}/server-config-update.sh
6065
sed -i -e "s:%SITES_SS_PASSWORD%:${SITES_SS_PASSWORD}:g" ${DOMAIN_HOME_DIR}/server-config-update.sh
66+
sed -i -e "s:%DOMAIN_HOME%:${DOMAIN_HOME_DIR}:g" ${DOMAIN_HOME_DIR}/server-config-update.sh
67+
sed -i -e "s:%DOMAIN_ROOT_DIR%:${DOMAIN_ROOT_DIR}:g" ${DOMAIN_HOME_DIR}/server-config-update.sh
6168

69+
6270
# DON'T REMOVE THIS
6371
# This script has to contain this log message.
6472
# It is used to determine if the job is really completed.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Copyright 2020, Oracle Corporation and/or its affiliates.
2-
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
1+
# Copyright (c) 2021, Oracle and/or its affiliates.
2+
#
3+
# Licensed under the Universal Permissive License v 1.0 as shown at
4+
# https://oss.oracle.com/licenses/upl
35

46
import os
57
import sys
Lines changed: 4 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
2+
# Copyright (c) 2021, Oracle and/or its affiliates.
23
#
3-
# Copyright (c) 2020 Oracle and/or its affiliates.
4-
#
5-
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
4+
# Licensed under the Universal Permissive License v 1.0 as shown at
5+
# https://oss.oracle.com/licenses/upl
66
#
77
# Description: This script is used to Execute RCU.
88
#
@@ -78,125 +78,6 @@ DB_PASSWORD=`cat /weblogic-operator/rcu-secrets/sys_password`
7878
DB_SCHEMA_PASSWORD=`cat /weblogic-operator/rcu-secrets/password`
7979
RCU_PREFIX=$CUSTOM_RCUPREFIX
8080

81-
#if [ -z ${DOMAIN_NAME} ]
82-
#then
83-
# DOMAIN_NAME=base_domain
84-
# echo ""
85-
# echo " Setting DOMAIN_NAME to base_domain"
86-
# echo ""
87-
#fi
88-
#
89-
#if [ -z ${SITES_SERVER_NAME} ]
90-
#then
91-
# SITES_SERVER_NAME=wcsites_server1
92-
# echo ""
93-
# echo " Setting SITES_SERVER_NAME to wcsites_server1"
94-
# echo ""
95-
#fi
96-
#
97-
#if [ -z ${ADMIN_USERNAME} ]
98-
#then
99-
# ADMIN_USERNAME=weblogic
100-
# echo ""
101-
# echo " Setting ADMIN_USERNAME to weblogic"
102-
# echo ""
103-
#fi
104-
#
105-
#if [ -z ${SITES_ADMIN_USERNAME} ]
106-
#then
107-
# SITES_ADMIN_USERNAME=ContentServer
108-
# echo ""
109-
# echo " Setting SITES_ADMIN_USERNAME to ContentServer"
110-
# echo ""
111-
#fi
112-
#
113-
#if [ -z ${SITES_APP_USERNAME} ]
114-
#then
115-
# SITES_APP_USERNAME=fwadmin
116-
# echo ""
117-
# echo " Setting SITES_APP_USERNAME to fwadmin"
118-
# echo ""
119-
#fi
120-
#
121-
#if [ -z ${SITES_SS_USERNAME} ]
122-
#then
123-
# SITES_SS_USERNAME=SatelliteServer
124-
# echo ""
125-
# echo " Setting SITES_SS_USERNAME to SatelliteServer"
126-
# echo ""
127-
#fi
128-
#
129-
#if [ -z ${SAMPLES} ]
130-
#then
131-
# SAMPLES=false
132-
# echo ""
133-
# echo " Setting samples to false"
134-
# echo ""
135-
#fi
136-
#
137-
#if [ -z ${ADMIN_PASSWORD} ]
138-
#then
139-
# # Auto generate Oracle WebLogic Server admin password
140-
# ADMIN_PASSWORD=$(rand_pwd)
141-
# ADMIN_PASSWORD_AUTOGENERATED=true
142-
# echo ""
143-
# echo " Oracle WebLogic Server Password Auto Generated :"
144-
# echo ""
145-
# echo " ----> Username: $ADMIN_USERNAME ----> Password: $ADMIN_PASSWORD"
146-
# echo ""
147-
#fi;
148-
#
149-
#if [ -z ${DB_SCHEMA_PASSWORD} ]
150-
#then
151-
# # Auto generate Oracle Database Schema password
152-
# temp_pwd=$(rand_pwd)
153-
# #Password should not start with a number for database
154-
# f_str=`echo $temp_pwd|cut -c1|tr [0-9] [A-Z]`
155-
# s_str=`echo $temp_pwd|cut -c2-`
156-
# DB_SCHEMA_PASSWORD=${f_str}${s_str}
157-
# DB_SCHEMA_PASSWORD_AUTOGENERATED=true
158-
# echo ""
159-
# echo " Database Schema password Auto Generated :"
160-
# echo ""
161-
# echo " ----> Database schema password: $DB_SCHEMA_PASSWORD"
162-
# echo ""
163-
#fi
164-
#
165-
#if [ -z ${SITES_ADMIN_PASSWORD} ]
166-
#then
167-
# # Auto generate Oracle WebCenter Sites Administrator password
168-
# SITES_ADMIN_PASSWORD=$(rand_pwd)
169-
# SITES_ADMIN_PASSWORD_AUTOGENERATED=true
170-
# echo ""
171-
# echo " Oracle WebCenter Sites Administrator Password Auto Generated :"
172-
# echo ""
173-
# echo " ----> Username: $SITES_ADMIN_USERNAME ----> Password: $SITES_ADMIN_PASSWORD"
174-
# echo ""
175-
#fi;
176-
#
177-
#if [ -z ${SITES_APP_PASSWORD} ]
178-
#then
179-
# # Auto generate Oracle WebCenter Sites Application password
180-
# SITES_APP_PASSWORD=$(rand_pwd)
181-
# SITES_APP_PASSWORD_AUTOGENERATED=true
182-
# echo ""
183-
# echo " Oracle WebCenter Sites Application Password Auto Generated :"
184-
# echo ""
185-
# echo " ----> Username: $SITES_APP_USERNAME ----> Password: $SITES_APP_PASSWORD"
186-
# echo ""
187-
#fi;
188-
#
189-
#if [ -z ${SITES_SS_PASSWORD} ]
190-
#then
191-
# # Auto generate Oracle WebCenter Sites SatelliteServer password
192-
# SITES_SS_PASSWORD=$(rand_pwd)
193-
# SITES_SS_PASSWORD_AUTOGENERATED=true
194-
# echo ""
195-
# echo " Oracle WebCenter Sites SatelliteServer Password Auto Generated :"
196-
# echo ""
197-
# echo " ----> Username: $SITES_SS_USERNAME ----> Password: $SITES_SS_PASSWORD"
198-
# echo ""
199-
#fi;
20081

20182
# These values can be parameterized later on. Hardcoding for now.
20283
export DOCKER_HOST=$LB_HOST
@@ -279,33 +160,14 @@ fi
279160
# Export Domain Home/Root
280161
#=========================
281162
export DOMAIN_NAME=$DOMAIN_NAME
282-
export DOMAIN_ROOT="/u01/oracle/user_projects/domains"
163+
export DOMAIN_ROOT=$DOMAIN_ROOT_DIR
283164
export DOMAIN_HOME="${DOMAIN_ROOT}/${DOMAIN_NAME}"
284165

285-
echo ""
286-
echo ""
287-
#echo "Notedown Auto Generated Sites, WebLogic Server and Database Schema passwords:"
288166
echo ""
289167
if [ $DB_SCHEMA_PASSWORD_AUTOGENERATED == "true" ]; then
290168
echo " ----> Oracle Database Schema Credential: Password: $DB_SCHEMA_PASSWORD"
291169
fi
292170

293-
#if [ $ADMIN_PASSWORD_AUTOGENERATED == "true" ]; then
294-
# echo " ----> Oracle WebLogic Server Credential: Username: $ADMIN_USERNAME Password: $ADMIN_PASSWORD"
295-
#fi
296-
297-
#if [ $SITES_ADMIN_PASSWORD_AUTOGENERATED == "true" ]; then
298-
# echo " ----> Oracle WebCenter Sites Administrator Credential: Username: $SITES_ADMIN_USERNAME Password: $SITES_ADMIN_PASSWORD"
299-
#fi
300-
301-
#if [ $SITES_APP_PASSWORD_AUTOGENERATED == "true" ]; then
302-
# echo " ----> Oracle WebCenter Sites Application Credential: Username: $SITES_APP_USERNAME Password: $SITES_APP_PASSWORD"
303-
#fi
304-
305-
#if [ $SITES_SS_PASSWORD_AUTOGENERATED == "true" ]; then
306-
# echo " ----> Oracle WebCenter Sites SatelliteServer Credential: Username: $SITES_SS_USERNAME Password: $SITES_SS_PASSWORD"
307-
#fi
308-
309171

310172

311173
INSTALL_END=$(date '+%s')
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
# Copyright (c) 2021, Oracle and/or its affiliates.
3+
#
4+
# Licensed under the Universal Permissive License v 1.0 as shown at
5+
# https://oss.oracle.com/licenses/upl
6+
#
7+
8+
# Drop the RCU schema based on schemaPreifix and Database URL
9+
10+
DB_CONNECTSTRING=$CUSTOM_CONNECTION_STRING
11+
DB_USER=`cat /weblogic-operator/rcu-secrets/sys_username`
12+
DB_PASSWORD=`cat /weblogic-operator/rcu-secrets/sys_password`
13+
DB_SCHEMA_PASSWORD=`cat /weblogic-operator/rcu-secrets/password`
14+
RCU_PREFIX=$CUSTOM_RCUPREFIX
15+
rcuType=fmw
16+
17+
18+
echo "${DB_PASSWORD}" > pwd.txt
19+
echo "${DB_SCHEMA_PASSWORD}" >> pwd.txt
20+
21+
echo "dropping RCU schema with following parameters ${DB_CONNECTSTRING} ${RCU_PREFIX} ${rcuType} ${DB_PASSWORD}"
22+
source ${CREATE_DOMAIN_SCRIPT_DIR}/dropRepository.sh ${DB_CONNECTSTRING} ${RCU_PREFIX} ${rcuType} ${DB_PASSWORD}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/bash
2+
# Copyright (c) 2021, Oracle and/or its affiliates.
3+
#
4+
# Licensed under the Universal Permissive License v 1.0 as shown at
5+
# https://oss.oracle.com/licenses/upl
6+
7+
. /u01/oracle/wlserver/server/bin/setWLSEnv.sh
8+
9+
echo "Check if the DB Service is ready to accept request "
10+
connectString=${1:-oracle-db.wcsitesdb-ns.svc.cluster.local:1521/devpdb.k8s}
11+
schemaPrefix=${2:-WCS1}
12+
rcuType=${3:-fmw}
13+
sysPassword=${4:-Oradoc_db1}
14+
15+
echo "DB Connection String [$connectString] schemaPrefix [${schemaPrefix}] rcuType[${rcuType}]"
16+
17+
max=20
18+
counter=0
19+
while [ $counter -le ${max} ]
20+
do
21+
java utils.dbping ORACLE_THIN "sys as sysdba" ${sysPassword} ${connectString} > dbping.err 2>&1
22+
[[ $? == 0 ]] && break;
23+
((counter++))
24+
echo "[$counter/${max}] Retrying the DB Connection ..."
25+
sleep 10
26+
done
27+
28+
if [ $counter -gt ${max} ]; then
29+
echo "[ERROR] Oracle DB Service is not ready after [${max}] iterations ..."
30+
exit -1
31+
else
32+
java utils.dbping ORACLE_THIN "sys as sysdba" ${sysPassword} ${connectString}
33+
fi
34+
35+
# SOA needs extra component(s) SOAINFRA ESS (optional)
36+
# SOA needs variables param(s) SOA_PROFILE_TYPE=SMALL,HEALTHCARE_INTEGRATION=NO
37+
38+
case $rcuType in
39+
fmw)
40+
extComponents=""
41+
extVariables=""
42+
echo "Dropping RCU Schema for FMW Domain ..."
43+
;;
44+
* )
45+
echo "[ERROR] Unknown RCU Schema Type [$rcuType]"
46+
echo "Supported values: fmw(default),soa,osb,soaosb,soaess,soaessosb"
47+
exit -1
48+
;;
49+
esac
50+
51+
echo "Extra RCU Schema Component(s) Choosen[${extComponents}]"
52+
echo "Extra RCU Schema Variable(s) Choosen[${extVariables}]"
53+
54+
/u01/oracle/oracle_common/bin/rcu -silent -dropRepository \
55+
-databaseType ORACLE -connectString ${connectString} \
56+
-dbUser sys -dbRole sysdba \
57+
-selectDependentsForComponents true \
58+
-schemaPrefix ${schemaPrefix} ${extComponents} ${extVariables} \
59+
-component MDS -component IAU -component IAU_APPEND -component IAU_VIEWER \
60+
-component OPSS -component WLS -component STB -component WCSITES < /u01/oracle/pwd.txt

0 commit comments

Comments
 (0)