Deploying with Solr-based search and an database using Docker Compose
The following steps highlight a basic deployment of with Docker Compose. This deployment is configured to deploy with the Solr-based search solution, and utilizes the as the database solution.
Note: The following steps detail the use of this process with the provided Docker image. This is due to its inclusion within the provided Docker Compose
files. This process is not incompatible with Oracle, however its use is outside of the scope of the
presented scenario. The prerequisite for this procedure does include all that you will need to know
to successfully deploy with Docker Compose using an Oracle database.
Before you begin
- Ensure that you have completed the prerequisites that are required. For the prerequisites for this Docker Compose deployment, see tdeploydocker91-pre.html.
Procedure
- Deploy the authoring environment applications.
- Copy the contents of the provided docker-compose-solr-commerce-oracle-auth-template.yml Docker Compose file into your custom docker-compose.yml Docker Compose file.
- Update the file to reflect the environment that you want to deploy.
- Accept the LICENSE required for all Docker containers. For example,
- LICENSE=accept. - Update the image tag for all Docker containers. For example,
image: ts-app:9.1. - Update the mandatory configuration parameters for the Transaction container. For example,
- adminPassword=passw0rd - SPIUSER_NAME=spiuser - SPIUSER_PWD=DFrt/KnXFukMl3VyuSg4vYm6f7Y7f1RogMUIUAdMakk= - DBHOST=authdb.hclcommerce.com - DBNAME=orclpdb1 - DBUSER=wcs - DBPASS=wcs1 - DBPORT=1521 - DBTYPE=oracle - DBAUSER=system - DBAPASSENCRYPT=u5fOjsJvd7QYYs29qTnqx418LVytXLHxhEu1Pg5IrzQ= - DBPASSENCRYPT=WVRDsn+rEpaSbm59Iw/yoYsNnH1U2ovg52j5nzdW1L0= - JWKS={base64}eyJrZXlzIjpbeyJrdHkiOiJSU0EiLCJraWQiOiJrMSIsIm4iOiJtc1NIbE9pVlRFRUgzMW9KYk1XcTFWU3NsS1dHRnAybmlpdUdzR293Qk5zR1hLWGU0SDI4cWlMZmdIMWVGdWVmdl81cEZOSUlKYlVSUjBkVWtPWGlxTDRrNTBxQ1Nmemo4S0ROTmsyYV9KakdobTZ6dFNPTnBtSDdzSWZJX2o3YlF4WWNzaVN4cklSWnBSOGdNem5TNmV2VXJmMWZZVWpVbEszd2RoMi1vc2t6NTVGR1A4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LT2lxeEZtNjV5MEFBaVlnOW5HN1ZlaVFUTzRwMDE0N0RlaDBxX3pFR1UyYzFWOUNFR1BhVUhNcEdSZGc4UVRCc01mRTVZWEx2ZkE2dVVqWllWaHNSVSIsImRwIjoiTFlRVWItSVA0M09Dc3g3SmVRZ3pUdE5ZZ3c0dnJzR01fVDh5Y3BVR25DQ0pDVTBDUW9VaTRpeWlNcXh6SFZXZUdGYzNjSWlVOFc5QnJpbFhzbVVuWVNudW9rSVhNeTJRSTl5eDZLQ1NFMk9GWUdNcXlqYzRDN2JaZV82QUhRaGJzelNaYWJrUjJBaFExNnI2WlRXbGN0bnNsMjQ0b1dzM3FVSjczZWRVUS1rIiwiZHEiOiJlYWF1TDkyNGVoXzJITWUxd1NDNk9rU1dlRjVBS1cxRjA5cXdxXzdqeDBwUjlMOUdFeWdld2xrTVBQRTROS19aOXRpOGo5cFpaN1R2YlpoU09tMDM0eU04aVpBTV9qbjZ0ZHJPSWl4bkhId1N2TXUzUElMVmlKeloxUnJaV0RmWmpIX2FUcVhpbzZONDhETUdYam8tQ3lUQW1BekNxM3lGNlROR1Z5b1MyVkUiLCJxaSI6IllUWFI4QjVRUE1jbzIzelo2Wi1jLTFhSVJuOF9BRWk5TGplZ2xEaVJ0T2E4dHpPZUdQeU9mX0h4WnpzMFItaVdpMWFET1dWR2tDd1pLdG5Uc2lMdFBQRUdSVzFRNXZlVHdZdjVlWHozR2F2VTBzS2RLQzBJSkpJaWdNa053UFIxLU5hLTRBVHprQ0pqbGd3QVFHZ0FySTR5Vk1TR2RGYXpCRm9FdjM3OTFkWSJ9XX0= - JWKS_KEYID=k1 - TOOLING_BASE_URL=https://auth.hclcommerce.com:7443/tooling - STOREWEB_HOST=auth.hclcommerce.com - Update the configuration for your search-master container.For example,
- adminPassword=passw0rd - SPIUSER_NAME=spiuser - SPIUSER_PWD=DFrt/KnXFukMl3VyuSg4vYm6f7Y7f1RogMUIUAdMakk= - DBTYPE=oracle - DBHOST=authdb.hclcommerce.com - DBPORT=1521 - DBNAME=orclpdb1 - DBUSER=wcs - DBAUSER=system - DBPASS=wcs1 - DBAPASSENCRYPT=u5fOjsJvd7QYYs29qTnqx418LVytXLHxhEu1Pg5IrzQ= - DBPASSENCRYPT=WVRDsn+rEpaSbm59Iw/yoYsNnH1U2ovg52j5nzdW1L0= - Update the
base64SpiUserPassword parameter within the health check section of the
search-master container, to the base64 encoded values
of spiUser:spiPassword.You can obtain this value by passing the values through the base64 system utility:
For example, the resulting value isecho -n "spiUser:spiPassword" | base64c3BpdXNlcjpwYXNzdzByZA==with the defaultspiuser:passw0rdcombination.
- Accept the LICENSE required for all Docker containers. For example,
- Copy the Oracle JDBC JDK8 driver (ojdbc8.jar) to the same location where your Docker Compose file is located, if you have not already.
- Start the authoring environment.Run
docker-compose up -d. - Verify that all of the Docker containers are up and healthy.Run
docker-compose ps.
- Deploy the live environment applications.
- Copy the contents of the provided docker-compose-solr-commerce-oracle-live-template.yml Docker Compose file into your custom docker-compose.yml Docker Compose file.
- Update the file to reflect the environment that you want to deploy.
- Accept the LICENSE required for all Docker containers. For
example,
- LICENSE=accept. - Update the image tag for all Docker containers. For
example,
image: ts-app:9.1. - Update the following configuration parameters for the .For example,
- adminPassword=passw0rd - SPIUSER_NAME=spiuser - SPIUSER_PWD=DFrt/KnXFukMl3VyuSg4vYm6f7Y7f1RogMUIUAdMakk= - DBTYPE=oracle - DBHOST=livedb.hclcommerce.com - DBPORT=1521 - DBNAME=orclpdb1 - DBUSER=wcs - DBPASS=wcs1 - DBAUSER=system - DBAPASSENCRYPT=u5fOjsJvd7QYYs29qTnqx418LVytXLHxhEu1Pg5IrzQ= - DBPASSENCRYPT=WVRDsn+rEpaSbm59Iw/yoYsNnH1U2ovg52j5nzdW1L0= - JWKS={base64}eyJrZXlzIjpbeyJrdHkiOiJSU0EiLCJraWQiOiJrMSIsIm4iOiJtc1NIbE9pVlRFRUgzMW9KYk1XcTFWU3NsS1dHRnAybmlpdUdzR293Qk5zR1hLWGU0S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commerce.com:7443/tooling - ELASTICSEARCH_ENABLED=false - STOREWEB_HOST=live.hclcommerce.com - Update the following configuration for the search-repeater and search-slave
containers:
Parameter name Description SPIUSER_NAME Your SPIUSER name. The default value is spiuser. SPIUSER_PWD The encrypted password for the spiuser. For more information, see tiginstall_definespi.html DBHOST The database hostname. DBNAME The name of the database. DBUSER The database user name. DBPASS The database user password. DBTYPE The database type. For example,- SPIUSER_NAME=spiuser - SPIUSER_PWD=DFrt/KnXFukMl3VyuSg4vYm6f7Y7f1RogMUIUAdMakk= - DBHOST=livedb.hclcommerce.com - DBNAME=orclpdb1 - DBUSER=wcs - DBPASS=wcs1 - DBPORT=1521 - DBTYPE=oracle - Update the search-master host configuration for the search-repeater
containers:
Parameter name Description search_master The IP and port of the search node to poll from. Mandatory for the search-repeater/subordinate on the live environment. - For the search-repeater node, specify the
search-master-ip:3737 - For the search-subordinate node, specify the
search-repeater-ip:3737
For example,- "search_master:searchmaster.hclcommerce.com" - For the search-repeater node, specify the
- Update the base64SpiUserPassword
parameter within the health check section of the search-repeater and search-slave
containers, to the base64 encoded values
of spiUser:spiPassword.You can obtain this value by passing the values through the base64 system utility:
For example, the resulting value isecho -n "spiUser:spiPassword" | base64c3BpdXNlcjpwYXNzdzByZA==with the defaultspiuser:passw0rdcombination.
- Accept the LICENSE required for all Docker containers. For
example,
- Ensure that the Oracle ojdbc8 driver (ojdbc8.jar) is still in the same location where the Docker Compose file (docker-compose.yml) is located. If it is not, place a copy there.
- Start the live environment.Run
docker-compose up -d. - Verify that all of the Docker containers are up and healthy.Run
docker-compose ps.
Results
What to do next
- Build your Search index. For information on building your Search index, see ../../search/tasks/tsdsearchbuildindex.html.
- Access your new environment tools:
- : https://commerceHost:8000/lobtools
- The Aurora B2C starter store: https://commerceHost:8443/wcs/shop/en/auroraesite
- The Aurora B2B starter store: https://commerceHost:8443/wcs/shop/en/aurorab2besite