
Deploying an HCL Commerce environment locally for testing, debugging, or developing
You can deploy an HCL Commerce environment locally for developing, testing, or debugging. This method is suitable if you want to set up a local production environment for your own use.
You must build a more complex system for your end-use production environment. For more information, see Planning your production environment infrastructure.
Before you begin
- Ensure that the Docker images are loaded to your private Docker registry. If you are an administrator responsible for your Docker registry, see Downloading HCL Commerce software.
- Ensure that your machine has the minimum requirements of a 2 core processor, 8 GB RAM, and 50 GB free disk space.
Prepare IBM Db2 Version 11.1.2.2 or later for use with your HCL Commerce application. For more information, see Using an IBM Db2 database.
Prepare Oracle 12c Release 2 or later for use with your HCL Commerce application. For more information, see Using an Oracle database.
Procedure
-
Install Docker.
-
Download the following sample file and update fields to suit
your environment.
Note: If the link does not prompt you to save, right-click and save the file. Open the file in a source code editor to view and edit in the proper YAML format.
The YAML files are samples that assume that you are using a Db2 Docker image. Ensure that you update all the parameters that are in angle brackets <>. The sample files are commented with descriptions of the parameters.
- In a command line, go to where you downloaded the docker-compose.yml file.
-
Run the following command to download the Docker images and deploy the Docker containers.
docker-compose -f docker-compose.yml up -d
Note:- If the images are not already on your machine, the command downloads Docker images from your registry. The images are approximately 10 GB in total so the duration of this command depends on your Internet connection.
- Whenever your Docker virtual machine is restarted, restart the Docker containers by rerunning
the
docker-compose -f file up -d
command.
-
If you loaded sample data into your database, then build the
Solr-based search index.
-
Ensure that you can log in to Management Center.
- https://transaction_server_hostname:8000/lobtools/cmc/ManagementCenter>
-
Ensure that you can visit the Aurora starter store.
- https://store_server_hostname:8443/wcs/shop/en/auroraesite
What to do next
- Learn how to load data to your database, such as your store catalog. For more information, see Data Load utility.
- Experiment with configuring HCL Commerce by using utilities in the Utility server Docker container or by using Run Engine commands.
- Learn how to package custom code that can be deployed to your Docker images. For more information, see Packaging customized code for deployment
- Learn how to update your Docker images with the packaged custom code. For more information, see Building a custom Docker image from a deployable package.