You have a container orchestration system for running applications, such as Docker Desktop, which runs a local Blob store.
You have a lightweight server clone of Azure Blob storage, such as Azurite, running in a Docker container as local storage and you ran the following command from a command line.
Add the following three extensions to your config/localextensions.xml file.
azurecloudhotfolder
cloudcommons
cloudhotfolder
Start Docker Desktop.
From the command line, run the command to create an Azurite container.
docker run -p 10000:10000 -p 10001:10001 mcr.microsoft.com/azure-storage/azurite
In the config/local.properties file, create the following two properties:
Property
Value
cluster.node.groups
integration,yHotfolderCandidate
azure.hotfolder.storage.account.connection-string
The entry is a string made up of several parts that are separated by semicolons.
DefaultEndpointsProtocol=http
AccountName=<any_account_name>
AccountKey=<any base64 encoded string>
BlobEndpoint=http://<localhost>:11000/$<account_name> where the port is the published IP port of the Azure Blob storage emulator that runs against Docker port 10000.
Find the container in the Microsoft Storage Explorer and use the connection string and primary key to connect to the emulated Blob.
When you highlight the container name, a Properties tab along the bottom of the page contains the primary key and connection string.
Build and run your local SAP Commerce Cloud installation.
Once SAP Commerce Cloud starts with the new extensions and properties, it creates a Blob container in Azurite.
Run a system update to update the Type System definitions in the database for Cloud Hot Folders.
Open Administration Console.
Navigate to PlatformUpdate.
Select the following extensions.
azurecloud
cloudcommons
cloudhotfolder
azurecloudhotfolder
Click Update.
In Microsoft Storage Explorer, find the hybris container in your Blob storage account.
Create a test file with the name test.csv.
You can copy cloudhotfolder/resources/cloudhotfolder/test/hotfolder/product-00.csv and rename it to test.csv.
Upload the test file to the hybris container and put it in a folder with the name master/hotfolder.
Create the directory master/hotfolder in the hybris container in Microsoft Azure Storage Explorer.
Upload the test.csv file to master/hotfolder.
Results
In the Azurite console, the file is copied to the processing folder and then to the archive folder. If the impex import was unsuccessful, then the file is copied in the error folder. A confirmation message displays in the terminal and includes a list of the processing steps.
You’re now ready to upload files to Cloud Hot Folders (hybris/master/hotfolder).