Deploying an HCL Commerce Version 9.0.0.0 to 9.0.1.17 authoring environment with Docker Compose
Deploy a simple HCL Commerce authoring environment to create an
environment where site administrators and business users can update the store catalog or store
configurations by using HCL Commerce tools.With this simple authoring
environment deployment, you prepare a search container as the
search_master
node.
The live environment that you use with this authoring environment should include a
search_repeater
and search_slave
that communicates with the
search_master
in the authoring environment.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.
- Ensure that you are deploying the authoring environment on a machine that is not running an existing HCL Commerce environment.
- Prepare a Db2 database for use with HCL Commerce or Prepare an Oracle database for use with HCL Commerce.
- Load the HCL Commerce authoring database schema by setting type=staging.
Procedure
-
Install Docker.
-
Download the following sample Docker Compose file based on how the database is
configured.
Option Docker Compose sample Database running inside a Docker container Download the following file: 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.
Database running on a standard server (not in a Docker container) Download the following file: 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.Ensure that you update all the parameters that are in angle brackets <>. The sample files are commented with descriptions of the parameters. - Download the Oracle JDBC driver java/ojdbc8.jar file from the Oracle installation folder, and put it under the directory where you saved the Docker Compose file.
- In a command line interface, go to where you saved the Docker Compose file.
-
Run the applicable command to deploy the Docker containers based on the
Docker Compose file that you have.
-
docker-compose -f docker-compose-auth.yml up -d
-
docker-compose -f docker-compose-auth-extdb.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, you need to manually restart the Docker containers by rerunning this docker-compose -f <file> up -d command.
-
-
If you loaded sample data in your database, then build the search index.
-
Ensure that you can log in to Management Center.
- https://<transaction_server_hostname>:8000/lobtools/cmc/ManagementCenter
-
If you loaded sample data into your authoring database, ensure that you can visit the sample
Aurora 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 by using utilities in the 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.