Ultimate Legacy-in-a-Box Test

Ultimate Legacy-in-a-Box Test

Ultimate Legacy-in-a-Box Test Ultimate Legacy-in-a-Box Test
Senior Sitecore Developer
Valtech DK
Per Manniche Bering

April 13, 2017

I love the legacy in a box technique to isolate (legacy) systems using Docker so I don't need to pollute my environment with all kinds of crazy dependencies. So I wanted to see just how "legacy" I could go and get the very first Sitecore version I ever used to run in a container... Behold! The rock solid performer: Sitecore v4.3.2 from October 2005, based on .NET 1.0!

Here's a few screenshots:

Sitecore 4.3.2 Login

Sitecore 4.3.2 Content Editor

Besides the glorious UI, Sitecore 4.3.2 is only ~1500 files and ~14 MB on disk, including the xml file based databases, so it's a bit more lightweight than recent versions :)

Getting it to work

What you need:

  1. Windows 10 with Docker running (for example using Docker for Windows)
  2. VM running Windows XP and Internet Explorer 6.0 (don't even think about getting it to work with anything else).
  3. A "dist.4.3.2.*.zip", I found one in a old backup but if you don't have one you could try to call your local Sitecore office :P
  4. Modify a few files, see

Since this effectively runs .NET 4.5 even though it's .NET 1.0 there is a lot changed around security and encryption so I had to replace a few static methods (HasModule check, some auth stuff) in Sitecore.Kernel.dll at runtime, from within global.asax.

Here's how the Docker file looks:

FROM microsoft/aspnet

ADD *.zip .

RUN powershell -Command \
    Expand-Archive -Path 'C:\dist*.zip' -DestinationPath 'C:\\'; \
    Remove-Item 'C:\dist*.zip' -Force;

RUN powershell -Command \    
    New-Item -Path 'C:\Sitecore\Website' -ItemType Directory -Force ^| Out-Null; \
    Get-ChildItem -Path 'C:\dist*\*' ^| Copy-Item -Destination 'C:\Sitecore\Website' -Recurse -Force; \
    Remove-Item 'C:\dist*' -Recurse -Force; 

ADD Sitecore /Sitecore

# Application Pool *needs* to run 64 bit for some reason, on 32 bit the application pool just crashes hard.
RUN powershell -Command \
    Import-Module WebAdministration; \
    Set-ItemProperty 'IIS:\Sites\Default Web Site' -Name 'physicalPath' -Value 'C:\Sitecore\Website'; \
    Set-ItemProperty -Path 'IIS:\apppools\DefaultAppPool' -Name 'enable32BitAppOnWin64' -Value 'False';

You can get everything needed here if you dare:


Is this crazy? Yes it is! But the point here is besides the fun of it, it's possible run very old legacy applications without much effort in a clean and isolated way.


Article was originally posted on Invoke Command Blog: Ultimate legacy-in-a-box test 

Meet The Challenges Of Today's Digital Economy

Ready to take that first step and rise to your digital potential? Contact Valtech today.
Talk to us
Meet The Challenges Of Today's Digital Economy