Sitecore with Docker for Developers

Posted 17 April 2018 12:00 AM by Benjamin Moles, Senior .NET Developer @ ClearPeople

In the last few years, an innovative technology called Docker is gathering the attention of both, developers and system administrators. It is said that this can help to develop, deploy and manage running applications.

Another way to see it, may be as grease that can lubricate the three gears of Development, Deployment and Running/Management applications.

Sitecore and Docker

Sitecore recently created the following two repositories to centralise efforts that were already being undertaken separately by several community members. With this step, Docker starts to formalise a bit the Docker presence in the Sitecore ecosystem.

Docker Images

The docker images stored in the Sitecore’s “docker-images” repository aim to facilitate the creation of Sitecore containers specific for the different topologies:
XM0, XP0, XC0, XM1, XP1, XC1, …

More details can be found here and here.

Docker Demo

The Sitecore’s “docker-demo” repository contains sample projects to showcase specific scenarios with specific tooling of using Docker with Sitecore. At the time of writing this text there are two sample projects that will be described in the following section.

Simple Sample

The Simple Sample demo showcases a very simple Visual Studio 2017 project for a Sitecore Website.

With this example you can quickly see some of the advantages of Docker in the development process.

More specifically, it showcases how to create a VS2017 project for Sitecore with the following features:

  1. Website folder as volume with files stored in the development machine, at debugging time (no need for synchronisation)
  2. Website folder embedded in the image at runtime.
  3. Website folder files, databases and Solr cores are automatically copied from the images to the Development environment (if missing) (same as databases).
  4. Attach to IIS process in the container from VS2017 for debugging

TDS Sample

The TDS Sample demo showcases how to create a VS2017 project for Sitecore with the following features:

  1. TDS sample project for Sitecore "master" database
  2. Processor example for debugging demo
  3. Website folder as volume with files stored in the development machine, at debugging time (no need for synchronisation)
  4. Website folder embedded in the image at runtime.
  5. Website folder files, databases and Solr cores are automatically copied from the images to the Development environment (if missing) (same as databases).
  6. Attach to IIS process in the container from VS2017 for debugging

SUGA's meetup

Check out the last SUGA meetup where we talked about how to use the two new Sitecore Docker Repositories.

Share:

Add your comment

 
 

 

Archive

Tagcloud

intranet Modern SharePoint teamwork employee engagement digital workspace SharePoint JavaScript Windows Azure Digital Transformation staff satisfaction productivity Microsoft Teams Office 365 Yammer cms content management system agile GDPR Microsoft Graph collaboration Microsoft sharepoint 2016 upgrade migration SharePoint Online 2016 Tech Trends Digital Disruption Context marketing marketing SharePoint 2010 SharePoint 2013 TFS Git security kentico Analytics jquery QA Quality Assurance testing content management websites Sitecore sitecore marketplace sitecore module cloud Microsoft Cloud Storage digital strategy technical consulting sitecore modules Experience database Sitecore 7 Sitecore 8 support account management customer experience Data Storage cms integration front end front end development prototype Cloud Storage StorSimple Front-end Development Layout SharePoint 2013 colour palette UI design website design log viewer sitecore cms website Azure big data business-critical sharepoint accessibility android apple chrome clear people clearpeople debug emulator ios mobile testing opera resize adobe desktop flash ie10 internet explorer 10 metro windows 8 bcsp Advanced System Reporter reporting framework ControlMode form control master page placeholder publishing console SharePoint 2007 SharePoint error search search results search values software testing testing scenario audit content information architecture retention schedules PowerShell QuickLaunch scripts SharePoint server 2010 business solutions metalogix replication replicator storagepoint stena technet UK Technet picture library slideshow web part RTM released to manufacturing caml caml query MOSS 2007 query infopath