Skip to content

Instantly share code, notes, and snippets.

View pbering's full-sized avatar

Per Bering pbering

View GitHub Profile
@pbering
pbering / sitecore-image-tagging.md
Last active December 17, 2019 11:03
Sitecore Docker Image Tagging

Naming and tagging

...

Naming convention

[REGISTRY/]sitecore-<TOPOLOGY>-<ROLE>[-VARIANT[-VARIANT]]:<SITECORE_VERSION>[-VARIANT_VERSION[-VARIANT_VERSION]]-<OS_REPOSITORY>-<OS_TAG>
SET QUOTED_IDENTIFIER on
declare @ApplicationName nvarchar(256) = 'sitecore'
declare @UserName nvarchar(256) = 'sitecore\admin'
declare @Password nvarchar(128) = 'b'
declare @HashAlgorithm nvarchar(10) = 'SHA1'
declare @PasswordFormat int = 1 -- Hashed
declare @CurrentTimeUtc datetime = SYSUTCDATETIME()
declare @Salt varbinary(16) = 0x
declare @HashedPassword varbinary(20)
@pbering
pbering / Invoke-DockerInstall.ps1
Last active November 25, 2025 18:09
Installs (and updates) Docker engine, compose and the credentials helper on Windows server and client
# run with defaults: iex (iwr "https://gist.githubusercontent.com/pbering/309c5a14162dcbe70e842295e0319022/raw" -UseBasicParsing).Content
param (
[Parameter(Mandatory = $false)]
[string]$DockerVersion = "27.5.1"
,
[Parameter(Mandatory = $false)]
[string]$ComposeVersion = "2.33.1"
,
[Parameter(Mandatory = $false)]
@pbering
pbering / FixSxaHeadlessNavigationContentResolver.cs
Created November 3, 2022 10:50
FixSxaHeadlessNavigationContentResolver
using Newtonsoft.Json.Linq;
using Sitecore.LayoutService.Configuration;
using Sitecore.LayoutService.ItemRendering.ContentsResolvers;
using Sitecore.Mvc.Presentation;
using Sitecore.XA.JSS.Feature.Navigation.ContentsResolvers;
using System.Collections.Specialized;
namespace XmCloudSXAStarter.Patches
{
public class FixSxaHeadlessNavigationContentResolver : IRenderingContentsResolver
param (
[Parameter(Mandatory = $false)]
[string]$Platform = "ltsc2019"
)
$platformToNanoSeverMapping = @{
"ltsc2019" = "1809";
"ltsc2022" = "ltsc2022"
}