IBM Support

Updating WebSphere Liberty in IBM Watson Explorer oneWEX

Fix Readme


Abstract

Follow the procedures in this document to update WebSphere Liberty used in IBM Watson Explorer oneWEX.

Content

Steps for Linux and Windows environment

  1. Make sure that onewex container ("wex12dae" container) is running. If it is not running, execute the wexdocker script (/root/ibm/wex/bin/wexdocker.sh in Linux, C:\IBM\wex\bin\wexdocker.bat in Windows) to start.
  2. Copy the wlp-core-embeddable-<version>.zip file into the temporary directory in the container, and change its ownership to dadmin. For example,
    docker cp wlp-core-embeddable-22.0.0.9.zip wex12dae:/tmp/
    docker exec -u 0 wex12dae chown dadmin:dadmin /tmp/wlp-core-embeddable-22.0.0.9.zip
  3. Launch a shell in the container.
    docker exec -it wex12dae bash
  4. Stop all sessions.
    wexcontrol.sh stop all
  5. Rename the old wlp directory.
    mv /opt/ibm/wlp/ /opt/ibm/wlp.old
  6. Extract wlp-core-embeddable-<version>.zip.
    unzip /tmp/wlp-core-embeddable-22.0.0.9.zip -d /opt/ibm/
  7. Remove extracted wlp/usr directory.
    rm -rf /opt/ibm/wlp/usr
  8. Move usr directory from old to new wlp directory.
    mv /opt/ibm/wlp.old/usr /opt/ibm/wlp/
  9. Remove wlp.old directory and the wlp-core-embeddable-<version>.zip file.
    For example,
    rm -rf /opt/ibm/wlp.old /tmp/wlp-core-embeddable-22.0.0.9.zip
  10. Exit the container shell to return to the host shell.
    exit
  11. Stop the wex12dae container.
    docker stop wex12dae
  12. Execute docker commit to save the changes.
    For example, if the current version of oneWEX docker image is "12.0.3.2370" and wlp version of iFix is "22.0.0.9",
    docker commit wex12dae ibm-wex-ee:12.0.3.2370-wlp22009
  13. Modify config to use new modified docker image.
    1. Execute vi /root/ibm/wex/config/wex.json in Linux, or open C:\IBM\wex\config\wex.json with some text editor in Windows.
    2. Rewrite the dockerImage value to the committed image name and tag in above step 
      From
           "dockerImage" : "ibm-wex-ee:12.0.3.2370",
      to
           "dockerImage" : "ibm-wex-ee:12.0.3.2370-wlp22009", 
    3. Save the change
  14. Restart oneWEX container.
    Execute wexdocker script (/root/ibm/wex/bin/wexdocker.sh in Linux, C:\IBM\wex\bin\wexdocker.bat in Windows).

Notes:

  • If you want to update IBM Java Runtime of oneWEX as well, update Java Runtime first and then update WebSphere Liberty.

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS8NLW","label":"IBM Watson Explorer"},"ARM Category":[{"code":"a8m0z000000cvvoAAA","label":"Documentation"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"12.0.3"}]

Document Information

Modified date:
22 September 2022

UID

ibm16573941