Testing the customizations
Complete this task to test your Order Hub customizations for containers.
Procedure
- For containers:
-
When you run Order Hub in the DTK, it runs in two containers:
- The base container has the IBM modules that are part of Order Hub.
- The extension container is an empty image builds that the user interface connects to.
- To test a customized image in the DTK, an additional set of containers are deployed. A second base container is deployed with a different configuration that allows it to connect to the customized image. Your extension container is deployed and will be called by the user interface. The set of containers used for customization testing use different ports than the regular Order Hub containers. Both sets of containers can be run at the same time.
-
To setup for customization testing in the DTK:
-
Edit the
devtoolkit_docker/compose/om-compose.properties
file and set the variablesORDERHUB_EXT_CUSTOM_IMAGE
andORDERHUB_EXT_CUSTOM_TAG
to the values used in build-customization.sh forimage_name
andimage_tag
.ORDERHUB_EXT_CUSTOM_IMAGE=om-orderhub-ext ORDERHUB_EXT_CUSTOM_TAG=mycompany-2022-05-30-1755
-
Run the following script:
./om-compose.sh setup-orderhub-custom
-
Go to the following URL:
https://<HOST>:<OH_BASE_CUSTOM_HTTPS_PORT>/order-management/
<HOST>
islocalhost
, or the host on which the Order Hub containers are running. The default port is7444
unless you set theOH_BASE_CUSTOM_HTTPS_PORT
property in thedevtoolkit_docker/compose/om-compose.properties
file. For example,https://localhost:7444/order-management/
-
Edit the
-
When the customization container is updated:
-
If necessary, update
ORDERHUB_EXT_CUSTOM_IMAGE
andORDERHUB_EXT_CUSTOM_TAG
inom-compose.properties
-
Run
./om-compose.sh setup-orderhub-custom
The following commands can be used to manage Order Hub containers:./om-compose.sh <command> <option>
command
can be:start stop restart
option
can be:orderhub - to run the command on both Order Hub images customorderhub - to run the command on both Order Hub images used for customization testing. orderhubbase - to run the command on the base Order Hub image orderhubext - to run the command on the extension Order Hub image customorderhubbase - to run the command on the base Order Hub image used for customization testing. customorderhubext - to run the command on the extension Order Hub image used for customization testing.
-
If necessary, update