Preparing and deploying your runtime environment with IBM Cloud Private
For a convenient way of setting up a runtime environment, use the IBM Cloud Private (ICP) application platform.
Starting from HCL Commerce Version 9.1, HCL Commerce does not provide IBM Cloud Private offline package as part of the provided eAssemblies. However, HCL Commerce can still be deployed on ICP by treating ICP as a kind of Kubernetes cluster. All updated HCL Commerce docker images can be downloaded from the My HCLSoftware portal, and pushed to a private docker registry accessible by the ICP cluster. A helm upgrade command can be used to upgrade HCL Commerce with new images.
Before you begin
- Review the prerequisites for HCL Commerce and IBM Cloud Private.
- Install the IBM Cloud Private (3.1+) cluster.
- If you are using Centos7, ensure that you have changed the default
Docker storage driver from
overlaytodevicemapper. - Install the Cloud Private command line interface (CLI).
About this task
The following steps must be completed on the master node of your IBM Cloud Private cluster.
Procedure
-
Download the IBM Cloud Private HCL Commerce installation
archives from the HCL License and Delivery portal.
See HCL Commerce releases to review and obtain the appropriate IBM Cloud Private package. Note, again, that these images were discontinued for HCL Commerce Version 9.1.
- Create the
commercenamespace for loading HCL Commerce images. - Switch your current namespace to use the
commercenamespace by running the following command.cloudctl target -n commerce - Create the Role Based Access Control (RBAC) on the
commercenamespace. - Enable pod security policy control.Your pod
PodSecurityPolicymust support the followingsecurityContextsettings:capabilities:CHOWNDAC_OVERRIDEFOWNERFSETIDKILLSETGIDSETUIDSETPCAPNET_BIND_SERVICENET_RAWSYS_CHROOTMKNODAUDIT_WRITESETFCAPSYS_RESOURCEIPC_OWNERSYS_NICE
allowPrivilegeEscalation: truereadOnlyRootFilesystem: falserunAsNonRoot: falserunAsUser: 0privileged: false
- Load the HCL Commerce archive into your IBM Cloud Private Catalog by
running the following command.
Where:# cloudctl catalog load-archive --archive archiveFile.tgz- archiveFile.tgz
- The full path to the archive file that you downloaded from My HCLSoftware portal.
Wait for the load to complete successfully, then search for the package in IBM Cloud Private by using thecommercesearch term. - Optional: The HCL Commerce Version 9 default Docker image is uploaded to the
commercenamespace. If you deploy HCL Commerce Version 9 on a different namespace or are using a non-default service account, create theimagePullSecrets. For more information, see Creating imagePullSecrets for a specific namespace. - Create a Docker image policy.
- Deploy
ibm-websphere-commerce-vaultconsulorfrom the IBM Cloud Private catalog. If you prefer to deploy by using Helm command, skip to the next step.
hcl-commerce-vaultconsul - Optional: Deploy
ibm-websphere-commerce-vaultconsulorby using the Helm command.
hcl-commerce-vaultconsul - Deploy
ibm-websphere-commerceorfrom the IBM Cloud Private catalog. If you prefer to deploy by using Helm command, skip to the next step. The HCL Commerce Version 9 IBM Cloud Private enabled package uses a quick deployment configuration that is set up with default configurations. .
hcl-commerceThis process involves two deployments, one for authoring and one for live.- For authoring:
- Click Catalog.
- Search for
commerce. - Click
ibm-websphere-commerceor.
hcl-commerce - In the Release Name, enter
demoqaauth.Note: If you want to deploy to another namespace, update the NameSpace value in the Common Configuration section. Be sure to input the imagePullSecrets value that you defined previously. - Select
commercenamespace as the target. - If want to pull Docker images from a Docker repository from outside of IBM Cloud Private cluster, update the Image Repository.
- Click Install.
- For live:
- Click Catalog.
- Search for commerce.
- Click
ibm-websphere-commerceor.
hcl-commerce - In the Release Name, enter
demoqalive. - Select
commerceas the Target Namespace. - Set the Environment Type to live.
- Set the Binding CongMap to
demoqalive-config.properties. - Set the Database Hostname in Quick Deploy
Configuration to
demoqalive. - Ensure that Enale Creat Sample Config is selected.
- Click Install.
- For authoring:
- Optional: Deploy
ibm-websphere-commerceorby using the Helm command.
hcl-commerce - Map the IP address and host names.
- Verify the deployment of the HCL Commerce environment.