Apply the Patched Images to the Running JRF Domain
For Domain in PV domains, the container image contains only the JDK and the WebLogic Server binaries, and its domain home that gets created is located in a persistent volume. For this domain home source type, you can create your own patched images using the following steps or you can obtain the patched images from Oracle Container Registry. See Obtain Images From the Oracle Container Registry.
- Add the patch to the WebLogic Image Tool (WIT)
cache.
$ /u01/shared/tools/imagetool/bin/imagetool.sh cache addPatch --patchId=<patch_id> --path=<path>
- Check if the patch is added correctly to the WIT
cache.
$ /u01/shared/tools/imagetool/bin/imagetool.sh cache listItems
- Create the container image with all the
patches.
/u01/shared/tools/imagetool/bin/imagetool.sh update --fromImage <primordial_domain_image> --tag <tag_for_the_final_build_image> --patches <patch_ids>
- Update the domain's configmap with the new base
image.
kubectl edit configmap <configmap_name> -n <domain_ns>
This command will open the Vim editor where you can replace the value of
primordial_domain_image
with the new image.
- Edit the domain resource image reference with the new image
name in
domain.yaml
. For example:output/weblogic-domains/<domin_name>/domain.yaml
- Execute the
kubectl apply
command to create the domain resource YAML file.kubectl apply -n <domain_name>_ns -f domain.yaml
The Operator automatically performs a rolling restart of the WebLogic domain to update the Oracle Home of the servers.