Deploy custom modules
Version: 10.5
For Sitecore components, by default, you deploy only the Solr collections and dacpacs included in the platform. In Sitecore 10.1 and later versions you can also deploy custom modules.
If the module you want to deploy requires database updates and/or custom Solr collections, you might need to build a new layer on top of the mssql-init and/or solr-init images.
Add database updates to a module
To add database updates to a module:
- Build a new layer on top of the
mssql-initimage. - In your build-script, add a command for the following action:
- Copy the module dacpacs from the module asset image into the
c:\module_name_datafolder for the new image.
- Copy the module dacpacs from the module asset image into the
Add Solr collections to a module
To add Solr collections to a module:
-
Build a new layer on top of the
solr-initimage. -
Add the Solr collections module configuration files from the module assets image to the
c:\datafolder.NoteYou must use the JSON file format for collections. If the module name is
sxa, you can, for example, name the Solr collections filecores-sxa.json.
If you have suggestions for improving this article, let us know!