
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 HCL License and Delivery 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
overlay
todevicemapper
. - 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
commerce
namespace for loading HCL Commerce images. - Switch your current namespace to use the
commerce
namespace by running the following command.cloudctl target -n commerce
- Create the Role Based Access Control (RBAC) on the
commerce
namespace. - Enable pod security policy control.Your pod
PodSecurityPolicy
must support the followingsecurityContext
settings:capabilities
:CHOWN
DAC_OVERRIDE
FOWNER
FSETID
KILL
SETGID
SETUID
SETPCAP
NET_BIND_SERVICE
NET_RAW
SYS_CHROOT
MKNOD
AUDIT_WRITE
SETFCAP
SYS_RESOURCE
IPC_OWNER
SYS_NICE
allowPrivilegeEscalation: true
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsUser: 0
privileged: 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 HCL License and Delivery portal.
Wait for the load to complete successfully, then search for the package in IBM Cloud Private by using thecommerce
search term. - Optional: The HCL Commerce Version 9 default Docker image is uploaded to the
commerce
namespace. 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-vaultconsul
or
from 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-vaultconsul
or
by using the Helm command.hcl-commerce-vaultconsul
- Deploy
ibm-websphere-commerce
or
from 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-commerce
This process involves two deployments, one for authoring and one for live.- For authoring:
- Click Catalog.
- Search for
commerce
. - Click
ibm-websphere-commerce
or
.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
commerce
namespace 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-commerce
or
.hcl-commerce
- In the Release Name, enter
demoqalive
. - Select
commerce
as 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-commerce
or
by using the Helm command.hcl-commerce
- Map the IP address and host names.
- Verify the deployment of the HCL Commerce environment.