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
- Make sure that onewex container ("wex12dae" container) is running. If it is not running, execute the wexdocker script (
/root/ibm/wex/bin/wexdocker.shin Linux,C:\IBM\wex\bin\wexdocker.bat in Windows) to start. - 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 - Launch a shell in the container.
docker exec -it wex12dae bash - Stop all sessions.
wexcontrol.sh stop all - Rename the old wlp directory.
mv /opt/ibm/wlp/ /opt/ibm/wlp.old - Extract wlp-core-embeddable-<version>.zip.
unzip /tmp/wlp-core-embeddable-22.0.0.9.zip -d /opt/ibm/ - Remove extracted
wlp/usrdirectory.
rm -rf /opt/ibm/wlp/usr - Move usr directory from old to new wlp directory.
mv /opt/ibm/wlp.old/usr /opt/ibm/wlp/ - 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 - Exit the container shell to return to the host shell.
exit - Stop the wex12dae container.
docker stop wex12dae - 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 - Modify config to use new modified docker image.
Execute vi /root/ibm/wex/config/wex.jsonin Linux, or openC:\IBM\wex\config\wex.jsonwith some text editor in Windows.- 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", - Save the change
- Restart oneWEX container.
Execute wexdocker script (/root/ibm/wex/bin/wexdocker.shin Linux,C:\IBM\wex\bin\wexdocker.batin 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"}]
Was this topic helpful?
Document Information
Modified date:
22 September 2022
UID
ibm16573941