Setting up the HCL Commerce Solr-based Next.js store development environment
The Orchestration service acts as a bridge between Ruby applications that can only recognize Elastic-based search formats, and Solr-based search services. If you plan to develop for Ruby applications for use with a Solr-based search solution, you must configure the Orchestration service to test your storefronts in an HCL Commerce development environment.
For more information on the Orchestration service, see Orchestration service.
Before you begin
- Set up an HCL Commerce development environment:
- Install or upgrade to HCL Commerce Developer 9.1.16.0 or greater.
- Configure your HCL Commerce Developer Legacy environment for use with the Solr-based search solution. For more information on the Solr-based search solution, see Using Apache Solr as your search solution.
- Set up an HCL Commerce Developer Next.js Store environment.
- Ensure that your environment meets both hardware and software requirements:
- For software requirements, review Supported software levels, fixes, and settings for HCL Commerce.
- For hardware requirements, review ../refs/rigrechw.html.
Configure Docker on Windows: - If you are using Microsoft Windows: Configure Docker Desktop to support HCL Commerce’s resource and connectivity needs.
- Allocate Resources to Docker: HCL Commerce requires significant resources to run
smoothly. These settings prevent performance issues with Solr and Orchestration
containers.
- To allocate:
- Open Docker Desktop.
- Click
- Set:
- CPUs: 8 cores
- Memory: 32 GB
- Disk Space: 80 GB
- Click Apply and Restart to save the changes and restart Docker.
- To allocate:
- Enable Docker Daemon Access: This allows HCL Commerce tools to
communicate with Docker. HCL Commerce requires quite a bit of resources
to run smoothly. These settings prevent performance issues with Solr and
Orchestration container.
- In Docker Desktop, go to
- Check Expose daemon on tcp://localhost:2375 without TLS.
- Click Apply and Restart to save the changes and restart Docker.
- Allocate Resources to Docker: HCL Commerce requires significant resources to run
smoothly. These settings prevent performance issues with Solr and Orchestration
containers.
- If you are using Microsoft Windows: Configure Docker Desktop to support HCL Commerce’s resource and connectivity needs.
Procedure
-
Using the following env.sh configuration to enable orchestration
within your HCL Commerce development environment.
SEARCH_ENGINE=solr DEPLOY_TYPE=toolkit REACT_STORE_ENABLED=false LICENSE_ACCEPTED=accept ENV_TYPE=auth TOOLKIT_HOST=<toolkitHost> TOOLKIT_HOST_IP=<toolkitHostIP> TOOLING_HOST=<toolingHost> ORCHESTRATION_ENABLED=true ORCHESTRATION_IMAGE=<orchestrationImage> SPIUSER_PWD_ENCRYPTED=<encryptedSpiUserPassord> - Verify that all of the containers are up and healthy.
-
Run the HCL Commerce Developer Nextjs store configuration script.
Results
What to do next
Note: the Cache Manager application can be deployed more easily by updating your deployment env.sh file and setting the CACHE_ENABLED and CACHE_APP_IMAGE parameters.