Skip to content

OWLS-83537 - Update domain home in image samples to use WIT instead of docker-images samples #2290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 109 commits into from
May 17, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
073963f
create common wdt-utility.sh
alai8 Feb 5, 2021
7cfccb8
use wdt
alai8 Feb 5, 2021
a7634c4
correct argument
alai8 Feb 6, 2021
cacdc7f
run_wdt supports domain_type arg
alai8 Feb 8, 2021
75e633a
Merge branch 'develop' into update-samples
alai8 Mar 16, 2021
f72cc1e
modify domain-home-in-image to use WIT to create image with domain
alai8 Mar 18, 2021
ad1de46
fix defaulting wdt and wit versions when not specified in input file
alai8 Mar 19, 2021
260b337
de-parameterized testSampleDomainInImage since we replace wdt and wls…
alai8 Mar 19, 2021
7c8d518
create secret if not exist in testSampleDomainInPv
alai8 Mar 19, 2021
0237356
minor cleanup domain-home-in-image scripts
alai8 Mar 19, 2021
50bc3c8
update fmw domain home in image sample to use wit instead of docker f…
alai8 Mar 19, 2021
3167adb
revert changes
alai8 Mar 23, 2021
b3cc84f
update domain-home-in-image sample doc with WIT
alai8 Mar 23, 2021
eb04269
more WIT related changes to samples docs
alai8 Mar 23, 2021
039baa1
make wdt and wit install dir customizable
alai8 Mar 24, 2021
7a1d40c
update comments and doc for toolsDir
alai8 Mar 24, 2021
0fd273f
uses different model depends on fmwDomainType in create-domai-fmw-inf…
alai8 Mar 26, 2021
afa55d9
Merge branch 'develop' into update-samples
alai8 Mar 26, 2021
7090be2
Merge branch 'update-samples' of https://github.com/oracle/weblogic-k…
alai8 Mar 26, 2021
8bfe127
rename topology.yaml to wdt_model_dynamic.yaml
alai8 Mar 26, 2021
0b2aa64
use https_proxy to download zip files if set
alai8 Mar 26, 2021
78195dc
add https_proxy env to create domain job
alai8 Mar 26, 2021
73fe777
add https_proxy env to create domain job
alai8 Mar 26, 2021
3daaaf5
need to call extractDomainResource.sh for wdt
alai8 Mar 26, 2021
424f66c
doc update
alai8 Mar 26, 2021
46f5bf5
remove -k option in create-domain.sh for domain-home-in-image samples
alai8 Mar 26, 2021
82fd4d6
Merge branch 'develop' into update-samples
alai8 Mar 29, 2021
e92e773
doc updates
alai8 Mar 29, 2021
1d9e5a9
domain-home-in-image samples doc update
alai8 Mar 29, 2021
d010401
remove debug outputs
alai8 Mar 29, 2021
63d054b
remove unused configuredManagedServerCount
alai8 Mar 29, 2021
86323e7
clarify rcu related params only required if fmwDomainType is JRF
alai8 Mar 29, 2021
589467e
create doc on fmw infrastructure domain home in image and updates to …
alai8 Mar 29, 2021
3033b87
minor doc fixes
alai8 Mar 29, 2021
8b3a35e
minor doc fixes
alai8 Mar 29, 2021
0aaa40b
updates to samples doc based on review feedback. Add sections on dele…
alai8 Mar 30, 2021
ccc6aa6
renamed wdt-utility.sh to wdt-and-wit-utility.sh, changed default WDT…
alai8 Mar 30, 2021
bc39d55
renamed wdt-utility.sh to wdt-and-wit-utility.sh
alai8 Mar 30, 2021
abdd5aa
prints out imagetool command for debugging
alai8 Mar 31, 2021
5657678
fix imagetool params
alai8 Mar 31, 2021
664e2af
fix wdtVersion param
alai8 Mar 31, 2021
304ea55
Merge pull request #2293 from oracle/update-samples-wip
alai8 Mar 31, 2021
d360c4a
use additionalBuildCommands to create and copy domains/applications d…
alai8 Mar 31, 2021
95b9af0
clarify that tools directory is configurable
alai8 Mar 31, 2021
cdd8594
set DOMAIN_TYPE env var in create domain job for use in createDomain.…
alai8 Apr 1, 2021
a4ec35c
parameterize ItFmwSample test to test both wdt and wlst for domain on pv
alai8 Apr 1, 2021
b15279c
minor doc fixes
alai8 Apr 2, 2021
e5bcfac
remove validation for configuredManagedServerCount for fmw domain-hom…
alai8 Apr 2, 2021
f9d2c12
encrypt model before calling imagetool to create domain in image
alai8 Apr 7, 2021
3f4e664
Merge branch 'main' into update-samples-pw
alai8 Apr 8, 2021
6c8c2e3
provide wdt encryption key via new -n create-domain.sh option
alai8 Apr 9, 2021
97b8e6d
Merge branch 'main' into update-samples-pw
alai8 Apr 12, 2021
636d0d1
remove merge conflict leftover
alai8 Apr 12, 2021
4ae34d3
remove merge conflict leftover
alai8 Apr 12, 2021
6f34831
add -n option to create-domain.sh to support optionally encrypt passw…
alai8 Apr 12, 2021
9363cae
correct merge conflict errors
alai8 Apr 12, 2021
bd1f4e5
document -n option for encryption key in create-domain.sh in domain-h…
alai8 Apr 12, 2021
22bf29f
Merge branch 'main' into update-samples-merge
alai8 Apr 13, 2021
1d66276
Merge branch 'main' into update-samples-merge
alai8 Apr 16, 2021
7f1bc88
Merge branch 'main' into update-samples
alai8 Apr 19, 2021
808808a
add sample on using wlst script with imageTool to create WebLogic dom…
alai8 Apr 22, 2021
bd37662
comments
alai8 Apr 22, 2021
8d47751
add domainHome and createDomainWdtModel input parameters, and various…
alai8 Apr 23, 2021
3be689c
minor fixes
alai8 Apr 23, 2021
09813a6
minor cleanup
alai8 Apr 26, 2021
9106e0a
validation, improved error messsages, do not print password from prop…
alai8 Apr 26, 2021
943e4c9
exit 1 if wlst.sh return non-zero
alai8 Apr 26, 2021
7418f81
Merge pull request #2333 from oracle/update-samples-wlst
alai8 Apr 26, 2021
f90104f
move wdt model yaml files to wdt directory
alai8 Apr 26, 2021
ad89c7c
Merge branch 'main' into update-samples-wip
alai8 Apr 26, 2021
604549a
update usages text
alai8 Apr 26, 2021
fbd4164
doc fixes
alai8 Apr 26, 2021
e861c63
update doc with wlst script option
alai8 Apr 26, 2021
a37f2e5
support calling create-domain.sh from a different directory
alai8 Apr 27, 2021
019f776
parameterized testSampleDomainInImage to support both wdt and wlst
alai8 Apr 27, 2021
828abb1
updated to work with modified encrypt_model arguments
alai8 Apr 27, 2021
299a7b4
remove leftover debug message
alai8 Apr 27, 2021
54615d1
add wlst script support to fmw domain home in image sample
alai8 Apr 28, 2021
769aeab
add wlst support to fmw domain home in image sample
alai8 Apr 28, 2021
a84f565
fix usage of create-domain.sh
alai8 Apr 28, 2021
00c4dbe
Merge branch 'main' into update-samples-wip
alai8 Apr 28, 2021
132c661
misc comment/output fixes
alai8 Apr 28, 2021
aaebb2a
remove unused files
alai8 Apr 29, 2021
7f5f37a
fmw image chmod oracle:oracle -> oracle:root
alai8 Apr 29, 2021
c4b1332
minor cleanup
alai8 Apr 29, 2021
66be631
remove DEBUG_PORT and DEBUG_FLAG
alai8 Apr 30, 2021
450c39e
minor doc edits
alai8 Apr 30, 2021
6e04d3b
Merge branch 'main' into update-samples-wip
alai8 Apr 30, 2021
37140ed
move mode from create-domain.sh option to create-domain-inputs.yaml, …
alai8 May 3, 2021
3a3981f
doc fixes
alai8 May 3, 2021
17cb95b
minor doc fixes
alai8 May 3, 2021
19ccbab
fixes copy and paste leftover
alai8 May 3, 2021
285bdb9
Merge branch 'update-samples-wip' of github.com:oracle/weblogic-kuber…
alai8 May 3, 2021
7a2dfc8
error message fix
alai8 May 3, 2021
197ba32
replace -m wlst with mode: wlst in input file
alai8 May 3, 2021
cb4b47a
replace rcuSchemaPassword input parameters with -q create-domain.sh o…
alai8 May 3, 2021
02bd51d
replace rcuSchemaPassword input parameters with -q create-domain.sh o…
alai8 May 3, 2021
9b4be17
add -q create-domain.sh to doc for fmw infrastructure domain home in …
alai8 May 4, 2021
c140b67
Merge branch 'main' into update-samples
alai8 May 4, 2021
8ea6c55
WebLogic Server Kubernetes Operator -> WebLogic Kubernetes Operator
alai8 May 4, 2021
c8265aa
do not echo password and other minor fixes per review comments
alai8 May 5, 2021
79de633
doc fixes
alai8 May 5, 2021
e239da1
typo fix
ddsharpe May 6, 2021
f80d782
fixed typos
alai8 May 10, 2021
342bc8c
Merge branch 'main' into update-samples
alai8 May 10, 2021
969496b
samples doc update per review comments
alai8 May 11, 2021
a0b3f11
remove quotes from --tag
alai8 May 11, 2021
ba1ddbc
typo
alai8 May 11, 2021
715f227
update urls to doc sites for wdt and wit
alai8 May 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ productionModeEnabled: true
# OracleFMWInfrastructure Server image that the operator uses to start the domain.
#
# The create domain scripts generate a OracleFMWInfrastructure Server image with a domain home in it.
# By default, the scripts tag the generated OracleFMWInfrastructure server image as either
# `domain-home-in-image` or `domain-home-in-image-wdt` based on the `domainHomeImageBuildPath`
# property, and use it to set the `image` element in the generated domain YAML file.
# By default, the scripts tag the generated OracleFMWInfrastructure server image as
# `domain-home-in-image`, and use it to set the `image` element in the generated domain YAML file.
#
# If this property is set, the create domain scripts will use the value specified, instead of the
# default value, to tag the generated image and set the `image` in the domain YAML file.
Expand Down Expand Up @@ -135,18 +134,20 @@ domainPVMountPath: /shared
# See README.md for more help.
domainHomeImageBase: container-registry.oracle.com/middleware/fmw-infrastructure:12.2.1.4

# Location of the OracleFMWInfrastructure "domain home in image" image sample in the
# `https://github.com/oracle/docker-images.git` project.
# If not specified, use "./docker-images/OracleFMWInfrastructure/samples/12213-domain-home-in-image".
# Another possible value is "./docker-images/OracleFMWInfrastructure/samples/12213-domain-home-in-image-wdt",
# which uses WDT, instead of WLST, to generate the domain configuration.
domainHomeImageBuildPath: ./docker-images/OracleFMWInfrastructure/samples/12213-domain-home-in-image

# Uncomment to customize the WebLogic Deploy Tool (WDT) version used by the WDT
# "domain home in image" image sample in the Docker images project. See
# "domainHomeImageBuildPath". Set to "LATEST" to use the latest version.
# wdtVersion: LATEST

Uncomment to customize the WebLogic Image Tool (WIT) version.
# Set to "LATEST" to use the latest version.
# witVersion: LATEST

# Uncomment to customize the directory where WebLogic Deploy Tool (WDT)
# and WebLogic Image Tool (WIT) are installed.
# Default is /tmp/dhii-sample/tools
# toolsDir: /tmp/dhii-sample/tools

# Resource request for each server pod (Memory and CPU). This is minimum amount of compute
# resources required for each server pod. Edit value(s) below as per pod sizing requirements.
# These are optional.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,11 @@ function initialize {

initOutputDir

export WDT_DIR="/tmp/fmw-dhii-sample/tools"
export WDT_DIR=${toolsDir:-"/tmp/dhii-sample/tools"}
export WIT_DIR="${WDT_DIR}"

if [ -n "${wdtVersion}" ]; then
export WDT_VERSION=${wdtVersion}
fi

if [ -n "${witVersion}" ]; then
export WIT_VERSION=${witVersion}
fi
export WDT_VERSION=${wdtVersion:-LATEST}
export WIT_VERSION=${witVersion:-LATEST}

install_wit_if_needed || exit 1
}
Expand All @@ -191,15 +186,32 @@ function createDomainHome {

echo "Invoking WebLogic Image Tool to create a WebLogic domain at '${domainHome}' from image '${domainHomeImageBase}' and tagging the resulting image as '${BUILD_IMAGE_TAG}'."

echo "fmwDomainType is [${fmwDomainType}]"
# fmwDomainType is either JRF or RestrictedJRF. JRF does not support Dynamic Cluster Model
if [ "${fmwDomainType}" == "RestrictedJRF" ]; then
wdtModelFile=wdt_model_restricted_jrf_configured.yaml
wdtDomainType=RestrictedJRF
else
wdtModelFile=wdt_model_configured.yaml
wdtDomainType=JRF
fi

echo "debug- wdtModel is ${scriptDir}/${wdtModelFile}"
echo "debug- wdtVariables is ${domainPropertiesOutput}"
echo "debug- WDT_VERSION is ${WDT_VERSION}"
echo "debug- wdtDomainHome is ${domainHome}"
echo "debug- wdtDomainType is ${wdtDomainType}"


$WIT_DIR/imagetool/bin/imagetool.sh update \
--fromImage $domainHomeImageBase \
--tag ""${BUILD_IMAGE_TAG}"" \
--wdtModel ${scriptDir}/topology.yaml \
--tag "${BUILD_IMAGE_TAG}" \
--wdtModel ${scriptDir}/${wdtModelFile} \
--wdtVariables ${domainPropertiesOutput} \
--wdtOperation CREATE \
--wdtVersion ${WDT_VERSION} \
--wdtDomainType JRF \
--wdtDomainHome $domainHome #--chown=oracle:root
--wdtDomainType ${wdtDomainType} \
--wdtDomainHome ${domainHome} #--chown=oracle:root

#--wdtRunRCU \
return
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
domainInfo:
AdminUserName: '@@PROP:ADMIN_USER_NAME@@'
AdminPassword: '@@PROP:ADMIN_USER_PASS@@'
RCUDbInfo:
rcu_prefix: '@@PROP:RCU_SCHEMA_PREFIX@@'
rcu_schema_password: '@@PROP:RCU_SCHEMA_PASSWORD@@'
rcu_db_conn_string: '@@PROP:RCU_DB_CONN_STRING@@'
ServerStartMode: prod
topology:
Name: '@@PROP:DOMAIN_NAME@@'
AdminServerName: '@@PROP:ADMIN_NAME@@'
ProductionModeEnabled: '@@PROP:PRODUCTION_MODE_ENABLED@@'
Cluster:
'@@PROP:CLUSTER_NAME@@':
Server:
'@@PROP:ADMIN_NAME@@':
NetworkAccessPoint:
T3Channel:
ListenPort: '@@PROP:T3_CHANNEL_PORT@@'
PublicAddress: '@@PROP:T3_PUBLIC_ADDRESS@@'
PublicPort: '@@PROP:T3_CHANNEL_PORT@@'
'@@PROP:MANAGED_SERVER_NAME_BASE@@1':
Cluster: '@@PROP:CLUSTER_NAME@@'
ListenPort: '@@PROP:MANAGED_SERVER_PORT@@'
NumOfRetriesBeforeMsiMode: 0
RetryIntervalBeforeMsiMode: 1
JTAMigratableTarget:
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@1'
'@@PROP:MANAGED_SERVER_NAME_BASE@@2':
Cluster: '@@PROP:CLUSTER_NAME@@'
ListenPort: '@@PROP:MANAGED_SERVER_PORT@@'
NumOfRetriesBeforeMsiMode: 0
RetryIntervalBeforeMsiMode: 1
JTAMigratableTarget:
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@2'
'@@PROP:MANAGED_SERVER_NAME_BASE@@3':
Cluster: '@@PROP:CLUSTER_NAME@@'
ListenPort: '@@PROP:MANAGED_SERVER_PORT@@'
NumOfRetriesBeforeMsiMode: 0
RetryIntervalBeforeMsiMode: 1
JTAMigratableTarget:
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@3'
MigratableTarget:
'@@PROP:MANAGED_SERVER_NAME_BASE@@1 (migratable)':
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@1'
'@@PROP:MANAGED_SERVER_NAME_BASE@@2 (migratable)':
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@2'
'@@PROP:MANAGED_SERVER_NAME_BASE@@3 (migratable)':
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@3'

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
domainInfo:
AdminUserName: '@@PROP:ADMIN_USER_NAME@@'
AdminPassword: '@@PROP:ADMIN_USER_PASS@@'
ServerStartMode: prod
topology:
AdminServerName: '@@PROP:ADMIN_NAME@@'
Name: '@@PROP:DOMAIN_NAME@@'
ProductionModeEnabled: '@@PROP:PRODUCTION_MODE_ENABLED@@'
Cluster:
'@@PROP:CLUSTER_NAME@@':
Server:
'@@PROP:ADMIN_NAME@@':
NetworkAccessPoint:
T3Channel:
ListenPort: '@@PROP:T3_CHANNEL_PORT@@'
PublicAddress: '@@PROP:T3_PUBLIC_ADDRESS@@'
PublicPort: '@@PROP:T3_CHANNEL_PORT@@'
'@@PROP:MANAGED_SERVER_NAME_BASE@@1':
Cluster: '@@PROP:CLUSTER_NAME@@'
ListenPort: '@@PROP:MANAGED_SERVER_PORT@@'
NumOfRetriesBeforeMsiMode: 0
RetryIntervalBeforeMsiMode: 1
JTAMigratableTarget:
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@1'
'@@PROP:MANAGED_SERVER_NAME_BASE@@2':
Cluster: '@@PROP:CLUSTER_NAME@@'
ListenPort: '@@PROP:MANAGED_SERVER_PORT@@'
NumOfRetriesBeforeMsiMode: 0
RetryIntervalBeforeMsiMode: 1
JTAMigratableTarget:
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@2'
'@@PROP:MANAGED_SERVER_NAME_BASE@@3':
Cluster: '@@PROP:CLUSTER_NAME@@'
ListenPort: '@@PROP:MANAGED_SERVER_PORT@@'
NumOfRetriesBeforeMsiMode: 0
RetryIntervalBeforeMsiMode: 1
JTAMigratableTarget:
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@3'
MigratableTarget:
'@@PROP:MANAGED_SERVER_NAME_BASE@@1 (migratable)':
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@1'
'@@PROP:MANAGED_SERVER_NAME_BASE@@2 (migratable)':
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@2'
'@@PROP:MANAGED_SERVER_NAME_BASE@@3 (migratable)':
Cluster: '@@PROP:CLUSTER_NAME@@'
UserPreferredServer: '@@PROP:MANAGED_SERVER_NAME_BASE@@3'

Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ function createDomainHome {
echo "Invoking WebLogic Image Tool to create a WebLogic domain at '${domainHome}' from image '${domainHomeImageBase}' and tagging the resulting image as '${BUILD_IMAGE_TAG}'."

$WIT_DIR/imagetool/bin/imagetool.sh update \
--fromImage $domainHomeImageBase \
--tag ""${BUILD_IMAGE_TAG}"" \
--fromImage "$domainHomeImageBase" \
--tag "${BUILD_IMAGE_TAG}" \
--wdtModel ${scriptDir}/topology.yaml \
--wdtVariables ${domainPropertiesOutput} \
--wdtVariables "${domainPropertiesOutput}" \
--wdtOperation CREATE \
--wdtVersion ${WDT_VERSION} \
--wdtDomainHome $domainHome --chown=oracle:root
Expand Down