This repository contains code to demonstrate how to backport the development-only configuration feature that Sitecore introduced for containers in Sitecore 10.1, and how to create custom development-only configuration patches.
The code in this repository is a pared-down fork of the custom-images
in
Sitecore's docker-examples
repository. That repository is an excellent
reference for getting started with Sitecore and Docker.
- Run
init.ps1
to initialize the repository. - Run
docker-compose up -d --build
from the root of the repository.
Navigate to https://cd.devonlyconfigs.localhost to observe the effects of the development-only configurations on the site.
Change the SITECORE_DEVELOPMENT_PATCHES
environment variable in the
.env
file to adjust which development-only configurations are applied to
the site. Run docker-compose up -d
to apply the changes to the site. The
list of out-of-the-box development patches can be found here and custom
patches can be found in /docker/build/tools/dev-patches
.