...
The docker image has been tested with the Sitecore’s custom-images site from their docker-examples repo, which runs Sitecore 10.3. In the following we will describe how what we installed the module as part of the docker containers.
Open docker-examples/custom-images/docker-compose.override.yml and add the image digizuiternd/dfs:10.1.0 to cm.
Code Block cm: image: ${REGISTRY}${COMPOSE_PROJECT_NAME}-xp0-cm:${VERSION:-latest} build: context: ./docker/build/cm args: BASE_IMAGE: ${SITECORE_DOCKER_REGISTRY}sitecore-xp0-cm:${SITECORE_VERSION} SPE_IMAGE: ${SITECORE_MODULE_REGISTRY}sitecore-spe-assets:${SPE_VERSION} SXA_IMAGE: ${SITECORE_MODULE_REGISTRY}sitecore-sxa-xp1-assets:${SXA_VERSION} CET_IMAGE: digizuiternd/dfs:10.1.0 TOOLING_IMAGE: ${SITECORE_TOOLS_REGISTRY}sitecore-docker-tools-assets:${TOOLS_VERSION} SOLUTION_IMAGE: ${REGISTRY}${COMPOSE_PROJECT_NAME}-solution:${VERSION:-latest} depends_on: - solution volumes: - ${LOCAL_DEPLOY_PATH}\website:C:\deploy - ${LOCAL_DATA_PATH}\cm:C:\inetpub\wwwroot\App_Data\logs - ${LOCAL_DATA_PATH}\devicedetection:C:\inetpub\wwwroot\App_Data\DeviceDetection environment: SITECORE_DEVELOPMENT_PATCHES: CustomErrorsOff entrypoint: powershell -Command "& C:\\tools\\entrypoints\\iis\\Development.ps1"language xml Open docker-examples/custom-images/docker/build/cm/Dockerfile and add the folowing.
Open docker-examples/custom-images/docker-compose.override.yml and add the image digizuiternd/dfs:10.1.0 to mssql-init
Open docker-examples/custom-images/docker/build/mssql-init/Dockerfile and add the folowing.
Add dynamic configuration + transform the web.config.
To add the dfs patch configuration file (DFS 10.1.0 - 3 Setting up Sitecore ), go to the folder custom-images/docker/deploy/website.
Create the folder path App_Config\Include\damforsitecore. Here you place the DFS config patch file.
Next, we want to add the DFS media handler to the web.config. Open custom-images/docker/build/cm/transforms/Web.config.xdt and add this.The DAM for Sitecore module comes with 2 custom solr indexes named dfs_assets_master_index and dfs_assets_web_index. We used this guide https://sitecore.namics.com/custom-solr-indexes-and-config-sets-in-sitecore-docker-containers/ .
In the guide under the section Provide custom configs sets. You need to provide the config set for your custom cores. We took the config set from a running Sitecore 10.3, solr instance.Now spin up the docker container docker-compose up -d.
If everything works as expected, then go to the solr UI and add a dynamic field to the 2 custom dfs index.
Name: *_lc and field type: lowercase. See below.Open Sitecore CM and go to control panel -> Populate Solr Managed Schema. Select the index dfs_assets_master_index and populate.
Now you can continue with the standard installation DFS 10.1.0 - 5 Synchronize Silo