Sitecore & Docker – So hot right now!

A presentation at Meetup of the Melbourne Sitecore User Group in May 2020 in Melbourne VIC, Australia by Rob Earlam

Slide 1

Slide 1

Sitecore & Docker So Hot Right Now! Rob Earlam Technical Evangelist - Sitecore May 2020 @RobEarlam

Slide 2

Slide 2

@RobEarlam

Slide 3

Slide 3

ROB EARLAM robearlam.com github.com/robearlam twitter.com/robearlam linkedin.com/in/rob-earlam/ @RobEarlam

Slide 4

Slide 4

What is Docker? How does it work? How to develop using Docker @RobEarlam Sitecore’s Docker Journey How to build the Images

Slide 5

Slide 5

Sitecore’s Journey with Docker @RobEarlam

Slide 6

Slide 6

@RobEarlam

Slide 7

Slide 7

Better Windows Support for Containers @RobEarlam The AMAZING Sitecore community

Slide 8

Slide 8

The Sitecore Docker Images Repository @RobEarlam

Slide 9

Slide 9

Build.ps1 – – – – – – – – – – – [Mandatory] SitecoreUsername [Mandatory] SitecorePassword [Optional] SitecoreVersion [Optional] Topology [Optional] WindowsVersion [Optional] IncludeSpe [Optional] IncludeSxa [Optional] IncludeJss [Optional] SkipExistingImage [Optional] IncludeExperimental [Optional] Registry @RobEarlam

Slide 10

Slide 10

Pushing to a shared registry @RobEarlam © 2001-2020 Sitecore Corporation A/S. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand names are the property of their respective owners.

Slide 11

Slide 11

Developing with Docker @RobEarlam

Slide 12

Slide 12

• • • • @RobEarlam GitHub Repository XP docker images with SXA Visual Studio Solution TDS for Serialisation

Slide 13

Slide 13

Legend Base Image Sitecore Experience Platform (XP) Sitecore Experience Accelerator (SXA) XP SXA SqlDev mssql-developer:2017windowsservercore-ltsc2019 XP SXA CD XP SXA Standalone XP XConnect aspnet:4.8-windowsservercore-ltsc2019 @RobEarlam XP XConnect Index Worker XP XConnect Processing Engine XP XConnect Automation Engine runtime:4.8-windowsservercore-ltsc2019 XP SXA Solr sitecore-openjdk:8nanoserver-ltsc2019

Slide 14

Slide 14

@RobEarlam

Slide 15

Slide 15

Development Flow • Include custom docker-compose in your solution • Renamed to make it simpler to run • Included .env file amended • Whale-Names • Customise volumes, deployment & License • Named volumes for easier management • TDS configuration • ‘Enable container deployment’ checkbox @RobEarlam

Slide 16

Slide 16

Debugging Flow • Install Remote Debugging • Include Remote Debugging volume map • Latest VS2019 - 16.5 + • Select ‘Managed Code’ @RobEarlam

Slide 17

Slide 17

Closing Thoughts @RobEarlam

Slide 18

Slide 18

Benefits • Different Client Projects • Different Sitecore Versions • Dependency versions • Upgrades @RobEarlam

Slide 19

Slide 19

@RobEarlam

Slide 20

Slide 20

Links Videos: • Docker – A Quick Introduction • https://www.youtube.com/watch?v=RMYGVOswIKk • Sitecore Docker Images Repo • https://www.youtube.com/watch?v=cA1CMdwrNVU Github • This Repo • https://github.com/robearlam/sitecore-and-docker-so-hot-right-now • Sitecore Docker Images Repo • @RobEarlam https://github.com/Sitecore/docker-images © 2001-2020 Sitecore Corporation A/S. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand names are the property of their respective owners.

Slide 21

Slide 21

Thank you FOR DISCUSSION PURPOSES ONLY. Sitecore Confidential and Proprietary. ©2020 Sitecore Corporation A/S. Sitecore® and Own the Experience® are registered trademarks of Sitecore Corporation A/S. All other brand names are the property of their respective owners. @RobEarlam