Skip to main content

Technology

LTSC2022 images for XM Cloud are available

LTSC2022 images for XM Cloud

It somehow passed silent, but XM Cloud now also has ltsc2022 images which will also allow you running you local XM Cloud development in a Process isolation mode on Windows 11. I was routinely poking XM Cloud starterkit codebase, once came across a new parameter introduced within Init.ps1 script:

[Parameter(Mandatory = $false, HelpMessage = "Specifies os version of the base image.")]
[ValidateSet("ltsc2019", "ltsc2022")]
[string]$baseOs = "ltsc2019"

Does that really mean that ltcs2022 images became also available for XM Cloud starterkit (I previously wrote when ltsc2022 images were introduced for XP/XM platforms, not just 10.3 but earlier versions as well)?

Quick check against Sitecore official list of images and tags proved I was right in my assumption. Sitecore started providing ltsc2022 images for version 1.4 and all newer releases:

XM Cloud Ltsc2022 images

So that now I can initialize my local container-based environment of XM Cloud as:

.\init.ps1 -InitEnv -LicenseXmlPath C:\Projects\license.xml -AdminPassword b -baseOs ltsc2022

And it will default my environmental file for using ltsc2022. If you are using Windows 11 consider enforcing Process isolation in order to benefit from a better performance, as did I:

ISOLATION=process

I did no want to stop on that, as just a line below you may find TRAEFIK_ISOLATION=hyperv statement, which you can also turn into using ltsc2022 – it is not a line of code however, and you have to build your own ltsc2022 image for Traefik and correctly call it from docker compose. I wrote a separate article on how-to for XM/XP images, but pretty the same principle will work with XM Cloud (on slightly different filesystem paths).

Also, you can do extra job by replacing 1809-based Docker tools with this:

TOOLS_IMAGE=scr.sitecore.com/tools/sitecore-docker-tools-assets:10.2.0-ltsc2022

Despite 10.3.0-ltsc2022 tools image is also available – don’t use it. It will break your Solr, likely due to a schema incompatibility between different versions, and container will error out.

What else can we adjust here? Node parent Image parameter, let’s make it ltsc2022 as well:

NODEJS_PARENT_IMAGE=mcr.microsoft.com/windows/nanoserver:ltsc2022

In order to test, I replaced all the legacy 1809 images of XM Cloud, the new correct images were pulled and it all worked well. Please note, that in the video below I left Traefik image as it was originally 1809-based, however following my guidance you can change that as well. I also tested the same setup on another machine, just for the piece of mind, with the same outcome.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Martin Miles

Martin is a Sitecore Expert and .NET technical solution architect involved in producing enterprise web and mobile applications, with 20 years of overall commercial development experience. Since 2010 working exclusively with Sitecore as a digital platform. With excellent knowledge of XP, XC, and SaaS / Cloud offerings from Sitecore, he participated in more than 20 successful implementations, producing user-friendly and maintainable systems for clients. Martin is a prolific member of the Sitecore community. He is the author and creator of the Sitecore Link project and one of the best tools for automating Sitecore development and maintenance - Sifon. He is also the founder of the Sitecore Discussion Club and, co-organizer of the Los Angeles Sitecore user group, creator of the Sitecore Telegram channel that has brought the best insight from the Sitecore world since late 2017.

More from this Author

Categories
Follow Us