Update a Domain Configuration
Use the Jenkins job to update a base image of a domain with a different base image for Oracle WebLogic Server for OKE, and deploy or undeploy applications, shared libraries and resources to the new domain using a sample application or user-provided artifacts.
You can either use an existing base image or update the base image for your domain. If you created a new base image to apply patches to the JDK and WebLogic binaries, or to apply new set of OS packages, you can update the existing base image in your domain.
When you run the update domain job, the primordial domain created using the create domain job is used as the base domain, and updates are applied to this domain.
Therefore, if you run the update domain job for the first time and deploy an application-A in this job, the resulting primordial domain will have application-A deployed. Then, if you run the update domain job for the second time and deploy only application-B in the job, the resulting primordial domain will have only application-B deployed. That is, the state on top of the primordial domain is not stored within the image and this allows you to use the source control system to store WebLogic Deploy Tooling (WDT) model to persist any configuration changes on top of the primordial domain.
To know about the primordial domain, see Mutate the Domain Layer in WebLogic Kubernetes Operator documentation.
You can extend your model Yaml file with new definitions using the update domain job. For model Yaml file, see About WebLogic Deploy Tooling.
To update the WebLogic domain you can provide a WDT model file, a WDT properties file, or an archive file. The archive file can contain applications, libraries, model file along with other artifacts. For the structure of the archive file, see archive file in WebLogic Deploy Tooling documentation.
When you are updating the domain, if you provide a model through the WDT model field and within the archive, the model specified in the field takes precedence.
-
File Upload - Uploads the file from the local system.
-
Object Storage - Uses the pre-authenticated URL on the Object Storage.
-
Shared File System - Uses the path of the shared file storage.
The NFS shared file system path is mounted on
/u01/shared
location on the administration host.Note:
Ensure that you specify the full path of the location of the zip file on the shared file system.
To update the domain configuration:
- The model Yaml file must contain the required secrets like WebLogic Admin Password, runtime encryption secret, and Repository Schema Utility (RCU) schema user password.
- In case of Oracle Cloud Infrastructure Database (DB system), the model Yaml file must include the datasource secret and in case of Oracle Autonomous Database, the model Yaml file must include the datasource secret and wallet with the keystore passwords. See About Data Sources.
See RCU Connection Information in WebLogic Deploy Tooling documentation.
Note:
Every time you update a domain, you have to provide a model containing all the resources (applications, libraries, and so on) you want your domain to have. If your domain currently have application-A installed, and you update your domain with a model with application-B, then the domain will have only application-B. If you want to have both applications, you have to use a model with both application-A and application-B.
If you are running the update domain job for the
first time, then to deploy the application, you must manually approve new
java.io.File java.lang.String
and method java.io.File
under
jenkins/scriptApproval/
. See Approve Scripts to View Parameters.
You can use the WebLogic Server Administration Console to verify that the domain is updated with all the specified parameters. See Access the WebLogic Console.