Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 1.89 KB

README.md

File metadata and controls

30 lines (16 loc) · 1.89 KB

Sitecore Sample Solution

Example of a simple Sitecore solution configured to be deployed, during development, to a docker instance.

Prerequisites

As Sitecore does not provide a set of docker images you need to first build them using the instructions in the sitecore-docker repo.

Usage

  1. Open the solution in Visual Studio and invoke the publish operation on the SampleSite project. This will build the project and output its content to the .artifacts folder.

  2. Create the folders .logs\sitecore and .logs\xconnect in the root of the solution.

  3. Invoke docker-compose up -d. This will bring Sitecore up, the files from the .artifacts folder are copied to the webroot of Sitecore. Logs are output in the .logs folder.

  4. Sitecore should be available under http://sitecore/.

  5. If you are using Unicorn, you don't need to change the default serialization folder. Serialized items are picked from the serialization folder. Open the http://sitecore/unicorn.aspx page and either serialize or sync.

  6. When you no longer need Sitecore running, you can do docker-compose stop to stop all the containers, but maintain their state.

  7. If at any point you need to remove the Sitecore instance simply do a docker-compose down. You can always deploy again from scratch invoking docker-compose up -d again.

Known issues

  • Debugging is not yet available
  • Windows containers are quite resource intensive. Adjust the cpu_count and memory values in the docker-compose.yml file if necessary. Eventually SOLR and MSSQL should be moved to Linux containers.
  • Sitecore Rocks is not enabled by default. You need to copy the files to the root of sitecore. You could temporarily place them in the .artifacts folder for them to get copied to the site root.