For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
Since I wrote this originally, Docker on Windows has become a first-class supported tool, with a Windows Installer and well-documented installation processes from docker and from Microsoft.
Today, I actually install docker using boxstarter scripts where I can Enable-WindowsOptionalFeature -Online -FeatureName containers -All
and then choco upgrade -y docker-desktop
as well as installing tooling for VS Code code --install-extension "ms-azuretools.vscode-docker"
.
I've left the rest of these notes here as a historical record, more than anything else. You should not expect the script below to work, but you certainly don
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<initialize> | |
<processor type="Sitecore.Pipelines.Loader.ShowVersion, Sitecore.Kernel"> | |
<patch:delete /> | |
</processor> | |
<processor type="Sitecore.Pipelines.Loader.ShowHistory, Sitecore.Kernel"> | |
<patch:delete /> | |
</processor> |
How to set up Unicorn in your Docker container | |
Since all writing to Unicorn files happens inside the container, and the container is now linked to .\unicorn, | |
all you need to do is ensure that .\unicorn is included under source control. | |
This gets even better if you use Transparent Sync. |
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Linq; | |
using System.Resources; | |
using System.Text.RegularExpressions; | |
using System.Threading; | |
using Microsoft.Build.Framework; |
namespace AutoSitecoreCustomizations | |
{ | |
public class AutoNSubstituteDataAttribute : AutoDataAttribute | |
{ | |
public AutoNSubstituteDataAttribute() | |
: base(() => new Fixture() | |
.Customize(new AutoNSubstituteCustomization()) | |
.Customize(new DatabaseCustomization()) | |
.Customize(new ItemCustomization()) | |
.Customize(new FieldCustomization())) |