Sitecore Commerce Container SDK
The Sitecore Commerce Container SDK provides developers with a starting point for working with a containerized Commerce solution.
The SDK package includes resources such as Docker files, environment variable files, Docker compose YAML files, Kubernetes YAML files, and sample scripts that you can use and modify to:
- Install Sitecore XC on a developer workstation using containers.
- Deploy Sitecore Experience Commerce (XC) containers to the Azure Kubernetes Service.
- Build your own set of containers from your customized Commerce solution.
The Sitecore.Commerce.Container.SDK.*.ZIP package and supporting installation guides are available on the Sitecore Downloads website.
The structure of Sitecore Commerce Container SDK
The Sitecore.Commerce.Container.SDK.*.ZIP package is divided into multiple folders, some containing artifacts required to deploy Sitecore XC in a specific topology, while other folders contain common files, shared across multiple configurations.
At the highest level, the Sitecore.Commerce.Container.*.ZIP package contains the following folders:
| Folder name | Description |
|---|---|
| k8s-commerce-xc1 | Contains files required for a Kubernetes XC1 deployment topology. |
| postman | Contains sample sets of Postman environment files (in JSON format), to use with Commerce deployment running in Docker or Kubernetes. |
| scripts | Contains a set of supporting scripts and JSON files, provided as examples, that facilitate the creation of the Sitecore Experience Commerce container images using the Docker. Also contains a README file describing the purpose of each script. |
| xc0 | Contains files used to build and run a Sitecore XC instance in a XC0 topology, for deploying the Commerce Engine only. Note The XC0 topology for developer workstation does not include container images for the SXA storefront or supporting modules. For a deployment that includes the modules required to support the SXA storefront, you must install the XC1-CXA topology. |
| xc1 | Contains files used to build Sitecore XC1 topology images. The XC1 topology is for a scaled deployment that excludes modules supporting the SXA Storefront. You use this topology in a scaled, Commerce Engine only deployment, that does not use the SXA Storefront. Note The Sitecore Commerce Container SDK does not include all Docker compose YAML files required to deploy the container images of the XC1 topology. |
| xc1-cxa | Contains files necessary to build and run a Sitecore XC instance in a XC1 topology. This deployment topology includes the SXA Storefront. |
| xc-common | Contains files necessary to build common Sitecore XC images. Note Common images are used by all Sitecore XC topologies. |
xc-resources | Contains base resources that are used when building other Sitecore XC images. |
The xc-resources folder
The xc-resources folder contains all of the base configurations, transformations, scripts and common tools. You build the xc-resources image locally, and you must always build it first so that other Sitecore XC container images can consume the base resources it provides.
The following shows an example of the xc-resources folder structure:
In the following example, the .dacpac files in the listed WDP packages are copied to the destination folder xc1-cxa/mssql/dacpacs within the Sitecore.Commerce.Container.SDK folder. The .dacpac files matching the names master, core or web will be renamed to Sitecore.Master, Sitecore.Core and Sitecore.Web respectively, in the destination folder.