The Prepare Model Tool prepares WDT model files for deploying to specific target environments. These customizations include:
To use the Prepare Model Tool, simply run the
prepareModel shell script with the correct arguments. To see the list of valid arguments, simply run the shell script with the
-help option (or with no arguments) for usage information.
For example, to prepare model files for use with WebLogic Kubernetes Operator, run the tool with
-target wko as follows:
$ $WLSDEPLOY_HOME/bin/prepareModel.sh -oracle_home /u01/wls12213 -model_file model1.yaml, model2.yaml -target wko -output_dir $HOME/wko-output
In the output directory, you will find:
model1.yaml model2.yaml wko_variable.properties create_k8s_secrets.sh wko-domain.yaml
You can then customize the
create_k8s_secrets.sh to provide environment-specific values.
For more information about additional target environments and options, see Target environments.
||(Required). Location of the model file. This can also be specified as a comma-separated list of models, where each successive model layers on top of the previous ones.|
||Home directory of the Oracle WebLogic installation. Required if the
||(Required) Location where to write the output files.|
||(Required) Name of the target configuration such as
||The location of the property file containing the values for variables used in the model. This can also be specified as a comma-separated list of property files, where each successive set of properties layers on top of the previous ones.|