This repo provides two sample hypothetical legacy eShop web apps (traditional ASP.NET WebForms and MVC in .NET Framework) and how you can modernize them (Lift and Shift scenario) with Windows Containers and Azure Cloud into the following deployment options:
- Regular Windows Server 2016 VM (Virtual Machine)
- ACS-Kubernetes orchestrator cluster
- Service Fabric orchestrators cluster
All those mentioned environments can be deployed into Azure cloud (as explained in the Wiki) but you can also deploy all those environments into on-premises servers or even in other public clouds.
You can download its related guidance with this free guide/eBook:
.PDF download (PC): https://aka.ms/liftandshiftwithcontainersebook
.MOBI download (Kindle): https://aka.ms/liftandshiftwithcontainersebookmobi
.EPUB download (Other eReaders): https://aka.ms/liftandshiftwithcontainersebookepub
The modernization with Windows Containers significantly improves the deployments for DevOps, without having to change the app's architecture or C# code.
The sample apps are simple web apps for the internal backoffice of an eShop so employees can update the Product Catalog. Both apps are therefore simple CRUD web application to update data into a SQL Server database.
See a screenshots of both apps below.
The WebFoms and MVC apps are pretty similiar in regards UI and business features. We just created both versions so you can compare, depending on what technology you are using for your existing apps (ASP.NET MVC or Web Forms).
Wiki: https://github.com/dotnet-architecture/eShopModernizing/wiki
- Tour on eShopModernizing apps implementation code
- How to containerize the .NET Framework web apps with Windows Containers and Docker
- How to deploy your Windows Containers based app into Azure VMs (Including CI CD)
- How to deploy your Windows Containers based apps into Kubernetes in Azure Container Service (Including C CD)
- How to deploy your Windows Containers based apps into Azure Service Fabric (Including CI CD) 05.1 Quick procedure to create a Secure Service Fabric cluster in Azure using PowerShell
- How to migrate the SQL database to Azure with the Azure Database Migration Service
- Deploying to Azure App Service, with NO Windows Containers (Including CI CD)
The apps allow either to connect to the real database to get/update the product catalog or to use mock-data if, due to any reason, the database is still not available and you need to test/demo the app.
For each application, the option to select one or the other mode can be configured in the docker-compose.override.yml file when using Windows Containers or at the Web.config
file when you still are NOT using Containers (original versions).
We're also creating an additonal modernization example based on a "legacy apps" which has a client WinForms desktop application and a SOAP service built with WCF (Windows Communication Foundation). You can explore it at the following GitHub repo:
https://github.com/dotnet-architecture/eShopModernizingWCFWinForms